diff options
Diffstat (limited to 'include/net/udp.h')
-rw-r--r-- | include/net/udp.h | 11 |
1 files changed, 4 insertions, 7 deletions
diff --git a/include/net/udp.h b/include/net/udp.h index 72f28c3ddaae..1e205095ea68 100644 --- a/include/net/udp.h +++ b/include/net/udp.h | |||
@@ -152,9 +152,6 @@ extern struct sock *udp4_lib_lookup(struct net *net, __be32 saddr, __be16 sport, | |||
152 | __be32 daddr, __be16 dport, | 152 | __be32 daddr, __be16 dport, |
153 | int dif); | 153 | int dif); |
154 | 154 | ||
155 | /* UDP-Lite does not have a standardized MIB yet, so we inherit from UDP */ | ||
156 | DECLARE_SNMP_STAT(struct udp_mib, udplite_stats_in6); | ||
157 | |||
158 | /* | 155 | /* |
159 | * SNMP statistics for UDP and UDP-Lite | 156 | * SNMP statistics for UDP and UDP-Lite |
160 | */ | 157 | */ |
@@ -166,12 +163,12 @@ DECLARE_SNMP_STAT(struct udp_mib, udplite_stats_in6); | |||
166 | else SNMP_INC_STATS_BH((net)->mib.udp_statistics, field); } while(0) | 163 | else SNMP_INC_STATS_BH((net)->mib.udp_statistics, field); } while(0) |
167 | 164 | ||
168 | #define UDP6_INC_STATS_BH(net, field, is_udplite) do { \ | 165 | #define UDP6_INC_STATS_BH(net, field, is_udplite) do { \ |
169 | if (is_udplite) SNMP_INC_STATS_BH(udplite_stats_in6, field); \ | 166 | if (is_udplite) SNMP_INC_STATS_BH((net)->mib.udplite_stats_in6, field);\ |
170 | else SNMP_INC_STATS_BH((net)->mib.udp_stats_in6, field); \ | 167 | else SNMP_INC_STATS_BH((net)->mib.udp_stats_in6, field); \ |
171 | } while(0) | 168 | } while(0) |
172 | #define UDP6_INC_STATS_USER(net, field, is_udplite) do { \ | 169 | #define UDP6_INC_STATS_USER(net, field, __lite) do { \ |
173 | if (is_udplite) SNMP_INC_STATS_USER(udplite_stats_in6, field); \ | 170 | if (__lite) SNMP_INC_STATS_USER((net)->mib.udplite_stats_in6, field); \ |
174 | else SNMP_INC_STATS_USER((net)->mib.udp_stats_in6, field); \ | 171 | else SNMP_INC_STATS_USER((net)->mib.udp_stats_in6, field); \ |
175 | } while(0) | 172 | } while(0) |
176 | 173 | ||
177 | #if defined(CONFIG_IPV6) || defined(CONFIG_IPV6_MODULE) | 174 | #if defined(CONFIG_IPV6) || defined(CONFIG_IPV6_MODULE) |