Source-Changes archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

CVS commit: src



Module Name:    src
Committed By:   ozaki-r
Date:           Wed Dec 28 07:26:25 UTC 2016

Modified Files:
        src/share/man/man9: ethersubr.9
        src/sys/net: if_ethersubr.c
        src/sys/netinet: ip_carp.c

Log Message:
Use ether_ifattach in carp_clone_create instead of C&P code

carp_clone_destroy calls ether_ifdetach so not calling ether_ifattach is
inconsistent. If we add something pair of initialization and destruction
to ether_ifattach and ether_ifdetach (e.g., mutex_init/mutex_destroy),
ether_ifdetach of carp_clone_destroy won't work. So use ether_ifattach.

In order to do so, make ether_ifattach accept the 2nd argument (lla) as
NULL to allow carp to initialize its link level address by itself.


To generate a diff of this commit:
cvs rdiff -u -r1.25 -r1.26 src/share/man/man9/ethersubr.9
cvs rdiff -u -r1.229 -r1.230 src/sys/net/if_ethersubr.c
cvs rdiff -u -r1.80 -r1.81 src/sys/netinet/ip_carp.c

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.




Home | Main Index | Thread Index | Old Index