/netbsd/lib/libc/net/ |
H A D | linkaddr.c | 62 char *cp = sdl->sdl_data; in link_addr() 96 _DIAGASSERT(__type_fit(uint8_t, cp - sdl->sdl_data)); in link_addr() 97 sdl->sdl_nlen = (uint8_t)(cp - sdl->sdl_data); in link_addr() 176 (void)memcpy(obuf, sdl->sdl_data, i); in link_ntoa()
|
H A D | getifaddrs.c | 201 memcpy(names, dl->sdl_data, in __weak_alias()
|
H A D | sctp_sys_calls.c | 87 strncpy(tbuf, dl->sdl_data, dl->sdl_nlen); in SCTPPrintAnAddress()
|
/netbsd/sys/net/ |
H A D | if_dl.h | 90 #define sdl_data sdl_addr.dl_data macro 97 #define LLADDR(s) ((char *)((s)->sdl_data + (s)->sdl_nlen)) 98 #define CLLADDR(s) ((const char *)((s)->sdl_data + (s)->sdl_nlen))
|
H A D | link_proto.c | 460 return offsetof(struct sockaddr_dl, sdl_data[namelen + addrlen]); in sockaddr_dl_measure() 507 memset(&sdl->sdl_data[0], 0, namelen + addrlen); in sockaddr_dl_init() 509 memcpy(&sdl->sdl_data[0], name, namelen); in sockaddr_dl_init() 514 memcpy(&sdl->sdl_data[sdl->sdl_nlen], addr, addrlen); in sockaddr_dl_init() 527 uint_fast8_t dataofs = offsetof(struct sockaddr_dl, sdl_data[0]); in sockaddr_dl_cmp() 584 memcpy(&sdl->sdl_data[sdl->sdl_nlen], addr, addrlen); in sockaddr_dl_setaddr()
|
/netbsd/sys/fs/nfs/common/ |
H A D | nfs_diskless.c | 388 sa->sdl_data[0] = a[0]; in hwaddr_to_sockaddr() 389 sa->sdl_data[1] = a[1]; in hwaddr_to_sockaddr() 390 sa->sdl_data[2] = a[2]; in hwaddr_to_sockaddr() 391 sa->sdl_data[3] = a[3]; in hwaddr_to_sockaddr() 392 sa->sdl_data[4] = a[4]; in hwaddr_to_sockaddr() 393 sa->sdl_data[5] = a[5]; in hwaddr_to_sockaddr()
|
/netbsd/sbin/ifconfig/ |
H A D | parse.c | 232 sizeof(*ss) - offsetof(struct sockaddr_dl, sdl_data[0]); in parse_linkaddr() 257 sdl->sdl_data[i++] = octet; in parse_linkaddr() 258 sdl->sdl_len = offsetof(struct sockaddr_dl, sdl_data) in parse_linkaddr() 259 + i * sizeof(sdl->sdl_data[0]); in parse_linkaddr() 269 sdl->sdl_data[i++] = octet; in parse_linkaddr()
|
/netbsd/external/bsd/openldap/dist/libraries/liblutil/ |
H A D | uuid.c | 110 (unsigned char *)sdl->sdl_data + sdl->sdl_nlen, in lutil_eaddr() 167 (unsigned char *)sdl->sdl_data + sdl->sdl_nlen, in lutil_eaddr()
|
/netbsd/tests/lib/libutil/ |
H A D | t_sockaddr_snprintf.c | 167 memcpy(sdl.sdl_data, "\01\02\03\04\05\06", 6); in ATF_TC_BODY()
|
/netbsd/usr.bin/netstat/ |
H A D | if.c | 250 memcpy(name, sdl->sdl_data, IFNAMSIZ - 1); in intpr_sysctl() 252 memcpy(name, sdl->sdl_data, sdl->sdl_nlen); in intpr_sysctl() 1168 memcpy(name, sdl->sdl_data, IFNAMSIZ - 1); in fetchifs() 1170 memcpy(name, sdl->sdl_data, sdl->sdl_nlen); in fetchifs()
|
/netbsd/sys/arch/i386/stand/lib/test/ |
H A D | ether_bpf.c | 147 sdl_data[0]) + strlen(BPF_IFNAME) + 6; in EtherInit()
|
/netbsd/external/bsd/dhcpcd/dist/src/ |
H A D | if.h | 109 # define CLLADDR(sdl) (const void *)((sdl)->sdl_data + (sdl)->sdl_nlen)
|
H A D | sa.c | 375 #define CLLADDR(sdl) (const void *)((sdl)->sdl_data + (sdl)->sdl_nlen) in sa_addrtop()
|
H A D | if-bsd.c | 588 memcpy(ifname, sdl->sdl_data, sdl->sdl_nlen); in if_findsdl() 598 sdl->sdl_data, sdl->sdl_alen) == 0) in if_findsdl()
|
/netbsd/usr.sbin/rwhod/ |
H A D | rwhod.c | 524 if (memcmp(sdl->sdl_data, np->n_name, in configure() 542 (void)memcpy(np->n_name, sdl->sdl_data, sdl->sdl_nlen); in configure()
|
/netbsd/usr.bin/rump_dhcpclient/ |
H A D | main.c | 84 memcpy(ifp->hwaddr, sdl->sdl_data+strlen(ifp->name), ETHER_ADDR_LEN); in get_hwaddr()
|
/netbsd/external/bsd/ntp/dist/lib/isc/unix/ |
H A D | ifiter_sysctl.c | 181 memcpy(iter->current.name, sdl->sdl_data, namelen); in internal_current()
|
/netbsd/external/apache2/mDNSResponder/dist/mDNSPosix/ |
H A D | mDNSBSD.c | 257 strncpy(pktp->ipi_ifname, sdl->sdl_data, nameLen); in recvfrom_flags()
|
H A D | mDNSUNP.c | 651 strncpy(pktp->ipi_ifname, sdl->sdl_data, nameLen); in recvfrom_flags()
|
/netbsd/external/bsd/blocklist/port/ |
H A D | sockaddr_snprintf.c | 150 const uint8_t *s = (const void *)sdl->sdl_data; in debug_dl()
|
/netbsd/lib/libutil/ |
H A D | sockaddr_snprintf.c | 124 const uint8_t *s = (const void *)sdl->sdl_data; in debug_dl()
|
/netbsd/external/bsd/wpa/dist/src/l2_packet/ |
H A D | l2_packet_freebsd.c | 211 os_memcmp(sdl->sdl_data, device, sdl->sdl_nlen) != 0) in eth_get()
|
/netbsd/usr.sbin/isibootd/ |
H A D | isibootd.c | 419 #define CLLADDR(s) ((const char *)((s)->sdl_data + (s)->sdl_nlen)) in pickif()
|
/netbsd/sbin/route/ |
H A D | rtutil.c | 746 const u_char *lla = (const u_char *)sdl->sdl_data + sdl->sdl_nlen; in link_print()
|
/netbsd/external/bsd/wpa/dist/src/wps/ |
H A D | wps_upnp.c | 871 os_memcmp(sdl->sdl_data, device, sdl->sdl_nlen) != 0) in eth_get()
|