Changeset View
Changeset View
Standalone View
Standalone View
sys/net/ethernet.h
Show First 20 Lines • Show All 431 Lines • ▼ Show 20 Lines | |||||
struct bpf_if; | struct bpf_if; | ||||
struct ether_8021q_tag; | struct ether_8021q_tag; | ||||
extern uint32_t ether_crc32_le(const uint8_t *, size_t); | extern uint32_t ether_crc32_le(const uint8_t *, size_t); | ||||
extern uint32_t ether_crc32_be(const uint8_t *, size_t); | extern uint32_t ether_crc32_be(const uint8_t *, size_t); | ||||
extern void ether_demux(struct ifnet *, struct mbuf *); | extern void ether_demux(struct ifnet *, struct mbuf *); | ||||
extern void ether_ifattach(struct ifnet *, const u_int8_t *); | extern void ether_ifattach(struct ifnet *, const u_int8_t *); | ||||
extern void ether_ifdetach(struct ifnet *); | extern void ether_ifdetach(struct ifnet *); | ||||
#ifdef VIMAGE | |||||
struct vnet; | |||||
extern void ether_reassign(struct ifnet *, struct vnet *, char *); | |||||
#endif | |||||
extern int ether_ioctl(struct ifnet *, u_long, caddr_t); | extern int ether_ioctl(struct ifnet *, u_long, caddr_t); | ||||
extern int ether_output(struct ifnet *, struct mbuf *, | extern int ether_output(struct ifnet *, struct mbuf *, | ||||
const struct sockaddr *, struct route *); | const struct sockaddr *, struct route *); | ||||
extern int ether_output_frame(struct ifnet *, struct mbuf *); | extern int ether_output_frame(struct ifnet *, struct mbuf *); | ||||
extern char *ether_sprintf(const u_int8_t *); | extern char *ether_sprintf(const u_int8_t *); | ||||
void ether_vlan_mtap(struct bpf_if *, struct mbuf *, | void ether_vlan_mtap(struct bpf_if *, struct mbuf *, | ||||
void *, u_int); | void *, u_int); | ||||
struct mbuf *ether_vlanencap_proto(struct mbuf *, uint16_t, uint16_t); | struct mbuf *ether_vlanencap_proto(struct mbuf *, uint16_t, uint16_t); | ||||
Show All 34 Lines |