Lines Matching defs:sdl
468 struct sockaddr_dl *sdl;
477 sdl = (struct sockaddr_dl *)(ALIGN(sin->sin6_len) + (char *)sin);
479 if (sdl->sdl_family == AF_LINK &&
481 if (valid_type(sdl->sdl_type))
489 if (sdl->sdl_family != AF_LINK) {
493 sdl_m.sdl_type = sdl->sdl_type;
494 sdl_m.sdl_index = sdl->sdl_index;
550 struct sockaddr_dl *sdl;
567 sdl = (struct sockaddr_dl *)(ALIGN(sin->sin6_len) + (char *)sin);
569 if (sdl->sdl_family == AF_LINK &&
578 if (sdl->sdl_family != AF_LINK) {
595 char *ifname = if_indextoname(sdl->sdl_index, ifix_buf);
622 struct sockaddr_dl *sdl;
674 sdl = (struct sockaddr_dl *)((char *)sin +
690 if (sdl->sdl_family != AF_LINK)
708 sin->sin6_scope_id = sdl->sdl_index;
733 llwidth = strlen(ether_str(sdl));
736 ifname = if_indextoname(sdl->sdl_index, ifix_buf);
751 xo_emit(xobuf, host_buf, ether_str(sdl), ifname);
807 (sdl->sdl_len + (char *)sdl);
888 ether_str(struct sockaddr_dl *sdl)
892 if (sdl->sdl_alen == ETHER_ADDR_LEN) {
893 strlcpy(hbuf, ether_ntoa((struct ether_addr *)LLADDR(sdl)),
895 } else if (sdl->sdl_alen) {
896 int n = sdl->sdl_nlen > 0 ? sdl->sdl_nlen + 1 : 0;
897 snprintf(hbuf, sizeof(hbuf), "%s", link_ntoa(sdl) + n);