Home
last modified time | relevance | path

Searched refs:PF_PACKET (Results 1 – 13 of 13) sorted by relevance

/linux-4.4.14/net/packet/
DKconfig23 Support for PF_PACKET sockets monitoring interface used by the ss tool.
Daf_packet.c1522 if (sk->sk_family != PF_PACKET) in match_fanout_group()
3063 sk = sk_alloc(net, PF_PACKET, GFP_KERNEL, &packet_proto, kern); in packet_create()
3074 sk->sk_family = PF_PACKET; in packet_create()
4271 .family = PF_PACKET,
4292 .family = PF_PACKET,
4313 .family = PF_PACKET,
4418 sock_unregister(PF_PACKET); in packet_exit()
4439 MODULE_ALIAS_NETPROTO(PF_PACKET);
/linux-4.4.14/tools/testing/selftests/net/
Dpsock_tpacket.c113 int ret, sock = socket(PF_PACKET, SOCK_RAW, htons(ETH_P_ALL)); in pfsocket()
360 .sll_family = PF_PACKET, in walk_v1_v2_tx()
367 rcv_sock = socket(PF_PACKET, SOCK_RAW, htons(ETH_P_ALL)); in walk_v1_v2_tx()
688 ring->ll.sll_family = PF_PACKET; in bind_ring()
Dpsock_fanout.c78 fd = socket(PF_PACKET, SOCK_DGRAM, htons(ETH_P_IP)); in sock_fanout_open()
/linux-4.4.14/samples/bpf/
Dlibbpf.c130 sock = socket(PF_PACKET, SOCK_RAW | SOCK_NONBLOCK | SOCK_CLOEXEC, htons(ETH_P_ALL)); in open_raw_sock()
/linux-4.4.14/include/linux/
Dsocket.h225 #define PF_PACKET AF_PACKET macro
/linux-4.4.14/Documentation/networking/
Dpacket_mmap.txt90 int fd = socket(PF_PACKET, mode, htons(ETH_P_ALL));
134 int fd = socket(PF_PACKET, mode, 0);
856 ll.sll_family = PF_PACKET;
997 This has the side-effect, that packets sent through PF_PACKET will bypass the
1000 and such packets are also not visible to other PF_PACKET sockets anymore. So,
1005 on PF_PACKET sockets.
1033 software fallback was invoked *within* PF_PACKET's processing code (less
Dfilter.txt125 sock = socket(PF_PACKET, SOCK_RAW, htons(ETH_P_ALL));
136 The above example code attaches a socket filter for a PF_PACKET socket
144 Note that socket filters are not restricted to PF_PACKET sockets only,
Dcan.txt284 PF_PACKET socket, that also binds to a specific interface:
1269 Uwe Koppe (CAN netdevices with PF_PACKET approach)
/linux-4.4.14/drivers/staging/lustre/lnet/lnet/
Dlib-socket.c529 rc = sock_create_lite(PF_PACKET, sock->type, IPPROTO_TCP, &newsock); in lnet_sock_accept()
/linux-4.4.14/net/
Dsocket.c1115 family = PF_PACKET; in __sock_create()
/linux-4.4.14/net/core/
Drtnetlink.c2500 if (idx < s_idx || idx == PF_PACKET) in rtnl_dump_all()
/linux-4.4.14/security/selinux/
Dhooks.c1241 case PF_PACKET: in socket_type_to_security_class()