summaryrefslogtreecommitdiffstats
path: root/sys/net/if.c
diff options
context:
space:
mode:
authorfjoe <fjoe@FreeBSD.org>2001-10-14 20:17:53 +0000
committerfjoe <fjoe@FreeBSD.org>2001-10-14 20:17:53 +0000
commit8ef8a1b13f436d2f49044e9cab13f39e36047b92 (patch)
tree537998a7e486402b035834f0510ec757a6d5a925 /sys/net/if.c
parente338dc78bdc960ef8f56856b5312ff770d9e773d (diff)
downloadFreeBSD-src-8ef8a1b13f436d2f49044e9cab13f39e36047b92.zip
FreeBSD-src-8ef8a1b13f436d2f49044e9cab13f39e36047b92.tar.gz
bring in ARP support for variable length link level addresses
Reviewed by: jdp Approved by: jdp Obtained from: NetBSD MFC after: 6 weeks
Diffstat (limited to 'sys/net/if.c')
-rw-r--r--sys/net/if.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/sys/net/if.c b/sys/net/if.c
index 339ddd2..5e7b5bc1 100644
--- a/sys/net/if.c
+++ b/sys/net/if.c
@@ -429,6 +429,7 @@ if_attach(ifp)
sdl->sdl_data[--namelen] = 0xff;
TAILQ_INSERT_HEAD(&ifp->if_addrhead, ifa, ifa_link);
}
+ ifp->if_broadcastaddr = 0; /* reliably crash if used uninitialized */
}
/*
OpenPOWER on IntegriCloud