aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--net/ipv4/udp.c3
-rw-r--r--net/ipv6/udp.c3
2 files changed, 3 insertions, 3 deletions
diff --git a/net/ipv4/udp.c b/net/ipv4/udp.c
index 9ed6393c65d9..3d6021585658 100644
--- a/net/ipv4/udp.c
+++ b/net/ipv4/udp.c
@@ -112,6 +112,9 @@
112DEFINE_SNMP_STAT(struct udp_mib, udp_statistics) __read_mostly; 112DEFINE_SNMP_STAT(struct udp_mib, udp_statistics) __read_mostly;
113EXPORT_SYMBOL(udp_statistics); 113EXPORT_SYMBOL(udp_statistics);
114 114
115DEFINE_SNMP_STAT(struct udp_mib, udp_stats_in6) __read_mostly;
116EXPORT_SYMBOL(udp_stats_in6);
117
115struct hlist_head udp_hash[UDP_HTABLE_SIZE]; 118struct hlist_head udp_hash[UDP_HTABLE_SIZE];
116DEFINE_RWLOCK(udp_hash_lock); 119DEFINE_RWLOCK(udp_hash_lock);
117 120
diff --git a/net/ipv6/udp.c b/net/ipv6/udp.c
index 8b3e6d61bf55..c9a97b405511 100644
--- a/net/ipv6/udp.c
+++ b/net/ipv6/udp.c
@@ -51,9 +51,6 @@
51#include <linux/seq_file.h> 51#include <linux/seq_file.h>
52#include "udp_impl.h" 52#include "udp_impl.h"
53 53
54DEFINE_SNMP_STAT(struct udp_mib, udp_stats_in6) __read_mostly;
55EXPORT_SYMBOL(udp_stats_in6);
56
57static inline int udp_v6_get_port(struct sock *sk, unsigned short snum) 54static inline int udp_v6_get_port(struct sock *sk, unsigned short snum)
58{ 55{
59 return udp_get_port(sk, snum, ipv6_rcv_saddr_equal); 56 return udp_get_port(sk, snum, ipv6_rcv_saddr_equal);