netdev
[Top] [All Lists]

Re: [RFC/PATCH] ICMPv6 MIB stats per-interface

To: rddunlap@xxxxxxxx
Subject: Re: [RFC/PATCH] ICMPv6 MIB stats per-interface
From: YOSHIFUJI Hideaki / 吉藤英明 <yoshfuji@xxxxxxxxxxxxxx>
Date: Tue, 15 Apr 2003 00:29:15 +0900 (JST)
Cc: linux-net@xxxxxxxxxxxxxxx, davem@xxxxxxxxxx, netdev@xxxxxxxxxxx
In-reply-to: <20030414080347.0af818f7.rddunlap@osdl.org>
Organization: USAGI Project
References: <20030414080347.0af818f7.rddunlap@osdl.org>
Sender: netdev-bounce@xxxxxxxxxxx
In article <20030414080347.0af818f7.rddunlap@xxxxxxxx> (at Mon, 14 Apr 2003 
08:03:47 -0700), "Randy.Dunlap" <rddunlap@xxxxxxxx> says:

> This patch modifies the ICMPv6 MIB statistics to be collected per
> network-interface instead of globally, as required by RFC 2466
> (ICMPv6 MIB Group).

We, USAGI, have similar code for linux-2.4. (Sorry, I forgot this 
one... :-p)

We store per-interface in inet6_dev{}, because this information blongs 
to inet6 layer.

I'd recommend that we split information per interface
 1) to minimize the /proc file
 2) to minimize the effort to rewrite snmp daemon (e.g. net-snmp)
We use /proc/net/dev_snmp6/{1,2,...}. Example:

# cat /proc/net/dev_snmp6/1
Ip6LastChange                           1616
Ip6InReceives                           1108
Ip6InHdrErrors                          0
Ip6InTooBigErrors                       0
:
Icmp6InMsgs                             1107
Icmp6InErrors                           549
Icmp6InDestUnreachs                     1106
:

-- 
Hideaki YOSHIFUJI @ USAGI Project <yoshfuji@xxxxxxxxxxxxxx>
GPG FP: 9022 65EB 1ECF 3AD1 0BDF  80D8 4807 F894 E062 0EEA

<Prev in Thread] Current Thread [Next in Thread>