netdev.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [PATCH net-2.6][NEIGH] Updating affected neighbours when about MAC address change
@ 2007-12-23 11:41 David Shwatrz
  2007-12-23 12:11 ` YOSHIFUJI Hideaki / 吉藤英明
  0 siblings, 1 reply; 15+ messages in thread
From: David Shwatrz @ 2007-12-23 11:41 UTC (permalink / raw)
  To: davem, netdev

Hello,

Attached here is the patch - please read the following text here below:

 We know that changes in MAC addresses are not frequent but
we are working on a special, highly advanced networking Linux based project
in our LABs, where we do change MAC addresses of an interface quite frequently.
(We do not go totally wild; the MAC addresses we are changing into are
from a set of given MAC addresses).

Normally, when we change a MAC address of some interface, the
relevant neighbours in the LAN which have entries with the previous MAC
address are not sent any update notification; instead, it is there
regular timers mechanisms which update the MAC address to the new
one in their ARP tables.

I had written a small patch to neigh_changeaddr() in net/core/neighbour.c
against the 2.6 git net tree, which sends a gratuitous ARP to update
the list of
all the involved neighbours with the change of MAC address.
The patch is for neigh_changeaddr() only.

This patch was tested and it does work in my LAB; if such a patch is
not needed,
I wonder why ?
It seems to me that it could not cause any troubles.
BTW, I had noticed that in irlan driver, there is such a mechanism
of sending a gratuitous ARP to update all the
neighbours when a MAC address is changed.

Signed-off-by: David Shwatrz <dshwatrz@gmail.com>

^ permalink raw reply	[flat|nested] 15+ messages in thread

end of thread, other threads:[~2007-12-25  0:53 UTC | newest]

Thread overview: 15+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2007-12-23 11:41 [PATCH net-2.6][NEIGH] Updating affected neighbours when about MAC address change David Shwatrz
2007-12-23 12:11 ` YOSHIFUJI Hideaki / 吉藤英明
2007-12-23 12:24   ` David Shwatrz
2007-12-23 12:38     ` YOSHIFUJI Hideaki / 吉藤英明
2007-12-23 12:46       ` jamal
2007-12-23 13:04         ` YOSHIFUJI Hideaki / 吉藤英明
2007-12-23 13:17           ` jamal
2007-12-24 14:33             ` jamal
2007-12-23 13:04       ` David Shwatrz
2007-12-23 13:13         ` YOSHIFUJI Hideaki / 吉藤英明
2007-12-23 13:21           ` David Shwatrz
2007-12-23 14:02     ` Herbert Xu
2007-12-24 13:38       ` David Shwatrz
2007-12-24 14:50         ` jamal
2007-12-25  0:53           ` Herbert Xu

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).