Home
last modified time | relevance | path

Searched refs:laddr (Results 1 – 7 of 7) sorted by relevance

/tools/testing/selftests/net/
Dfin_ack_lat.c31 struct sockaddr_in addr, laddr; in client() local
32 socklen_t len = sizeof(laddr); in client()
75 if (getsockname(sock, (struct sockaddr *)&laddr, &len) == -1) in client()
78 ntohs(laddr.sin_port), lat, in client()
115 struct sockaddr_in laddr; in main() local
116 socklen_t len = sizeof(laddr); in main()
140 if (getsockname(sock, (struct sockaddr *)&laddr, &len) == -1) in main()
143 fprintf(stderr, "server port: %d\n", ntohs(laddr.sin_port)); in main()
146 client(ntohs(laddr.sin_port)); in main()
148 server(sock, laddr); in main()
Dpsock_snd.c172 struct sockaddr_ll laddr = {0}; in do_bind() local
174 laddr.sll_family = AF_PACKET; in do_bind()
175 laddr.sll_protocol = htons(ETH_P_IP); in do_bind()
176 laddr.sll_ifindex = if_nametoindex(cfg_ifname); in do_bind()
177 if (!laddr.sll_ifindex) in do_bind()
180 if (bind(fd, (void *)&laddr, sizeof(laddr))) in do_bind()
200 struct sockaddr_ll laddr = {0}; in do_send() local
202 laddr.sll_protocol = htons(ETH_P_IP); in do_send()
203 laddr.sll_ifindex = if_nametoindex(cfg_ifname); in do_send()
204 if (!laddr.sll_ifindex) in do_send()
[all …]
Dtxring_overwrite.c88 struct sockaddr_ll laddr = {}; in setup_tx() local
96 laddr.sll_family = AF_PACKET; in setup_tx()
97 laddr.sll_protocol = htons(0); in setup_tx()
98 laddr.sll_ifindex = if_nametoindex("lo"); in setup_tx()
99 if (!laddr.sll_ifindex) in setup_tx()
102 if (bind(fdt, (void *)&laddr, sizeof(laddr))) in setup_tx()
Dmsg_zerocopy.c484 struct sockaddr_ll laddr; in do_tx() local
510 memset(&laddr, 0, sizeof(laddr)); in do_tx()
511 laddr.sll_family = AF_PACKET; in do_tx()
512 laddr.sll_ifindex = cfg_ifindex; in do_tx()
513 laddr.sll_protocol = htons(proto); in do_tx()
514 laddr.sll_halen = ETH_ALEN; in do_tx()
516 memset(laddr.sll_addr, 0x06, ETH_ALEN); in do_tx()
518 msg.msg_name = &laddr; in do_tx()
519 msg.msg_namelen = sizeof(laddr); in do_tx()
Dtxtimestamp.c483 struct sockaddr_ll laddr; in do_test() local
601 memset(&laddr, 0, sizeof(laddr)); in do_test()
603 laddr.sll_family = AF_PACKET; in do_test()
604 laddr.sll_ifindex = 1; in do_test()
605 laddr.sll_protocol = htons(family == AF_INET ? ETH_P_IP : ETH_P_IPV6); in do_test()
606 laddr.sll_halen = ETH_ALEN; in do_test()
608 msg.msg_name = (void *)&laddr; in do_test()
609 msg.msg_namelen = sizeof(laddr); in do_test()
Dnettest.c1030 struct sockaddr_in laddr = { in msock_init() local
1062 laddr.sin_addr.s_addr = if_addr; in msock_init()
1064 if (bind(sd, (struct sockaddr *) &laddr, sizeof(laddr)) < 0) { in msock_init()
/tools/perf/util/
Ddwarf-aux.c65 Dwarf_Addr laddr; in cu_getsrc_die() local
80 if (!line || dwarf_lineaddr(line, &laddr) != 0) in cu_getsrc_die()
82 if (addr < laddr) in cu_getsrc_die()
90 if (!line || dwarf_lineaddr(line, &laddr) != 0) in cu_getsrc_die()
92 } while (laddr == addr); in cu_getsrc_die()
97 if (!line || dwarf_lineaddr(line, &laddr) != 0 || in cu_getsrc_die()
100 if (laddr > addr) in cu_getsrc_die()