[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <20101105142510.GA14986@canuck.infradead.org>
Date: Fri, 5 Nov 2010 10:25:10 -0400
From: Thomas Graf <tgraf@...radead.org>
To: Joakim Tjernlund <joakim.tjernlund@...nsmode.se>
Cc: Eric Dumazet <eric.dumazet@...il.com>, netdev@...r.kernel.org
Subject: Re: ping -I eth1 ....
On Fri, Nov 05, 2010 at 03:01:57PM +0100, Joakim Tjernlund wrote:
> > > Then I do ifconfig eth1 down
> > > and I still see the same. Should not
> > > sendto and/or revcfrom return some error as
> > > the interface is down?
> >
> > Hmm, this reminds me one patch, yes...
> >
> > Search for " ipv4: remove all rt cache entries on UNREGISTER event"
> >
> > http://permalink.gmane.org/gmane.linux.network/173391
>
> Ah, that does the trick. A few comments though:
>
> 1) I think you should include IFF_RUNNING too
Probably even better to base it on the operational state of the link
netif_running() && netif_oper_up() && netif_carrier_ok() && !netif_dormant()
--
To unsubscribe from this list: send the line "unsubscribe netdev" in
the body of a message to majordomo@...r.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Powered by blists - more mailing lists