Lines Matching refs:sdl
385 register struct sockaddr_dl *sdl;
432 sdl = (struct sockaddr_dl *)(ROUNDUP(sin->sin6_len) + (char *)sin);
434 if (sdl->sdl_family == AF_LINK &&
436 switch (sdl->sdl_type) {
451 if (sdl->sdl_family != AF_LINK) {
455 sdl_m.sdl_type = sdl->sdl_type;
456 sdl_m.sdl_index = sdl->sdl_index;
507 struct sockaddr_dl *sdl;
534 sdl = (struct sockaddr_dl *)(ROUNDUP(sin->sin6_len) + (char *)sin);
536 if (sdl->sdl_family == AF_LINK &&
548 if (sdl->sdl_family != AF_LINK) {
594 struct sockaddr_dl *sdl;
637 sdl = (struct sockaddr_dl *)((char *)sin + ROUNDUP(sin->sin6_len));
652 if (sdl->sdl_family != AF_LINK)
668 sin->sin6_scope_id = sdl->sdl_index;
695 llwidth = strlen(ether_str(sdl));
698 ifname = if_indextoname(sdl->sdl_index, ifix_buf);
706 llwidth, llwidth, ether_str(sdl), ifwidth, ifwidth, ifname);
709 nbi = getnbrinfo(&sin->sin6_addr, sdl->sdl_index, 1);
764 (sdl->sdl_len + (char *)sdl);
822 ether_str(struct sockaddr_dl *sdl)
827 if (sdl->sdl_alen == ETHER_ADDR_LEN) {
828 strlcpy(hbuf, ether_ntoa((struct ether_addr *)LLADDR(sdl)),
830 } else if (sdl->sdl_alen) {
831 int n = sdl->sdl_nlen > 0 ? sdl->sdl_nlen + 1 : 0;
832 snprintf(hbuf, sizeof(hbuf), "%s", link_ntoa(sdl) + n);