diff options
author | fjoe <fjoe@FreeBSD.org> | 2001-10-14 20:17:53 +0000 |
---|---|---|
committer | fjoe <fjoe@FreeBSD.org> | 2001-10-14 20:17:53 +0000 |
commit | 8ef8a1b13f436d2f49044e9cab13f39e36047b92 (patch) | |
tree | 537998a7e486402b035834f0510ec757a6d5a925 /sys/net/if_var.h | |
parent | e338dc78bdc960ef8f56856b5312ff770d9e773d (diff) | |
download | FreeBSD-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.h | 4 |
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_ */ |