summaryrefslogtreecommitdiff
path: root/src/class/net/net_device.h
diff options
context:
space:
mode:
authorZixun LI <[email protected]>2026-04-30 14:56:13 +0200
committerZixun LI <[email protected]>2026-04-30 14:56:13 +0200
commit7cfa0d1b970b6e276e0eca3eee2de43aa3b7c443 (patch)
tree97239d63e2cf4d977219ecfeaddfd6f3d0641433 /src/class/net/net_device.h
parent405dadecc73f2d9268e7872d7ba670d910a8f6eb (diff)
add packet filter callback
Co-authored-by: Copilot <[email protected]> Signed-off-by: Zixun LI <[email protected]>
Diffstat (limited to 'src/class/net/net_device.h')
-rw-r--r--src/class/net/net_device.h3
1 files changed, 3 insertions, 0 deletions
diff --git a/src/class/net/net_device.h b/src/class/net/net_device.h
index 61ff6b2d6..e0d235ebe 100644
--- a/src/class/net/net_device.h
+++ b/src/class/net/net_device.h
@@ -106,6 +106,9 @@ extern uint8_t tud_network_mac_address[6];
//------------- NCM -------------//
+// Optional callback: informs the application about host requested packet filter bits
+void tud_network_set_packet_filter_cb(uint16_t packet_filter);
+
// Set the network link state (up/down) and notify the host
void tud_network_link_state(uint8_t rhport, bool is_up);