Gerrit Renker 4c0a6cb0db [UDP(-Lite)]: consolidate v4 and v6 get|setsockopt code
This patch consolidates set/getsockopt code between UDP(-Lite) v4 and 6. The
justification is that UDP(-Lite) is a transport-layer protocol and therefore
the socket option code (at least in theory) should be AF-independent.

Furthermore, there is the following code reduplication:
 * do_udp{,v6}_getsockopt is 100% identical between v4 and v6
 * do_udp{,v6}_setsockopt is identical up to the following differerence
	--v4 in contrast to v4 additionally allows the experimental encapsulation
          types  UDP_ENCAP_ESPINUDP and UDP_ENCAP_ESPINUDP_NON_IKE
	--the remainder is identical between v4 and v6
   I believe that this difference is of little relevance.

The advantages in not duplicating twice almost completely identical code.

The patch further simplifies the interface of udp{,v6}_push_pending_frames,
since for the second argument (struct udp_sock *up) it always holds that
up = udp_sk(sk); where sk is the first function argument.

Signed-off-by: Gerrit Renker  <gerrit@erg.abdn.ac.uk>
Signed-off-by: David S. Miller <davem@davemloft.net>
2006-12-02 21:30:45 -08:00
..
2006-12-02 21:21:17 -08:00
2006-12-02 21:21:17 -08:00
2006-09-28 18:02:23 -07:00
2006-09-28 18:02:29 -07:00
2006-10-04 00:31:09 -07:00
2006-12-02 21:21:17 -08:00
2005-04-16 15:20:36 -07:00
2006-09-22 15:18:04 -07:00
2006-10-25 23:04:12 -07:00
2006-12-02 21:27:18 -08:00
2006-09-28 18:03:07 -07:00
2006-12-02 21:24:03 -08:00
2006-10-04 00:31:09 -07:00