Searched refs:PF_PACKET (Results 1 – 13 of 13) sorted by relevance
/linux-4.1.27/net/packet/ |
D | Kconfig | 23 Support for PF_PACKET sockets monitoring interface used by the ss tool.
|
D | af_packet.c | 2843 sk = sk_alloc(net, PF_PACKET, GFP_KERNEL, &packet_proto); in packet_create() 2854 sk->sk_family = PF_PACKET; in packet_create() 4027 .family = PF_PACKET, 4048 .family = PF_PACKET, 4069 .family = PF_PACKET, 4174 sock_unregister(PF_PACKET); in packet_exit() 4195 MODULE_ALIAS_NETPROTO(PF_PACKET);
|
/linux-4.1.27/tools/testing/selftests/net/ |
D | psock_tpacket.c | 113 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()
|
D | psock_fanout.c | 74 fd = socket(PF_PACKET, SOCK_DGRAM, htons(ETH_P_IP)); in sock_fanout_open()
|
/linux-4.1.27/samples/bpf/ |
D | libbpf.c | 111 sock = socket(PF_PACKET, SOCK_RAW | SOCK_NONBLOCK | SOCK_CLOEXEC, htons(ETH_P_ALL)); in open_raw_sock()
|
/linux-4.1.27/include/linux/ |
D | socket.h | 225 #define PF_PACKET AF_PACKET macro
|
/linux-4.1.27/Documentation/networking/ |
D | packet_mmap.txt | 90 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
|
D | filter.txt | 125 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,
|
D | can.txt | 281 PF_PACKET socket, that also binds to a specific interface: 1209 Uwe Koppe (CAN netdevices with PF_PACKET approach)
|
/linux-4.1.27/drivers/staging/lustre/lustre/libcfs/linux/ |
D | linux-tcpip.c | 538 rc = sock_create_lite(PF_PACKET, sock->type, IPPROTO_TCP, &newsock); in libcfs_sock_accept()
|
/linux-4.1.27/net/core/ |
D | rtnetlink.c | 2368 if (idx < s_idx || idx == PF_PACKET) in rtnl_dump_all()
|
/linux-4.1.27/net/ |
D | socket.c | 1124 family = PF_PACKET; in __sock_create()
|
/linux-4.1.27/security/selinux/ |
D | hooks.c | 1213 case PF_PACKET: in socket_type_to_security_class()
|