Home
last modified time | relevance | path

Searched refs:bpf_d (Results 1 – 16 of 16) sorted by relevance

/freebsd/sys/net/
H A Dbpf_zerocopy.h39 void bpf_zerocopy_append_bytes(struct bpf_d *d, caddr_t buf, u_int offset,
41 void bpf_zerocopy_append_mbuf(struct bpf_d *d, caddr_t buf, u_int offset,
43 void bpf_zerocopy_buffull(struct bpf_d *);
44 void bpf_zerocopy_bufheld(struct bpf_d *);
45 void bpf_zerocopy_buf_reclaimed(struct bpf_d *);
46 int bpf_zerocopy_canfreebuf(struct bpf_d *);
47 int bpf_zerocopy_canwritebuf(struct bpf_d *);
48 void bpf_zerocopy_free(struct bpf_d *d);
49 int bpf_zerocopy_ioctl_getzmax(struct thread *td, struct bpf_d *d,
51 int bpf_zerocopy_ioctl_rotzbuf(struct thread *td, struct bpf_d *d,
[all …]
H A Dbpf_buffer.h39 void bpf_buffer_append_bytes(struct bpf_d *d, caddr_t buf, u_int offset,
41 void bpf_buffer_append_mbuf(struct bpf_d *d, caddr_t buf, u_int offset,
43 void bpf_buffer_free(struct bpf_d *d);
44 void bpf_buffer_init(struct bpf_d *d);
45 int bpf_buffer_ioctl_sblen(struct bpf_d *d, u_int *i);
46 int bpf_buffer_uiomove(struct bpf_d *d, caddr_t buf, u_int len,
H A Dbpf.c192 static void bpfd_ref(struct bpf_d *);
193 static void bpfd_rele(struct bpf_d *);
194 static void bpf_attachd(struct bpf_d *, struct bpf_if *);
195 static void bpf_detachd(struct bpf_d *);
196 static void bpf_detachd_locked(struct bpf_d *, bool);
199 struct sockaddr *, int *, struct bpf_d *);
200 static int bpf_setif(struct bpf_d *, struct ifreq *);
203 bpf_wakeup(struct bpf_d *);
204 static void catchpacket(struct bpf_d *, u_char *, u_int, u_int,
205 void (*)(struct bpf_d *, caddr_t, u_int, void *, u_int),
[all …]
H A Dbpf_buffer.c100 bpf_buffer_append_bytes(struct bpf_d *d, caddr_t buf, u_int offset, in bpf_buffer_append_bytes()
113 bpf_buffer_append_mbuf(struct bpf_d *d, caddr_t buf, u_int offset, void *src, in bpf_buffer_append_mbuf()
128 bpf_buffer_free(struct bpf_d *d) in bpf_buffer_free()
149 bpf_buffer_init(struct bpf_d *d) in bpf_buffer_init()
159 bpf_buffer_ioctl_sblen(struct bpf_d *d, u_int *i) in bpf_buffer_ioctl_sblen()
206 bpf_buffer_uiomove(struct bpf_d *d, caddr_t buf, u_int len, struct uio *uio) in bpf_buffer_uiomove()
H A Dbpf_zerocopy.c239 bpf_zerocopy_append_bytes(struct bpf_d *d, caddr_t buf, u_int offset, in bpf_zerocopy_append_bytes()
291 bpf_zerocopy_append_mbuf(struct bpf_d *d, caddr_t buf, u_int offset, in bpf_zerocopy_append_mbuf()
355 bpf_zerocopy_buffull(struct bpf_d *d) in bpf_zerocopy_buffull()
382 bpf_zerocopy_bufheld(struct bpf_d *d) in bpf_zerocopy_bufheld()
405 bpf_zerocopy_buf_reclaimed(struct bpf_d *d) in bpf_zerocopy_buf_reclaimed()
425 bpf_zerocopy_canfreebuf(struct bpf_d *d) in bpf_zerocopy_canfreebuf()
448 bpf_zerocopy_canwritebuf(struct bpf_d *d) in bpf_zerocopy_canwritebuf()
467 bpf_zerocopy_free(struct bpf_d *d) in bpf_zerocopy_free()
489 bpf_zerocopy_ioctl_getzmax(struct thread *td, struct bpf_d *d, size_t *i) in bpf_zerocopy_ioctl_getzmax()
505 bpf_zerocopy_ioctl_rotzbuf(struct thread *td, struct bpf_d *d, in bpf_zerocopy_ioctl_rotzbuf()
[all …]
H A Dbpfdesc.h52 struct bpf_d { struct
53 CK_LIST_ENTRY(bpf_d) bd_next; /* Linked list of descriptors */
H A Dbpf.h410 CK_LIST_HEAD(bpfd_list, bpf_d);
417 void bpf_bufheld(struct bpf_d *d);
/freebsd/sys/security/mac/
H A Dmac_net.c120 mac_bpfdesc_init(struct bpf_d *d) in mac_bpfdesc_init()
201 mac_bpfdesc_destroy(struct bpf_d *d) in mac_bpfdesc_destroy()
314 mac_bpfdesc_create(struct ucred *cred, struct bpf_d *d) in mac_bpfdesc_create()
321 mac_bpfdesc_create_mbuf(struct bpf_d *d, struct mbuf *m) in mac_bpfdesc_create_mbuf()
355 mac_bpfdesc_check_receive(struct bpf_d *d, struct ifnet *ifp) in mac_bpfdesc_check_receive()
H A Dmac_framework.h56 struct bpf_d;
107 int mac_bpfdesc_check_receive(struct bpf_d *d, struct ifnet *ifp);
108 void mac_bpfdesc_create(struct ucred *cred, struct bpf_d *d);
109 void mac_bpfdesc_create_mbuf(struct bpf_d *d, struct mbuf *m);
110 void mac_bpfdesc_destroy(struct bpf_d *);
111 void mac_bpfdesc_init(struct bpf_d *);
H A Dmac_policy.h72 struct bpf_d;
128 typedef int (*mpo_bpfdesc_check_receive_t)(struct bpf_d *d,
132 struct bpf_d *d, struct label *dlabel);
133 typedef void (*mpo_bpfdesc_create_mbuf_t)(struct bpf_d *d,
/freebsd/sys/security/mac_ifoff/
H A Dmac_ifoff.c121 ifoff_bpfdesc_check_receive(struct bpf_d *d, struct label *dlabel, in ifoff_bpfdesc_check_receive()
/freebsd/sys/security/mac_stub/
H A Dmac_stub.c170 stub_bpfdesc_check_receive(struct bpf_d *d, struct label *dlabel, in stub_bpfdesc_check_receive()
178 stub_bpfdesc_create(struct ucred *cred, struct bpf_d *d, in stub_bpfdesc_create()
185 stub_bpfdesc_create_mbuf(struct bpf_d *d, struct label *dlabel, in stub_bpfdesc_create_mbuf()
/freebsd/sys/security/mac_lomac/
H A Dmac_lomac.c878 lomac_bpfdesc_check_receive(struct bpf_d *d, struct label *dlabel, in lomac_bpfdesc_check_receive()
895 lomac_bpfdesc_create(struct ucred *cred, struct bpf_d *d, in lomac_bpfdesc_create()
907 lomac_bpfdesc_create_mbuf(struct bpf_d *d, struct label *dlabel, in lomac_bpfdesc_create_mbuf()
/freebsd/sys/security/mac_mls/
H A Dmac_mls.c737 mls_bpfdesc_check_receive(struct bpf_d *d, struct label *dlabel, in mls_bpfdesc_check_receive()
754 mls_bpfdesc_create(struct ucred *cred, struct bpf_d *d, struct label *dlabel) in mls_bpfdesc_create()
765 mls_bpfdesc_create_mbuf(struct bpf_d *d, struct label *dlabel, in mls_bpfdesc_create_mbuf()
/freebsd/sys/security/mac_test/
H A Dmac_test.c163 test_bpfdesc_check_receive(struct bpf_d *d, struct label *dlabel, in test_bpfdesc_check_receive()
176 test_bpfdesc_create(struct ucred *cred, struct bpf_d *d, in test_bpfdesc_create()
187 test_bpfdesc_create_mbuf(struct bpf_d *d, struct label *dlabel, in test_bpfdesc_create_mbuf()
/freebsd/sys/security/mac_biba/
H A Dmac_biba.c772 biba_bpfdesc_check_receive(struct bpf_d *d, struct label *dlabel, in biba_bpfdesc_check_receive()
789 biba_bpfdesc_create(struct ucred *cred, struct bpf_d *d, in biba_bpfdesc_create()
801 biba_bpfdesc_create_mbuf(struct bpf_d *d, struct label *dlabel, in biba_bpfdesc_create_mbuf()