|
@@ -49,11 +49,7 @@ struct udp_sock {
|
|
|
unsigned int corkflag; /* Cork is required */
|
|
|
__u8 encap_type; /* Is this an Encapsulation socket? */
|
|
|
unsigned char no_check6_tx:1,/* Send zero UDP6 checksums on TX? */
|
|
|
- no_check6_rx:1,/* Allow zero UDP6 checksums on RX? */
|
|
|
- convert_csum:1;/* On receive, convert checksum
|
|
|
- * unnecessary to checksum complete
|
|
|
- * if possible.
|
|
|
- */
|
|
|
+ no_check6_rx:1;/* Allow zero UDP6 checksums on RX? */
|
|
|
/*
|
|
|
* Following member retains the information to create a UDP header
|
|
|
* when the socket is uncorked.
|
|
@@ -102,16 +98,6 @@ static inline bool udp_get_no_check6_rx(struct sock *sk)
|
|
|
return udp_sk(sk)->no_check6_rx;
|
|
|
}
|
|
|
|
|
|
-static inline void udp_set_convert_csum(struct sock *sk, bool val)
|
|
|
-{
|
|
|
- udp_sk(sk)->convert_csum = val;
|
|
|
-}
|
|
|
-
|
|
|
-static inline bool udp_get_convert_csum(struct sock *sk)
|
|
|
-{
|
|
|
- return udp_sk(sk)->convert_csum;
|
|
|
-}
|
|
|
-
|
|
|
#define udp_portaddr_for_each_entry(__sk, node, list) \
|
|
|
hlist_nulls_for_each_entry(__sk, node, list, __sk_common.skc_portaddr_node)
|
|
|
|