diff options
Diffstat (limited to 'device')
-rw-r--r-- | device/net_io.h | 10 | ||||
-rw-r--r-- | device/subrs.h | 3 |
2 files changed, 13 insertions, 0 deletions
diff --git a/device/net_io.h b/device/net_io.h index 5baf0678..9468e34b 100644 --- a/device/net_io.h +++ b/device/net_io.h @@ -109,6 +109,14 @@ net_do_filter( unsigned int data_count, const char * header); /* CSPF */ +io_return_t +net_set_filter( + struct ifnet *ifp, + ipc_port_t rcv_port, + int priority, + filter_t *filter, + unsigned int filter_count); + extern int bpf_do_filter( net_rcv_port_t infp, @@ -149,4 +157,6 @@ int bpf_match ( net_hash_entry_t **hash_headpp, net_hash_entry_t *entpp); +boolean_t ethernet_priority(const ipc_kmsg_t kmsg); + #endif /* _DEVICE_NET_IO_H_ */ diff --git a/device/subrs.h b/device/subrs.h index 680aaa6f..60ea6518 100644 --- a/device/subrs.h +++ b/device/subrs.h @@ -27,6 +27,9 @@ #define _SUBRS_H_ #include <mach/std_types.h> +#include <device/if_hdr.h> + +extern void if_init_queues(struct ifnet *ifp); extern void sleep (vm_offset_t channel, int priority); extern void wakeup (vm_offset_t channel); |