summaryrefslogtreecommitdiff
path: root/include
diff options
context:
space:
mode:
Diffstat (limited to 'include')
-rw-r--r--include/linux/rtnetlink.h2
-rw-r--r--include/net/ip6_fib.h3
-rw-r--r--include/net/snmp.h23
3 files changed, 26 insertions, 2 deletions
diff --git a/include/linux/rtnetlink.h b/include/linux/rtnetlink.h
index 1b0998fd604f..f231a7ca0fa9 100644
--- a/include/linux/rtnetlink.h
+++ b/include/linux/rtnetlink.h
@@ -50,7 +50,7 @@
#define RTM_MAX (RTM_BASE+31)
/*
- Generic structure for encapsulation optional route information.
+ Generic structure for encapsulation of optional route information.
It is reminiscent of sockaddr, but with sa_family replaced
with attribute type.
*/
diff --git a/include/net/ip6_fib.h b/include/net/ip6_fib.h
index b6927a2982b8..d0ca2230a34f 100644
--- a/include/net/ip6_fib.h
+++ b/include/net/ip6_fib.h
@@ -111,9 +111,10 @@ static inline void fib6_walker_unlink(struct fib6_walker_t *w)
struct rt6_statistics {
__u32 fib_nodes;
__u32 fib_route_nodes;
- __u32 fib_rt_alloc; /* permanet routes */
+ __u32 fib_rt_alloc; /* permanent routes */
__u32 fib_rt_entries; /* rt entries in table */
__u32 fib_rt_cache; /* cache routes */
+ __u32 fib_discarded_routes;
};
#define RTN_TL_ROOT 0x0001
diff --git a/include/net/snmp.h b/include/net/snmp.h
index 2464d550d1f6..67e22b82e908 100644
--- a/include/net/snmp.h
+++ b/include/net/snmp.h
@@ -42,6 +42,11 @@
*/
+/*
+ * RFC 1213: MIB-II
+ * RFC 2011 (updates 1213): SNMPv2-MIB-IP
+ * RFC 2863: Interfaces Group MIB
+ */
struct ip_mib
{
unsigned long IpInReceives;
@@ -64,6 +69,9 @@ struct ip_mib
unsigned long __pad[0];
};
+/*
+ * RFC 2465: IPv6 MIB: General Group
+ */
struct ipv6_mib
{
unsigned long Ip6InReceives;
@@ -91,6 +99,10 @@ struct ipv6_mib
unsigned long __pad[0];
};
+/*
+ * RFC 1213: MIB-II ICMP Group
+ * RFC 2011 (updates 1213): SNMPv2 MIB for IP: ICMP group
+ */
struct icmp_mib
{
unsigned long IcmpInMsgs;
@@ -123,6 +135,9 @@ struct icmp_mib
unsigned long __pad[0];
};
+/*
+ * RFC 2466: ICMPv6-MIB
+ */
struct icmpv6_mib
{
unsigned long Icmp6InMsgs;
@@ -161,6 +176,10 @@ struct icmpv6_mib
unsigned long __pad[0];
};
+/*
+ * RFC 1213: MIB-II TCP group
+ * RFC 2012 (updates 1213): SNMPv2-MIB-TCP
+ */
struct tcp_mib
{
unsigned long TcpRtoAlgorithm;
@@ -180,6 +199,10 @@ struct tcp_mib
unsigned long __pad[0];
};
+/*
+ * RFC 1213: MIB-II UDP group
+ * RFC 2013 (updates 1213): SNMPv2-MIB-UDP
+ */
struct udp_mib
{
unsigned long UdpInDatagrams;