Changeset View
Changeset View
Standalone View
Standalone View
sys/net/ethernet.h
Show First 20 Lines • Show All 400 Lines • ▼ Show 20 Lines | |||||
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(struct mbuf *, uint16_t); | struct mbuf *ether_vlanencap(struct mbuf *, uint16_t); | ||||
#ifdef _SYS_EVENTHANDLER_H_ | |||||
/* new ethernet interface attached event */ | |||||
typedef void (*ether_ifattach_event_handler_t)(void *, struct ifnet *); | |||||
EVENTHANDLER_DECLARE(ether_ifattach_event, ether_ifattach_event_handler_t); | |||||
#endif | |||||
#else /* _KERNEL */ | #else /* _KERNEL */ | ||||
#include <sys/cdefs.h> | #include <sys/cdefs.h> | ||||
/* | /* | ||||
* Ethernet address conversion/parsing routines. | * Ethernet address conversion/parsing routines. | ||||
*/ | */ | ||||
__BEGIN_DECLS | __BEGIN_DECLS | ||||
Show All 12 Lines |