Lines Matching defs:dst_sa
1497 struct sockaddr_in *dst_sa, *mask_sa;
1502 dst_sa = (struct sockaddr_in *)info->rti_info[RTAX_DST];
1506 if (SA_SIZE(dst_sa) < offsetof(struct sockaddr_in, sin_zero)) {
1508 dst_sa->sin_len);
1531 dst.s_addr = htonl(ntohl(dst_sa->sin_addr.s_addr) & ntohl(mask.s_addr));
1534 if ((dst_sa = (struct sockaddr_in *)alloc_sockaddr_aligned(lb, sa_len)) == NULL)
1536 fill_sockaddr_inet(dst_sa, dst);
1537 info->rti_info[RTAX_DST] = (struct sockaddr *)dst_sa;
1561 struct sockaddr_in6 *dst_sa, *mask_sa;
1566 dst_sa = (struct sockaddr_in6 *)info->rti_info[RTAX_DST];
1569 if (dst_sa->sin6_len < sizeof(struct sockaddr_in6)) {
1571 dst_sa->sin6_len);
1594 dst = &dst_sa->sin6_addr;