Home
last modified time | relevance | path

Searched refs:sll_protocol (Results 1 – 18 of 18) sorted by relevance

/linux-6.15/samples/bpf/
H A Dsock_example.h27 sll.sll_protocol = htons(ETH_P_ALL); in open_raw_sock()
/linux-6.15/tools/testing/selftests/net/lib/
H A Dcsum.c424 addr.sll_protocol = htons(ETH_P_IPV6); in send_packet()
427 addr.sll_protocol = htons(ETH_P_IP); in send_packet()
443 eth.h_proto = addr.sll_protocol; in send_packet()
534 laddr.sll_protocol = htons(ETH_P_IP); in recv_prepare_packet_bind()
536 laddr.sll_protocol = htons(ETH_P_IPV6); in recv_prepare_packet_bind()
/linux-6.15/tools/testing/selftests/net/
H A Dpsock_snd.c175 laddr.sll_protocol = htons(ETH_P_IP); in do_bind()
202 laddr.sll_protocol = htons(ETH_P_IP); in do_send()
H A Dtxring_overwrite.c97 laddr.sll_protocol = htons(0); in setup_tx()
H A Dpsock_fanout.c107 addr.sll_protocol = htons(ETH_P_IP); in sock_fanout_open()
H A Dtoeplitz.c362 ll.sll_protocol = cfg_family == AF_INET ? htons(ETH_P_IP) : in create_ring()
H A Dmsg_zerocopy.c517 laddr.sll_protocol = htons(proto); in do_tx()
H A Dpsock_tpacket.c733 ring->ll.sll_protocol = htons(ETH_P_ALL); in bind_ring()
H A Dtxtimestamp.c613 laddr.sll_protocol = htons(family == AF_INET ? ETH_P_IP : ETH_P_IPV6); in do_test()
H A Dgro.c888 daddr.sll_protocol = ethhdr_proto; in bind_packetsocket()
/linux-6.15/tools/testing/selftests/bpf/progs/
H A Dlsm_cgroup.c118 if (sa.sll_protocol) in real_bind()
/linux-6.15/include/uapi/linux/
H A Dif_packet.h16 __be16 sll_protocol; member
/linux-6.15/tools/testing/selftests/bpf/prog_tests/
H A Dlwt_redirect.c111 .sll_protocol = htons(ETH_P_IP), in new_packet_sock()
H A Dlsm_cgroup.c207 .sll_protocol = htons(ETH_P_ALL), in test_lsm_cgroup_functional()
/linux-6.15/tools/virtio/
H A Dvhost_net_test.c130 saddrll.sll_protocol = htons(TEST_PTYPE); in vdev_send_packet()
/linux-6.15/net/packet/
H A Daf_packet.c2511 sll->sll_protocol = (sk->sk_type == SOCK_DGRAM) ? in tpacket_rcv()
2810 proto = saddr->sll_protocol; in tpacket_snd()
3024 proto = saddr->sll_protocol; in packet_snd()
3372 return packet_do_bind(sk, NULL, sll->sll_ifindex, sll->sll_protocol); in packet_bind()
3536 sll->sll_protocol = (sock->type == SOCK_DGRAM) ? in packet_recvmsg()
3663 sll->sll_protocol = READ_ONCE(po->num); in packet_getname()
/linux-6.15/Documentation/networking/
H A Dpacket_mmap.rst130 In this case, you also need to bind(2) the TX_RING with sll_protocol = 0
163 my_addr.sll_protocol = htons(ETH_P_ALL);
876 ll.sll_protocol = htons(ETH_P_ALL);
/linux-6.15/arch/um/drivers/
H A Dvector_user.c184 sock.sll_protocol = htons(proto); in create_raw_fd()