Searched refs:AF_PACKET (Results 1 - 23 of 23) sorted by relevance
/linux-master/tools/testing/selftests/bpf/progs/ |
H A D | lsm_cgroup.c | 14 #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 D | sock_example.h | 25 sll.sll_family = AF_PACKET;
|
/linux-master/tools/testing/selftests/bpf/prog_tests/ |
H A D | lsm_cgroup.c | 199 /* 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 D | lwt_redirect.c | 100 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 D | xdp_bonding.c | 220 s = socket(AF_PACKET, SOCK_RAW, IPPROTO_RAW);
|
/linux-master/tools/testing/selftests/net/ |
H A D | txring_overwrite.c | 96 laddr.sll_family = AF_PACKET;
|
H A D | psock_snd.c | 174 laddr.sll_family = AF_PACKET;
|
H A D | psock_fanout.c | 78 addr.sll_family = AF_PACKET;
|
H A D | toeplitz.c | 360 ll.sll_family = AF_PACKET;
|
H A D | csum.c | 415 addr.sll_family = AF_PACKET; 531 laddr.sll_family = AF_PACKET;
|
H A D | msg_zerocopy.c | 511 laddr.sll_family = AF_PACKET;
|
H A D | gro.c | 776 daddr.sll_family = AF_PACKET; 873 daddr.sll_family = AF_PACKET;
|
H A D | txtimestamp.c | 604 laddr.sll_family = AF_PACKET;
|
/linux-master/net/packet/ |
H A D | diag.c | 144 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 D | af_packet.c | 2458 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 D | socket.h | 208 #define AF_PACKET 17 /* Packet family */ macro 265 #define PF_PACKET AF_PACKET
|
/linux-master/tools/perf/trace/beauty/include/linux/ |
H A D | socket.h | 208 #define AF_PACKET 17 /* Packet family */ macro 265 #define PF_PACKET AF_PACKET
|
/linux-master/arch/um/drivers/ |
H A D | vector_user.c | 168 fd = socket(AF_PACKET, SOCK_RAW, flags); 180 sock.sll_family = AF_PACKET;
|
/linux-master/tools/virtio/ |
H A D | vhost_net_test.c | 106 dev->sock = socket(AF_PACKET, SOCK_RAW, htons(TEST_PTYPE));
|
/linux-master/tools/bpf/bpftool/ |
H A D | net.c | 349 .ifm.ifi_family = AF_PACKET,
|
/linux-master/tools/lib/bpf/ |
H A D | netlink.c | 437 .ifinfo.ifi_family = AF_PACKET,
|
/linux-master/net/mpls/ |
H A D | af_mpls.c | 742 case AF_PACKET: 1685 AF_INET, AF_INET6, AF_DECnet, AF_PACKET,
|
/linux-master/drivers/vhost/ |
H A D | net.c | 1411 if (sock->sk->sk_family != AF_PACKET) {
|
Completed in 259 milliseconds