diff options
Diffstat (limited to 'include/net/udp.h')
-rw-r--r-- | include/net/udp.h | 13 |
1 files changed, 10 insertions, 3 deletions
diff --git a/include/net/udp.h b/include/net/udp.h index 3b285f402f48..e39592f682c3 100644 --- a/include/net/udp.h +++ b/include/net/udp.h | |||
@@ -41,7 +41,7 @@ | |||
41 | struct udp_skb_cb { | 41 | struct udp_skb_cb { |
42 | union { | 42 | union { |
43 | struct inet_skb_parm h4; | 43 | struct inet_skb_parm h4; |
44 | #if defined(CONFIG_IPV6) || defined (CONFIG_IPV6_MODULE) | 44 | #if IS_ENABLED(CONFIG_IPV6) |
45 | struct inet6_skb_parm h6; | 45 | struct inet6_skb_parm h6; |
46 | #endif | 46 | #endif |
47 | } header; | 47 | } header; |
@@ -194,9 +194,15 @@ extern int udp_lib_setsockopt(struct sock *sk, int level, int optname, | |||
194 | extern struct sock *udp4_lib_lookup(struct net *net, __be32 saddr, __be16 sport, | 194 | extern struct sock *udp4_lib_lookup(struct net *net, __be32 saddr, __be16 sport, |
195 | __be32 daddr, __be16 dport, | 195 | __be32 daddr, __be16 dport, |
196 | int dif); | 196 | int dif); |
197 | extern struct sock *__udp4_lib_lookup(struct net *net, __be32 saddr, __be16 sport, | ||
198 | __be32 daddr, __be16 dport, | ||
199 | int dif, struct udp_table *tbl); | ||
197 | extern struct sock *udp6_lib_lookup(struct net *net, const struct in6_addr *saddr, __be16 sport, | 200 | extern struct sock *udp6_lib_lookup(struct net *net, const struct in6_addr *saddr, __be16 sport, |
198 | const struct in6_addr *daddr, __be16 dport, | 201 | const struct in6_addr *daddr, __be16 dport, |
199 | int dif); | 202 | int dif); |
203 | extern struct sock *__udp6_lib_lookup(struct net *net, const struct in6_addr *saddr, __be16 sport, | ||
204 | const struct in6_addr *daddr, __be16 dport, | ||
205 | int dif, struct udp_table *tbl); | ||
200 | 206 | ||
201 | /* | 207 | /* |
202 | * SNMP statistics for UDP and UDP-Lite | 208 | * SNMP statistics for UDP and UDP-Lite |
@@ -217,7 +223,7 @@ extern struct sock *udp6_lib_lookup(struct net *net, const struct in6_addr *sadd | |||
217 | else SNMP_INC_STATS_USER((net)->mib.udp_stats_in6, field); \ | 223 | else SNMP_INC_STATS_USER((net)->mib.udp_stats_in6, field); \ |
218 | } while(0) | 224 | } while(0) |
219 | 225 | ||
220 | #if defined(CONFIG_IPV6) || defined(CONFIG_IPV6_MODULE) | 226 | #if IS_ENABLED(CONFIG_IPV6) |
221 | #define UDPX_INC_STATS_BH(sk, field) \ | 227 | #define UDPX_INC_STATS_BH(sk, field) \ |
222 | do { \ | 228 | do { \ |
223 | if ((sk)->sk_family == AF_INET) \ | 229 | if ((sk)->sk_family == AF_INET) \ |
@@ -258,5 +264,6 @@ extern void udp4_proc_exit(void); | |||
258 | extern void udp_init(void); | 264 | extern void udp_init(void); |
259 | 265 | ||
260 | extern int udp4_ufo_send_check(struct sk_buff *skb); | 266 | extern int udp4_ufo_send_check(struct sk_buff *skb); |
261 | extern struct sk_buff *udp4_ufo_fragment(struct sk_buff *skb, u32 features); | 267 | extern struct sk_buff *udp4_ufo_fragment(struct sk_buff *skb, |
268 | netdev_features_t features); | ||
262 | #endif /* _UDP_H */ | 269 | #endif /* _UDP_H */ |