diff options
author | hrs <hrs@FreeBSD.org> | 2015-07-23 19:57:47 +0000 |
---|---|---|
committer | hrs <hrs@FreeBSD.org> | 2015-07-23 19:57:47 +0000 |
commit | 123cf5c769836859569e81e835ffd3506691c4b4 (patch) | |
tree | 1a14580f897ff42b69efb58a4aca6dd9f1e1b4ca /sys/netinet6 | |
parent | 91dc3e4cd8d54579e0b117e02884dda45b6ef4d5 (diff) | |
download | FreeBSD-src-123cf5c769836859569e81e835ffd3506691c4b4.zip FreeBSD-src-123cf5c769836859569e81e835ffd3506691c4b4.tar.gz |
MFC r279538:
Fix group membership of cloned interfaces when one is moved by
if_vmove().
In if_vmove(), if_detach_internal() and if_attach_internal() were
called in series to detach and reattach the interface. When
detaching, if_delgroup() was called and the interface leaves all of
the group membership. And then upon attachment, if_addgroup(ifp,
IFG_ALL) was called and it joined only "all" group again.
This had a problem. Normally, a cloned interface automatically joins
a group whose name is ifc_name of the cloner in addition to "all"
upon creation. However, if_vmove() removed the membership and did
not restore upon attachment.
Approved by: re (gjb)
Diffstat (limited to 'sys/netinet6')
0 files changed, 0 insertions, 0 deletions