Home
last modified time | relevance | path

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

12

/external/iputils/
Darping.c109 socklen_t len = OFFSET_OF(struct sockaddr_ll, sll_addr) + halen; in sll_len()
110 if (len < sizeof(struct sockaddr_ll)) in sll_len()
111 len = sizeof(struct sockaddr_ll); in sll_len()
271 struct sockaddr_ll *ME, struct sockaddr_ll *HE) in send_pack()
359 (struct sockaddr_ll *)&me, (struct sockaddr_ll *)&he); in catcher()
376 int recv_pack(unsigned char *buf, int len, struct sockaddr_ll *FROM) in recv_pack()
406 if (ah->ar_hln != ((struct sockaddr_ll *)&me)->sll_halen) in recv_pack()
417 if (memcmp(p+ah->ar_hln+4, ((struct sockaddr_ll *)&me)->sll_addr, ah->ar_hln)) in recv_pack()
435 if (memcmp(p, ((struct sockaddr_ll *)&me)->sll_addr, ((struct sockaddr_ll *)&me)->sll_halen) == 0) in recv_pack()
451 if (memcmp(p+ah->ar_hln+4, ((struct sockaddr_ll *)&me)->sll_addr, ah->ar_hln)) { in recv_pack()
[all …]
Drarpd.c419 struct sockaddr_ll sll; in serve_it()
635 struct sockaddr_ll sll; in main()
647 struct sockaddr_ll sll; in main()
/external/kernel-headers/original/uapi/linux/
Dif_packet.h13 struct sockaddr_ll { struct
142 #define TPACKET_HDRLEN (TPACKET_ALIGN(sizeof(struct tpacket_hdr)) + sizeof(struct sockaddr_ll))
247 #define TPACKET2_HDRLEN (TPACKET_ALIGN(sizeof(struct tpacket2_hdr)) + sizeof(struct sockaddr_ll))
248 #define TPACKET3_HDRLEN (TPACKET_ALIGN(sizeof(struct tpacket3_hdr)) + sizeof(struct sockaddr_ll))
/external/iproute2/include/uapi/linux/
Dif_packet.h13 struct sockaddr_ll { struct
142 #define TPACKET_HDRLEN (TPACKET_ALIGN(sizeof(struct tpacket_hdr)) + sizeof(struct sockaddr_ll))
247 #define TPACKET2_HDRLEN (TPACKET_ALIGN(sizeof(struct tpacket2_hdr)) + sizeof(struct sockaddr_ll))
248 #define TPACKET3_HDRLEN (TPACKET_ALIGN(sizeof(struct tpacket3_hdr)) + sizeof(struct sockaddr_ll))
/external/dhcpcd-6.8.2/
Difaddrs.c42 struct sockaddr_ll *hwaddr = NULL; in get_interface()
82 hwaddr = malloc(sizeof(struct sockaddr_ll)); in get_interface()
84 memset(hwaddr, 0, sizeof(struct sockaddr_ll)); in get_interface()
Dif.c292 const struct sockaddr_ll *sll; in if_discover()
489 sll = (const struct sockaddr_ll *)(void *)ifa->ifa_addr; in if_discover()
/external/ltp/testcases/network/stress/ns-tools/
Dns-icmpv6_sender.c61 struct sockaddr_ll saddr_ll;
62 struct sockaddr_ll daddr_ll;
174 void specify_hw_addr(struct sockaddr_ll *lladdr_p, const char *ifname) in specify_hw_addr()
211 void calc_hd_mcastaddr(struct sockaddr_ll *lladdr_p, struct in6_addr *addr_p) in calc_hd_mcastaddr()
432 struct sockaddr_ll opt_addr_ll; /* option value in struct sockaddr_ll */ in parse_options()
728 sizeof(struct sockaddr_ll)); in send_packets()
754 sizeof(struct sockaddr_ll)); in send_packets()
Dns-icmpv4_sender.c61 struct sockaddr_ll saddr_ll;
62 struct sockaddr_ll daddr_ll;
171 struct sockaddr_ll opt_addr_ll; /* option value in struct sockaddr_ll */ in parse_options()
558 sizeof(struct sockaddr_ll)); in send_packets()
584 sizeof(struct sockaddr_ll)); in send_packets()
Dns-icmp_redirector.c226 struct sockaddr_ll lla; /* Link-local address info for receiving */ in open_socket()
240 memset(&lla, '\0', sizeof(struct sockaddr_ll)); in open_socket()
244 if (bind(sd, (struct sockaddr *)&lla, sizeof(struct sockaddr_ll)) < 0) in open_socket()
Dns-traffic.h231 int eth_pton(int af, const char *str, struct sockaddr_ll *ll);
Dns-common.c258 int eth_pton(int af, const char *str, struct sockaddr_ll *ll) in eth_pton()
/external/wpa_supplicant_8/src/l2_packet/
Dl2_packet_linux.c110 struct sockaddr_ll ll; in l2_packet_send()
133 struct sockaddr_ll ll; in l2_packet_receive()
201 struct sockaddr_ll ll; in l2_packet_receive_br()
256 struct sockaddr_ll ll; in l2_packet_init()
338 struct sockaddr_ll ll; in l2_packet_init_bridge()
/external/linux-kselftest/tools/testing/selftests/net/
Dpsock_tpacket.c85 struct sockaddr_ll ll;
103 struct sockaddr_ll s_ll __align_tpacket(sizeof(struct tpacket_hdr));
107 struct sockaddr_ll s_ll __align_tpacket(sizeof(struct tpacket2_hdr));
393 struct sockaddr_ll ll = { in walk_tx()
447 sizeof(struct sockaddr_ll), packet, in walk_tx()
457 sizeof(struct sockaddr_ll), packet, in walk_tx()
469 sizeof(struct sockaddr_ll), packet, in walk_tx()
/external/strace/tests-m32/
Dnet-sockaddr.c319 struct sockaddr_ll c_ll = { in check_ll()
344 ((struct sockaddr_ll *) ll)->sll_halen++; in check_ll()
359 ((struct sockaddr_ll *) ll)->sll_halen = 0; in check_ll()
367 ((struct sockaddr_ll *) ll)->sll_ifindex = ifindex_lo(); in check_ll()
368 if (((struct sockaddr_ll *) ll)->sll_ifindex) { in check_ll()
/external/strace/tests/
Dnet-sockaddr.c319 struct sockaddr_ll c_ll = { in check_ll()
344 ((struct sockaddr_ll *) ll)->sll_halen++; in check_ll()
359 ((struct sockaddr_ll *) ll)->sll_halen = 0; in check_ll()
367 ((struct sockaddr_ll *) ll)->sll_ifindex = ifindex_lo(); in check_ll()
368 if (((struct sockaddr_ll *) ll)->sll_ifindex) { in check_ll()
/external/strace/tests-mx32/
Dnet-sockaddr.c319 struct sockaddr_ll c_ll = { in check_ll()
344 ((struct sockaddr_ll *) ll)->sll_halen++; in check_ll()
359 ((struct sockaddr_ll *) ll)->sll_halen = 0; in check_ll()
367 ((struct sockaddr_ll *) ll)->sll_ifindex = ifindex_lo(); in check_ll()
368 if (((struct sockaddr_ll *) ll)->sll_ifindex) { in check_ll()
/external/strace/
Dsockaddr.c223 const struct sockaddr_ll *const sa_ll = buf; in print_sockaddr_data_ll()
235 addrlen - offsetof(struct sockaddr_ll, sll_addr); in print_sockaddr_data_ll()
323 [AF_PACKET] = { print_sockaddr_data_ll, sizeof(struct sockaddr_ll) },
/external/toybox/toys/pending/
Darping.c47 struct sockaddr_ll src_pk, dst_pk;
131 static void recv_from(struct sockaddr_ll *from, int *recv_len) in recv_from()
204 struct sockaddr_ll from; in arping_main()
/external/python/cpython2/Modules/
Dsocketmodule.h116 struct sockaddr_ll ll;
/external/python/cpython3/Modules/
Dsocketmodule.h154 struct sockaddr_ll ll;
/external/libpcap/
Dfad-getad.c126 return (sizeof (struct sockaddr_ll)); in get_sa_len()
/external/iproute2/misc/
Darpd.c190 struct sockaddr_ll sll = { in send_probe()
481 struct sockaddr_ll sll; in get_arp_pkt()
766 struct sockaddr_ll sll = { in main()
/external/ppp/pppd/plugins/rp-pppoe/
Dif.c104 struct sockaddr_ll sa; in openInterface()
/external/wpa_supplicant_8/src/drivers/
Ddriver_wired.c172 struct sockaddr_ll addr; in wired_init_sockets()
Ddriver_nl80211_monitor.c344 struct sockaddr_ll ll; in nl80211_create_monitor_interface()

12