/freebsd/sys/net/ |
H A D | bpf_zerocopy.h | 39 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 D | bpf_buffer.h | 39 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 D | bpf.c | 192 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 D | bpf_buffer.c | 100 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 D | bpf_zerocopy.c | 239 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 D | bpfdesc.h | 52 struct bpf_d { struct 53 CK_LIST_ENTRY(bpf_d) bd_next; /* Linked list of descriptors */
|
H A D | bpf.h | 410 CK_LIST_HEAD(bpfd_list, bpf_d); 417 void bpf_bufheld(struct bpf_d *d);
|
/freebsd/sys/security/mac/ |
H A D | mac_net.c | 120 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 D | mac_framework.h | 56 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 D | mac_policy.h | 72 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 D | mac_ifoff.c | 121 ifoff_bpfdesc_check_receive(struct bpf_d *d, struct label *dlabel, in ifoff_bpfdesc_check_receive()
|
/freebsd/sys/security/mac_stub/ |
H A D | mac_stub.c | 170 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 D | mac_lomac.c | 878 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 D | mac_mls.c | 737 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 D | mac_test.c | 163 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 D | mac_biba.c | 772 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()
|