summaryrefslogtreecommitdiffstats
path: root/sys/net/if_var.h
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_var.h
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_var.h')
-rw-r--r--sys/net/if_var.h4
1 files changed, 4 insertions, 0 deletions
diff --git a/sys/net/if_var.h b/sys/net/if_var.h
index b3d4900..cc1983d 100644
--- a/sys/net/if_var.h
+++ b/sys/net/if_var.h
@@ -158,6 +158,7 @@ struct ifnet {
struct ifqueue if_snd; /* output queue */
struct ifqueue *if_poll_slowq; /* input queue for slow devices */
struct ifprefixhead if_prefixhead; /* list of prefixes per if */
+ u_int8_t *if_broadcastaddr; /* linklevel broadcast bytestring */
};
typedef void if_init_f_t __P((void *));
@@ -447,6 +448,9 @@ void if_clone_detach __P((struct if_clone *));
int if_clone_create __P((char *, int));
int if_clone_destroy __P((const char *));
+#define IF_LLADDR(ifp) \
+ LLADDR((struct sockaddr_dl *) ifaddr_byindex((ifp)->if_index)->ifa_addr)
+
#endif /* _KERNEL */
#endif /* !_NET_IF_VAR_H_ */
OpenPOWER on IntegriCloud