diff options
Diffstat (limited to 'include')
-rw-r--r-- | include/net/udp.h | 9 | ||||
-rw-r--r-- | include/net/udplite.h | 2 |
2 files changed, 2 insertions, 9 deletions
diff --git a/include/net/udp.h b/include/net/udp.h index 496f89d45c8b..98755ebaf163 100644 --- a/include/net/udp.h +++ b/include/net/udp.h | |||
@@ -119,16 +119,9 @@ static inline void udp_lib_close(struct sock *sk, long timeout) | |||
119 | } | 119 | } |
120 | 120 | ||
121 | 121 | ||
122 | struct udp_get_port_ops { | ||
123 | int (*saddr_cmp)(const struct sock *sk1, const struct sock *sk2); | ||
124 | int (*saddr_any)(const struct sock *sk); | ||
125 | unsigned int (*hash_port_and_rcv_saddr)(__u16 port, | ||
126 | const struct sock *sk); | ||
127 | }; | ||
128 | |||
129 | /* net/ipv4/udp.c */ | 122 | /* net/ipv4/udp.c */ |
130 | extern int udp_get_port(struct sock *sk, unsigned short snum, | 123 | extern int udp_get_port(struct sock *sk, unsigned short snum, |
131 | const struct udp_get_port_ops *ops); | 124 | int (*saddr_cmp)(const struct sock *, const struct sock *)); |
132 | extern void udp_err(struct sk_buff *, u32); | 125 | extern void udp_err(struct sk_buff *, u32); |
133 | 126 | ||
134 | extern int udp_sendmsg(struct kiocb *iocb, struct sock *sk, | 127 | extern int udp_sendmsg(struct kiocb *iocb, struct sock *sk, |
diff --git a/include/net/udplite.h b/include/net/udplite.h index 50b4b424d1ca..635b0eafca95 100644 --- a/include/net/udplite.h +++ b/include/net/udplite.h | |||
@@ -120,5 +120,5 @@ static inline __wsum udplite_csum_outgoing(struct sock *sk, struct sk_buff *skb) | |||
120 | 120 | ||
121 | extern void udplite4_register(void); | 121 | extern void udplite4_register(void); |
122 | extern int udplite_get_port(struct sock *sk, unsigned short snum, | 122 | extern int udplite_get_port(struct sock *sk, unsigned short snum, |
123 | const struct udp_get_port_ops *ops); | 123 | int (*scmp)(const struct sock *, const struct sock *)); |
124 | #endif /* _UDPLITE_H */ | 124 | #endif /* _UDPLITE_H */ |