34 u8 h_source[ETH_ALEN];
42 enum l2_packet_filter_type {
43 L2_PACKET_FILTER_DHCP,
44 L2_PACKET_FILTER_NDISC,
65 const char *ifname,
const u8 *own_addr,
unsigned short protocol,
66 void (*rx_callback)(
void *ctx,
const u8 *src_addr,
67 const u8 *buf,
size_t len),
68 void *rx_callback_ctx,
int l2_hdr);
77 const char *br_ifname,
const char *ifname,
const u8 *own_addr,
78 unsigned short protocol,
79 void (*rx_callback)(
void *ctx,
const u8 *src_addr,
80 const u8 *buf,
size_t len),
81 void *rx_callback_ctx,
int l2_hdr);
109 int l2_packet_send(
struct l2_packet_data *l2,
const u8 *dst_addr, u16 proto,
110 const u8 *buf,
size_t len);
126 int l2_packet_get_ip_addr(
struct l2_packet_data *l2,
char *buf,
size_t len);
152 enum l2_packet_filter_type type);
Definition: l2_packet_freebsd.c:36
Definition: l2_packet.h:32