Skip site navigation (1)Skip section navigation (2)
Date:      Wed, 2 Dec 2009 18:48:31 +0100 (CET)
From:      Harti Brandt <hartmut.brandt@dlr.de>
To:        freebsd-net@freebsd.org
Subject:   generating routing message on LL address change
Message-ID:  <20091202184310.J78398@beagle.kn.op.dlr.de>

next in thread | raw e-mail | index | archive | help
Hi all,

I would like to commit the following patch. It generates an RTM_IFINFO 
message when the link-layer address of an interface is changed. This 
should be no problem for routing daemons, because the same messages are 
also generated when other interface state changes. Are there any reasons 
not to do this?

harti

Index: /sys/net/if.c
===================================================================
RCS file: /freebsd/cvsup/src/sys/net/if.c,v
retrieving revision 1.370
diff -u -r1.370 if.c
--- /sys/net/if.c	30 Nov 2009 21:25:57 -0000	1.370
+++ /sys/net/if.c	2 Dec 2009 17:33:56 -0000
@@ -3136,6 +3136,10 @@
  		}
  #endif
  	}
+
+	/* inform daemons */
+	rt_ifmsg(ifp);
+
  	return (0);
  }




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20091202184310.J78398>