Changeset View
Changeset View
Standalone View
Standalone View
head/sys/net/ethernet.h
Show First 20 Lines • Show All 416 Lines • ▼ Show 20 Lines | 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(struct mbuf *, uint16_t); | struct mbuf *ether_vlanencap(struct mbuf *, uint16_t); | ||||
bool ether_8021q_frame(struct mbuf **mp, struct ifnet *ife, struct ifnet *p, | bool ether_8021q_frame(struct mbuf **mp, struct ifnet *ife, struct ifnet *p, | ||||
uint16_t vid, uint8_t pcp); | uint16_t vid, uint8_t pcp); | ||||
void ether_fakeaddr(struct ether_addr *hwaddr); | |||||
#ifdef _SYS_EVENTHANDLER_H_ | #ifdef _SYS_EVENTHANDLER_H_ | ||||
/* new ethernet interface attached event */ | /* new ethernet interface attached event */ | ||||
typedef void (*ether_ifattach_event_handler_t)(void *, struct ifnet *); | typedef void (*ether_ifattach_event_handler_t)(void *, struct ifnet *); | ||||
EVENTHANDLER_DECLARE(ether_ifattach_event, ether_ifattach_event_handler_t); | EVENTHANDLER_DECLARE(ether_ifattach_event, ether_ifattach_event_handler_t); | ||||
#endif | #endif | ||||
#else /* _KERNEL */ | #else /* _KERNEL */ | ||||
Show All 19 Lines |