Lines Matching defs:sock
904 struct sockaddr_dl *sock;
1043 sock = (struct sockaddr_dl *)&lifreq.lifr_addr;
1045 if (mac_addr_len(mh) > sizeof (sock->sdl_data)) {
1056 sock->sdl_family = AF_LINK;
1057 sock->sdl_index = 0;
1058 sock->sdl_type = mac_type(mh);
1059 sock->sdl_nlen = 0;
1060 sock->sdl_alen = mac_addr_len(mh);
1061 sock->sdl_slen = 0;
1063 (void) memset(sock->sdl_data, 0,
1064 sizeof (sock->sdl_data));
1066 mac_unicast_primary_get(mh, (uint8_t *)sock->sdl_data);