Lines Matching refs:sdl
469 struct sockaddr_dl *sdl;
478 sdl = (struct sockaddr_dl *)(ALIGN(sin->sin6_len) + (char *)sin);
480 if (sdl->sdl_family == AF_LINK &&
482 if (valid_type(sdl->sdl_type))
490 if (sdl->sdl_family != AF_LINK) {
494 sdl_m.sdl_type = sdl->sdl_type;
495 sdl_m.sdl_index = sdl->sdl_index;
551 struct sockaddr_dl *sdl;
568 sdl = (struct sockaddr_dl *)(ALIGN(sin->sin6_len) + (char *)sin);
570 if (sdl->sdl_family == AF_LINK &&
579 if (sdl->sdl_family != AF_LINK) {
596 char *ifname = if_indextoname(sdl->sdl_index, ifix_buf);
623 struct sockaddr_dl *sdl;
675 sdl = (struct sockaddr_dl *)((char *)sin +
691 if (sdl->sdl_family != AF_LINK)
709 sin->sin6_scope_id = sdl->sdl_index;
734 llwidth = strlen(ether_str(sdl));
737 ifname = if_indextoname(sdl->sdl_index, ifix_buf);
752 xo_emit(xobuf, host_buf, ether_str(sdl), ifname);
808 (sdl->sdl_len + (char *)sdl);
889 ether_str(struct sockaddr_dl *sdl)
893 if (sdl->sdl_alen == ETHER_ADDR_LEN) {
894 strlcpy(hbuf, ether_ntoa((struct ether_addr *)LLADDR(sdl)),
896 } else if (sdl->sdl_alen) {
897 int n = sdl->sdl_nlen > 0 ? sdl->sdl_nlen + 1 : 0;
898 snprintf(hbuf, sizeof(hbuf), "%s", link_ntoa(sdl) + n);