Home
last modified time | relevance | path

Searched refs:addr_ll (Results 1 – 2 of 2) sorted by relevance

/Zephyr-latest/drivers/net/
Dnsos_adapt.c336 struct sockaddr_ll *addr_ll = (struct sockaddr_ll *)*addr; in sockaddr_from_nsos_mid() local
338 addr_ll->sll_family = NSOS_MID_AF_PACKET; in sockaddr_from_nsos_mid()
339 addr_ll->sll_protocol = addr_ll_mid->sll_protocol; in sockaddr_from_nsos_mid()
340 addr_ll->sll_ifindex = addr_ll_mid->sll_ifindex; in sockaddr_from_nsos_mid()
341 addr_ll->sll_hatype = addr_ll_mid->sll_hatype; in sockaddr_from_nsos_mid()
342 addr_ll->sll_pkttype = addr_ll_mid->sll_pkttype; in sockaddr_from_nsos_mid()
343 addr_ll->sll_halen = addr_ll_mid->sll_halen; in sockaddr_from_nsos_mid()
344 memcpy(addr_ll->sll_addr, addr_ll_mid->sll_addr, in sockaddr_from_nsos_mid()
345 sizeof(addr_ll->sll_addr)); in sockaddr_from_nsos_mid()
347 *addrlen = sizeof(*addr_ll); in sockaddr_from_nsos_mid()
[all …]
Dnsos_sockets.c487 const struct sockaddr_ll *addr_ll = in sockaddr_to_nsos_mid() local
492 if (addrlen < sizeof(*addr_ll)) { in sockaddr_to_nsos_mid()
497 addr_ll_mid->sll_protocol = addr_ll->sll_protocol; in sockaddr_to_nsos_mid()
498 addr_ll_mid->sll_ifindex = addr_ll->sll_ifindex; in sockaddr_to_nsos_mid()
499 addr_ll_mid->sll_hatype = addr_ll->sll_hatype; in sockaddr_to_nsos_mid()
500 addr_ll_mid->sll_pkttype = addr_ll->sll_pkttype; in sockaddr_to_nsos_mid()
501 addr_ll_mid->sll_halen = addr_ll->sll_halen; in sockaddr_to_nsos_mid()
502 memcpy(addr_ll_mid->sll_addr, addr_ll->sll_addr, in sockaddr_to_nsos_mid()
503 sizeof(addr_ll->sll_addr)); in sockaddr_to_nsos_mid()