aboutsummaryrefslogtreecommitdiffstats
path: root/net/ipv6/udp.c
diff options
context:
space:
mode:
authorHerbert Xu <herbert@gondor.apana.org.au>2007-12-14 14:25:26 -0500
committerDavid S. Miller <davem@davemloft.net>2008-01-28 17:58:06 -0500
commit9055e051b8d4b266054fe511a65a9888d30fa64f (patch)
treed42c5bf77ec53aff70d8be3df875789db2112774 /net/ipv6/udp.c
parent8d614434ab77b440b69e66a9bd44e46e7194c34a (diff)
[UDP]: Move udp_stats_in6 into net/ipv4/udp.c
Now that external users may increment the counters directly, we need to ensure that udp_stats_in6 is always available. Otherwise we'd either have to requrie the external users to be built as modules or ipv6 to be built-in. This isn't too bad because udp_stats_in6 is just a pair of pointers plus an EXPORT, e.g., just 40 (16 + 24) bytes on x86-64. Signed-off-by: Herbert Xu <herbert@gondor.apana.org.au> Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'net/ipv6/udp.c')
-rw-r--r--net/ipv6/udp.c3
1 files changed, 0 insertions, 3 deletions
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);