summaryrefslogtreecommitdiffstats
path: root/sys/net
diff options
context:
space:
mode:
authorjlemon <jlemon@FreeBSD.org>2001-10-11 05:37:59 +0000
committerjlemon <jlemon@FreeBSD.org>2001-10-11 05:37:59 +0000
commitdb88fbbac0de8a476a3c9979d9bf7f5dd530c3e0 (patch)
treee1138b75a79cbab34f532510d0dad5af1faf9d06 /sys/net
parentd53f722ed3ace7d113edae3580003bc0f8181098 (diff)
downloadFreeBSD-src-db88fbbac0de8a476a3c9979d9bf7f5dd530c3e0.zip
FreeBSD-src-db88fbbac0de8a476a3c9979d9bf7f5dd530c3e0.tar.gz
Set if_type and if_addrlen before calling if_attach(), so the values are
available for the routine to use.
Diffstat (limited to 'sys/net')
-rw-r--r--sys/net/if_ethersubr.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/sys/net/if_ethersubr.c b/sys/net/if_ethersubr.c
index 2e7a49a..05c2723 100644
--- a/sys/net/if_ethersubr.c
+++ b/sys/net/if_ethersubr.c
@@ -655,10 +655,10 @@ ether_ifattach(ifp, bpf)
register struct ifaddr *ifa;
register struct sockaddr_dl *sdl;
- if_attach(ifp);
ifp->if_type = IFT_ETHER;
ifp->if_addrlen = 6;
ifp->if_hdrlen = 14;
+ if_attach(ifp);
ifp->if_mtu = ETHERMTU;
ifp->if_resolvemulti = ether_resolvemulti;
if (ifp->if_baudrate == 0)
OpenPOWER on IntegriCloud