diff options
Diffstat (limited to 'include/linux/udp.h')
-rw-r--r-- | include/linux/udp.h | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/include/linux/udp.h b/include/linux/udp.h index 581ca2c14c52..9c94312b2de5 100644 --- a/include/linux/udp.h +++ b/include/linux/udp.h | |||
@@ -46,6 +46,11 @@ static inline struct udphdr *udp_hdr(const struct sk_buff *skb) | |||
46 | 46 | ||
47 | #define UDP_HTABLE_SIZE 128 | 47 | #define UDP_HTABLE_SIZE 128 |
48 | 48 | ||
49 | static inline int udp_hashfn(const unsigned num) | ||
50 | { | ||
51 | return num & (UDP_HTABLE_SIZE - 1); | ||
52 | } | ||
53 | |||
49 | struct udp_sock { | 54 | struct udp_sock { |
50 | /* inet_sock has to be the first member */ | 55 | /* inet_sock has to be the first member */ |
51 | struct inet_sock inet; | 56 | struct inet_sock inet; |