Searched refs:AF_PACKET (Results 1 - 23 of 23) sorted by relevance

/linux-master/tools/testing/selftests/bpf/progs/
H A Dlsm_cgroup.c14 #ifndef AF_PACKET
15 #define AF_PACKET 17 macro
57 /* Reject non-tx-only AF_PACKET. */
58 if (family == AF_PACKET && protocol != 0)
107 if (sock->sk->__sk_common.skc_family != AF_PACKET)
/linux-master/samples/bpf/
H A Dsock_example.h25 sll.sll_family = AF_PACKET;
/linux-master/tools/testing/selftests/bpf/prog_tests/
H A Dlsm_cgroup.c199 /* TX-only AF_PACKET is allowed. */
201 ASSERT_LT(socket(AF_PACKET, SOCK_RAW, htons(ETH_P_ALL)), 0,
202 "socket(AF_PACKET, ..., ETH_P_ALL)");
204 fd = socket(AF_PACKET, SOCK_RAW, 0);
205 ASSERT_GE(fd, 0, "socket(AF_PACKET, ..., 0)");
207 /* TX-only AF_PACKET can not be rebound. */
210 .sll_family = AF_PACKET,
238 * AF_PACKET+SOCK_RAW
261 * AF_PACKET+SOCK_RAW (failed)
262 * AF_PACKET
[all...]
H A Dlwt_redirect.c100 s = socket(AF_PACKET, SOCK_RAW, 0);
101 if (!ASSERT_GE(s, 0, "socket(AF_PACKET)"))
111 .sll_family = AF_PACKET,
117 if (!ASSERT_OK(err, "bind(AF_PACKET)")) {
H A Dxdp_bonding.c220 s = socket(AF_PACKET, SOCK_RAW, IPPROTO_RAW);
/linux-master/tools/testing/selftests/net/
H A Dtxring_overwrite.c96 laddr.sll_family = AF_PACKET;
H A Dpsock_snd.c174 laddr.sll_family = AF_PACKET;
H A Dpsock_fanout.c78 addr.sll_family = AF_PACKET;
H A Dtoeplitz.c360 ll.sll_family = AF_PACKET;
H A Dcsum.c415 addr.sll_family = AF_PACKET;
531 laddr.sll_family = AF_PACKET;
H A Dmsg_zerocopy.c511 laddr.sll_family = AF_PACKET;
H A Dgro.c776 daddr.sll_family = AF_PACKET;
873 daddr.sll_family = AF_PACKET;
H A Dtxtimestamp.c604 laddr.sll_family = AF_PACKET;
/linux-master/net/packet/
H A Ddiag.c144 rp->pdiag_family = AF_PACKET;
249 .family = AF_PACKET,
267 MODULE_ALIAS_NET_PF_PROTO_TYPE(PF_NETLINK, NETLINK_SOCK_DIAG, 17 /* AF_PACKET */);
H A Daf_packet.c2458 sll->sll_family = AF_PACKET;
3319 if (sll->sll_family != AF_PACKET)
3485 sll->sll_family = AF_PACKET;
3571 uaddr->sa_family = AF_PACKET;
3595 sll->sll_family = AF_PACKET;
4787 MODULE_DESCRIPTION("Packet socket support (AF_PACKET)");
/linux-master/include/linux/
H A Dsocket.h208 #define AF_PACKET 17 /* Packet family */ macro
265 #define PF_PACKET AF_PACKET
/linux-master/tools/perf/trace/beauty/include/linux/
H A Dsocket.h208 #define AF_PACKET 17 /* Packet family */ macro
265 #define PF_PACKET AF_PACKET
/linux-master/arch/um/drivers/
H A Dvector_user.c168 fd = socket(AF_PACKET, SOCK_RAW, flags);
180 sock.sll_family = AF_PACKET;
/linux-master/tools/virtio/
H A Dvhost_net_test.c106 dev->sock = socket(AF_PACKET, SOCK_RAW, htons(TEST_PTYPE));
/linux-master/tools/bpf/bpftool/
H A Dnet.c349 .ifm.ifi_family = AF_PACKET,
/linux-master/tools/lib/bpf/
H A Dnetlink.c437 .ifinfo.ifi_family = AF_PACKET,
/linux-master/net/mpls/
H A Daf_mpls.c742 case AF_PACKET:
1685 AF_INET, AF_INET6, AF_DECnet, AF_PACKET,
/linux-master/drivers/vhost/
H A Dnet.c1411 if (sock->sk->sk_family != AF_PACKET) {

Completed in 259 milliseconds