Home
last modified time | relevance | path

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

/linux/include/uapi/linux/
H A Dif_packet.h14 struct sockaddr_ll { struct
147 #define TPACKET_HDRLEN (TPACKET_ALIGN(sizeof(struct tpacket_hdr)) + sizeof(struct sockaddr_ll))
252 #define TPACKET2_HDRLEN (TPACKET_ALIGN(sizeof(struct tpacket2_hdr)) + sizeof(struct sockaddr_ll))
253 #define TPACKET3_HDRLEN (TPACKET_ALIGN(sizeof(struct tpacket3_hdr)) + sizeof(struct sockaddr_ll))
/linux/tools/testing/selftests/net/
H A Dgro.c300 static void write_packet(int fd, char *buf, int len, struct sockaddr_ll *daddr) in write_packet()
323 static void send_flags(int fd, struct sockaddr_ll *daddr, int psh, int syn, in send_flags()
358 static void send_data_pkts(int fd, struct sockaddr_ll *daddr, in send_data_pkts()
372 static void send_large(int fd, struct sockaddr_ll *daddr, int remainder) in send_large()
391 static void send_ack(int fd, struct sockaddr_ll *daddr) in send_ack()
495 static void send_changed_checksum(int fd, struct sockaddr_ll *daddr) in send_changed_checksum()
510 static void send_changed_seq(int fd, struct sockaddr_ll *daddr) in send_changed_seq()
529 static void send_changed_ts(int fd, struct sockaddr_ll *daddr) in send_changed_ts()
557 static void send_diff_opt(int fd, struct sockaddr_ll *daddr) in send_diff_opt()
630 static void send_flush_id_case(int fd, struct sockaddr_ll *daddr, int tcase) in send_flush_id_case()
[all …]
H A Dpsock_tpacket.c70 struct sockaddr_ll ll;
88 struct sockaddr_ll s_ll __align_tpacket(sizeof(struct tpacket_hdr));
92 struct sockaddr_ll s_ll __align_tpacket(sizeof(struct tpacket2_hdr));
377 struct sockaddr_ll ll = { in walk_tx()
431 sizeof(struct sockaddr_ll), packet, in walk_tx()
441 sizeof(struct sockaddr_ll), packet, in walk_tx()
453 sizeof(struct sockaddr_ll), packet, in walk_tx()
H A Dtxring_overwrite.c38 const int eth_off = TPACKET_HDRLEN - sizeof(struct sockaddr_ll);
88 struct sockaddr_ll laddr = {}; in setup_tx()
H A Dpsock_snd.c172 struct sockaddr_ll laddr = {0}; in do_bind()
200 struct sockaddr_ll laddr = {0}; in do_send()
H A Dpsock_fanout.c66 struct sockaddr_ll addr = {0}; in sock_fanout_open()
H A Dtoeplitz.c343 struct sockaddr_ll ll = { 0 }; in create_ring()
H A Dmsg_zerocopy.c488 struct sockaddr_ll laddr; in do_tx()
H A Dtxtimestamp.c488 struct sockaddr_ll laddr; in do_test()
/linux/net/packet/
H A Daf_packet.c225 struct sockaddr_ll ll;
2186 struct sockaddr_ll *sll; in packet_rcv()
2300 struct sockaddr_ll *sll; in tpacket_rcv()
2746 off_min = po->tp_hdrlen - sizeof(struct sockaddr_ll); in tpacket_parse_header()
2776 off = po->tp_hdrlen - sizeof(struct sockaddr_ll); in tpacket_parse_header()
2792 DECLARE_SOCKADDR(struct sockaddr_ll *, saddr, msg->msg_name); in tpacket_snd()
2817 if (msg->msg_namelen < sizeof(struct sockaddr_ll)) in tpacket_snd()
2820 + offsetof(struct sockaddr_ll, in tpacket_snd()
2827 offsetof(struct sockaddr_ll, sll_addr)) in tpacket_snd()
2850 - (po->tp_hdrlen - sizeof(struct sockaddr_ll)); in tpacket_snd()
[all …]
/linux/samples/bpf/
H A Dsock_example.h15 struct sockaddr_ll sll; in open_raw_sock()
/linux/tools/testing/selftests/bpf/progs/
H A Dlsm_cgroup.c105 struct sockaddr_ll sa = {}; in real_bind()
/linux/Documentation/networking/
H A Dpacket_mmap.rst148 sll_ifindex parameter of struct sockaddr_ll.
152 struct sockaddr_ll my_addr;
161 /* fill sockaddr_ll struct to prepare binding */
167 bind(this->socket, (struct sockaddr *)&my_addr, sizeof(struct sockaddr_ll));
174 frame base + TPACKET_HDRLEN - sizeof(struct sockaddr_ll)
385 - struct sockaddr_ll
576 4. For getting the sockaddr_ll,
647 struct sockaddr_ll ll;
829 struct sockaddr_ll ll;
/linux/tools/virtio/
H A Dvhost_net_test.c123 struct sockaddr_ll saddrll = {0}; in vdev_send_packet()
134 sizeof(struct sockaddr_ll)); in vdev_send_packet()
/linux/tools/testing/selftests/bpf/prog_tests/
H A Dlwt_redirect.c109 struct sockaddr_ll addr = { in new_packet_sock()
H A Dlsm_cgroup.c209 struct sockaddr_ll sa = { in test_lsm_cgroup_functional()
H A Dxdp_bonding.c241 struct sockaddr_ll saddr_ll = { in send_udp_packets()
/linux/tools/testing/selftests/net/lib/
H A Dcsum.c409 struct sockaddr_ll addr = {0}; in send_packet()
529 struct sockaddr_ll laddr = {0}; in recv_prepare_packet_bind()