Searched refs:laddr (Results 1 – 6 of 6) sorted by relevance
/tools/testing/selftests/net/ |
D | psock_snd.c | 172 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 …]
|
D | txring_overwrite.c | 88 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()
|
D | msg_zerocopy.c | 484 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()
|
D | nettest.c | 1010 struct sockaddr_in laddr = { in msock_init() local 1042 laddr.sin_addr.s_addr = if_addr; in msock_init() 1044 if (bind(sd, (struct sockaddr *) &laddr, sizeof(laddr)) < 0) { in msock_init()
|
/tools/testing/selftests/networking/timestamping/ |
D | txtimestamp.c | 388 struct sockaddr_ll laddr; in do_test() local 488 memset(&laddr, 0, sizeof(laddr)); in do_test() 490 laddr.sll_family = AF_PACKET; in do_test() 491 laddr.sll_ifindex = 1; in do_test() 492 laddr.sll_protocol = htons(family == AF_INET ? ETH_P_IP : ETH_P_IPV6); in do_test() 493 laddr.sll_halen = ETH_ALEN; in do_test() 495 msg.msg_name = (void *)&laddr; in do_test() 496 msg.msg_namelen = sizeof(laddr); in do_test()
|
/tools/perf/util/ |
D | dwarf-aux.c | 75 Dwarf_Addr laddr; in cu_find_lineinfo() local 78 if (line && dwarf_lineaddr(line, &laddr) == 0 && in cu_find_lineinfo() 79 addr == (unsigned long)laddr && dwarf_lineno(line, lineno) == 0) { in cu_find_lineinfo()
|