ethernet.h (95ee2897e98f5d444f26ed2334cc7c439f9c16c6) ethernet.h (838c8c47860a0203130bd558d507a0565a2eba8f)
1/*
2 * Fundamental constants relating to ethernet.
3 *
4 */
5
6#ifndef _NET_ETHERNET_H_
7#define _NET_ETHERNET_H_
8

--- 432 unchanged lines hidden (view full) ---

441extern int ether_output(struct ifnet *, struct mbuf *,
442 const struct sockaddr *, struct route *);
443extern int ether_output_frame(struct ifnet *, struct mbuf *);
444extern char *ether_sprintf(const u_int8_t *);
445void ether_vlan_mtap(struct bpf_if *, struct mbuf *,
446 void *, u_int);
447struct mbuf *ether_vlanencap_proto(struct mbuf *, uint16_t, uint16_t);
448bool ether_8021q_frame(struct mbuf **mp, struct ifnet *ife,
1/*
2 * Fundamental constants relating to ethernet.
3 *
4 */
5
6#ifndef _NET_ETHERNET_H_
7#define _NET_ETHERNET_H_
8

--- 432 unchanged lines hidden (view full) ---

441extern int ether_output(struct ifnet *, struct mbuf *,
442 const struct sockaddr *, struct route *);
443extern int ether_output_frame(struct ifnet *, struct mbuf *);
444extern char *ether_sprintf(const u_int8_t *);
445void ether_vlan_mtap(struct bpf_if *, struct mbuf *,
446 void *, u_int);
447struct mbuf *ether_vlanencap_proto(struct mbuf *, uint16_t, uint16_t);
448bool ether_8021q_frame(struct mbuf **mp, struct ifnet *ife,
449 struct ifnet *p, struct ether_8021q_tag *);
449 struct ifnet *p, const struct ether_8021q_tag *);
450void ether_gen_addr(struct ifnet *ifp, struct ether_addr *hwaddr);
451
452static __inline struct mbuf *ether_vlanencap(struct mbuf *m, uint16_t tag)
453{
454
455 return ether_vlanencap_proto(m, tag, ETHERTYPE_VLAN);
456}
457

--- 24 unchanged lines hidden ---
450void ether_gen_addr(struct ifnet *ifp, struct ether_addr *hwaddr);
451
452static __inline struct mbuf *ether_vlanencap(struct mbuf *m, uint16_t tag)
453{
454
455 return ether_vlanencap_proto(m, tag, ETHERTYPE_VLAN);
456}
457

--- 24 unchanged lines hidden ---