]> git.saurik.com Git - apple/xnu.git/blob - bsd/netinet/ip_edgehole.h
xnu-1228.15.4.tar.gz
[apple/xnu.git] / bsd / netinet / ip_edgehole.h
1 #include <sys/kpi_mbuf.h>
2
3 struct inpcb;
4
5 // Tag an mbuf on the way out with the edge flags from the inpcb
6 extern void ip_edgehole_mbuf_tag(struct inpcb *inp, mbuf_t m);
7
8 // Attach the edge flags to the inpcb
9 extern void ip_edgehole_attach(struct inpcb *inp);
10
11 // Called by the edge interface to determine if the edge interface
12 // should drop the packet. Will return 0 if the packet should continue
13 // to be processed or EPERM if ip_edgehole_filter swallowed the packet.
14 // When ip_edgehole_filter swallows a packet, it frees it and sets your
15 // pointer to it to NULL. isVV should be set to zero unless the edge
16 // interface in question is the visual voicemail edge interface.
17 extern int ip_edgehole_filter(mbuf_t *m, int isVV);