|
@@ -312,6 +312,18 @@ struct l2_packet_data * l2_packet_init(
|
|
|
}
|
|
|
|
|
|
|
|
|
+struct l2_packet_data * l2_packet_init_bridge(
|
|
|
+ const char *br_ifname, const char *ifname, const u8 *own_addr,
|
|
|
+ unsigned short protocol,
|
|
|
+ void (*rx_callback)(void *ctx, const u8 *src_addr,
|
|
|
+ const u8 *buf, size_t len),
|
|
|
+ void *rx_callback_ctx, int l2_hdr)
|
|
|
+{
|
|
|
+ return l2_packet_init(br_ifname, own_addr, protocol, rx_callback,
|
|
|
+ rx_callback_ctx, l2_hdr);
|
|
|
+}
|
|
|
+
|
|
|
+
|
|
|
void l2_packet_deinit(struct l2_packet_data *l2)
|
|
|
{
|
|
|
if (l2 == NULL)
|