Home
last modified time | relevance | path

Searched refs:sdl_data (Results 1 – 25 of 29) sorted by relevance

12

/netbsd/lib/libc/net/
H A Dlinkaddr.c62 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 Dgetifaddrs.c201 memcpy(names, dl->sdl_data, in __weak_alias()
H A Dsctp_sys_calls.c87 strncpy(tbuf, dl->sdl_data, dl->sdl_nlen); in SCTPPrintAnAddress()
/netbsd/sys/net/
H A Dif_dl.h90 #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 Dlink_proto.c460 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 Dnfs_diskless.c388 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 Dparse.c232 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 Duuid.c110 (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 Dt_sockaddr_snprintf.c167 memcpy(sdl.sdl_data, "\01\02\03\04\05\06", 6); in ATF_TC_BODY()
/netbsd/usr.bin/netstat/
H A Dif.c250 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 Dether_bpf.c147 sdl_data[0]) + strlen(BPF_IFNAME) + 6; in EtherInit()
/netbsd/external/bsd/dhcpcd/dist/src/
H A Dif.h109 # define CLLADDR(sdl) (const void *)((sdl)->sdl_data + (sdl)->sdl_nlen)
H A Dsa.c375 #define CLLADDR(sdl) (const void *)((sdl)->sdl_data + (sdl)->sdl_nlen) in sa_addrtop()
H A Dif-bsd.c588 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 Drwhod.c524 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 Dmain.c84 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 Difiter_sysctl.c181 memcpy(iter->current.name, sdl->sdl_data, namelen); in internal_current()
/netbsd/external/apache2/mDNSResponder/dist/mDNSPosix/
H A DmDNSBSD.c257 strncpy(pktp->ipi_ifname, sdl->sdl_data, nameLen); in recvfrom_flags()
H A DmDNSUNP.c651 strncpy(pktp->ipi_ifname, sdl->sdl_data, nameLen); in recvfrom_flags()
/netbsd/external/bsd/blocklist/port/
H A Dsockaddr_snprintf.c150 const uint8_t *s = (const void *)sdl->sdl_data; in debug_dl()
/netbsd/lib/libutil/
H A Dsockaddr_snprintf.c124 const uint8_t *s = (const void *)sdl->sdl_data; in debug_dl()
/netbsd/external/bsd/wpa/dist/src/l2_packet/
H A Dl2_packet_freebsd.c211 os_memcmp(sdl->sdl_data, device, sdl->sdl_nlen) != 0) in eth_get()
/netbsd/usr.sbin/isibootd/
H A Disibootd.c419 #define CLLADDR(s) ((const char *)((s)->sdl_data + (s)->sdl_nlen)) in pickif()
/netbsd/sbin/route/
H A Drtutil.c746 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 Dwps_upnp.c871 os_memcmp(sdl->sdl_data, device, sdl->sdl_nlen) != 0) in eth_get()

12