Re: network interface state

2008-01-04 Thread Milan Kocian
it seems netlink isn't providing > the same information available via the old ioctls :-) Sorry for late little offtopic question: Exists any simple way how to differentiate virtual network devices from real devices (e.g. vlans, bridges)? They have the same ifinfomsg->ifi_type as rea

Re: Difference between device statistics from ifconfig and ip -s l l

2007-10-17 Thread Milan Kocian
formatting looks nice, but > ip is more accurate. These stats are from standard SNMP mibs (off top of > my head RFC1213 if it hasnt been obsoleted by something) - look at > InIF stats. > I will try to look at. Thanks! > cheers, > jamal > regards, -- Milan Kocian - T

Re: Difference between device statistics from ifconfig and ip -s l l

2007-10-17 Thread Milan Kocian
On Wed, Oct 17, 2007 at 12:35:43PM +0200, Patrick McHardy wrote: > Milan Kocian wrote: >> On Wed, Oct 17, 2007 at 11:36:30AM +0200, Patrick McHardy wrote: >> >>> ifconfig gets its data from /proc/net/dev, which adds up rx_errors >>> and rx_missed. >>> >

Re: Difference between device statistics from ifconfig and ip -s l l

2007-10-17 Thread Milan Kocian
On Wed, Oct 17, 2007 at 11:36:30AM +0200, Patrick McHardy wrote: > Milan Kocian wrote: >> hello, >> see dropped packets, please: >> sit:~# ifconfig eth0 >> eth0 Link encap:Ethernet HWaddr 00:04:23:D6:D5:DEUP >> BROADCAST RUNNING MULTICAST M

Difference between device statistics from ifconfig and ip -s l l

2007-10-17 Thread Milan Kocian
0 0 Is this bug or feature ? From my point of view is somewhere lost any sum. Or is it driver dependent? Kernel 2.6.23.1 (in 2.6.20.20 is the same behavior), driver e1000. iproute2-ss070313; net-tools 1.60, ifconfig 1.42 (2001-04-13) Regards, -- Milan Kocian - To unsubscribe

[PATCH 1/1] ipv6: remove redundant RTM_DELLINK message

2007-09-13 Thread Milan Kocian
ipv6_mc_down(idev); - /* Step 5: netlink notification of this interface */ idev->tstamp = jiffies; - inet6_ifinfo_notify(RTM_DELLINK, idev); /* Shot the device (if unregistered) */ Signed-off-by: Milan Kocian <[EMAIL PROTECTED]> - To unsubscribe from

Re: [PATCH 1/1] ipv6: corrects sended rtnetlink message

2007-09-12 Thread Milan Kocian
XORP, bird, USAGI , quagga and to see RTM_DELLINK handling. And imho nobody depends on RTM_DELLINK message from ipv6. regards, -- Milan Kocian - To unsubscribe from this list: send the line "unsubscribe netdev" in the body of a message to [EMAIL PROTECTED] More majordomo info at http://vger.kernel.org/majordomo-info.html

Re: [PATCH 1/1] ipv6: corrects sended rtnetlink message

2007-09-06 Thread Milan Kocian
On Thu, Sep 06, 2007 at 12:47:11PM +0200, Thomas Graf wrote: > * Milan Kocian <[EMAIL PROTECTED]> 2007-08-29 23:51 > > Because RTM_NEWLINK is used to notify about device status change > > (as I see in net/core/rtnetlink.c) and RTM_DELLINK to inform about > > NETDEV_U

Re: [PATCH 1/1] ipv6: corrects sended rtnetlink message

2007-08-29 Thread Milan Kocian
On Tue, Aug 21, 2007 at 12:20:58AM -0700, David Miller wrote: > From: Milan Kocian <[EMAIL PROTECTED]> > Date: Wed, 15 Aug 2007 16:33:22 +0200 > > > ipv6 sends a RTM_DELLINK netlink message on both events: NETDEV_DOWN, > > NETDEV_UNREGISTER. Corrected by sending RTM_N

[PATCH 1/1] ipv6: corrects sended rtnetlink message

2007-08-15 Thread Milan Kocian
ifinfo_notify(RTM_NEWLINK, idev); /* Shot the device (if unregistered) */ Signed-off-by: Milan Kocian <[EMAIL PROTECTED]> - To unsubscribe from this list: send the line "unsubscribe netdev" in the body of a message to [EMAIL PROTECTED] More majordomo info at http://vger.kernel.org/majordomo-info.html

netlink messages on 'ip l s down' event

2007-07-22 Thread Milan Kocian
for reply. regards, -- Milan Kocian <[EMAIL PROTECTED]> - To unsubscribe from this list: send the line "unsubscribe netdev" in the body of a message to [EMAIL PROTECTED] More majordomo info at http://vger.kernel.org/majordomo-info.html

[patch 1/1] networking: fix sending netlink message when replace route

2007-04-20 Thread Milan Kocian
From: Milan Kocian <[EMAIL PROTECTED]> When you replace route via ip r r command the netlink multicast message is not send. This patch corrects it. NL message is sent with NLM_F_REPLACE flag. [Bug 8320] --- --- a/net/ipv4/fib_hash.c 2007-04-18 12:50:11.0 +0200 +++ b/ne