diff options
author | Ruslan Ermilov <ru@FreeBSD.org> | 2005-11-11 07:36:14 +0000 |
---|---|---|
committer | Ruslan Ermilov <ru@FreeBSD.org> | 2005-11-11 07:36:14 +0000 |
commit | d09ed26fd80ce9c7bfbce9a4b89f352e610d8abc (patch) | |
tree | 4d7e562715c0e571dbcf93217dd79abe8f2fb3dd /sys/net/if.c | |
parent | a0e82eba5d6abf7cff5971e4d6d72034020df8de (diff) | |
download | src-test2-d09ed26fd80ce9c7bfbce9a4b89f352e610d8abc.tar.gz src-test2-d09ed26fd80ce9c7bfbce9a4b89f352e610d8abc.zip |
Notes
Diffstat (limited to 'sys/net/if.c')
-rw-r--r-- | sys/net/if.c | 10 |
1 files changed, 1 insertions, 9 deletions
diff --git a/sys/net/if.c b/sys/net/if.c index 31d286b30481..be7b842b08fd 100644 --- a/sys/net/if.c +++ b/sys/net/if.c @@ -59,7 +59,6 @@ #include <machine/stdarg.h> #include <net/if.h> -#include <net/if_arp.h> #include <net/if_clone.h> #include <net/if_dl.h> #include <net/if_types.h> @@ -2101,19 +2100,12 @@ if_setlladdr(struct ifnet *ifp, const u_char *lladdr, int len) if (len != sdl->sdl_alen) /* don't allow length to change */ return (EINVAL); switch (ifp->if_type) { - case IFT_ETHER: /* these types use struct arpcom */ + case IFT_ETHER: case IFT_FDDI: case IFT_XETHER: case IFT_ISO88025: case IFT_L2VLAN: case IFT_BRIDGE: - bcopy(lladdr, IFP2ENADDR(ifp), len); - /* - * XXX We also need to store the lladdr in LLADDR(sdl), - * which is done below. This is a pain because we must - * remember to keep the info in sync. - */ - /* FALLTHROUGH */ case IFT_ARCNET: bcopy(lladdr, LLADDR(sdl), len); break; |