Date: Wed, 16 Nov 2016 03:54:30 +0000 (UTC) From: Hiroki Sato <hrs@FreeBSD.org> To: src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-stable@freebsd.org, svn-src-stable-11@freebsd.org Subject: svn commit: r308716 - stable/11/usr.sbin/rtadvd Message-ID: <201611160354.uAG3sUIn026691@repo.freebsd.org>
next in thread | raw e-mail | index | archive | help
Author: hrs Date: Wed Nov 16 03:54:30 2016 New Revision: 308716 URL: https://svnweb.freebsd.org/changeset/base/308716 Log: MFC r308348: Add link-layer address option in RA even for IFT_L2VLAN and IFT_BRIDGE. Reported by: philip Modified: stable/11/usr.sbin/rtadvd/if.c Directory Properties: stable/11/ (props changed) Modified: stable/11/usr.sbin/rtadvd/if.c ============================================================================== --- stable/11/usr.sbin/rtadvd/if.c Wed Nov 16 03:51:15 2016 (r308715) +++ stable/11/usr.sbin/rtadvd/if.c Wed Nov 16 03:54:30 2016 (r308716) @@ -114,6 +114,8 @@ lladdropt_length(struct sockaddr_dl *sdl { switch (sdl->sdl_type) { case IFT_ETHER: + case IFT_L2VLAN: + case IFT_BRIDGE: return (ROUNDUP8(ETHER_ADDR_LEN + 2)); default: return (0); @@ -129,6 +131,8 @@ lladdropt_fill(struct sockaddr_dl *sdl, switch (sdl->sdl_type) { case IFT_ETHER: + case IFT_L2VLAN: + case IFT_BRIDGE: ndopt->nd_opt_len = (ROUNDUP8(ETHER_ADDR_LEN + 2)) >> 3; addr = (char *)(ndopt + 1); memcpy(addr, LLADDR(sdl), ETHER_ADDR_LEN);
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201611160354.uAG3sUIn026691>