Lines Matching refs:dst
120 #define dst info.rti_info[RTAX_DST]
330 dst = NULL;
335 dst = NULL;
340 dst = NULL;
360 dst = NULL;
367 dst = NULL;
370 if (dst == NULL || (dst->sa_family >= AF_MAX) ||
375 if (dst->sa_family == AF_INET && dst->sa_len != sizeof (dst_in)) {
377 if (dst->sa_len < offsetof(struct sockaddr_in, sin_zero))
382 dst_in.sin_port = SIN(dst)->sin_port;
383 dst_in.sin_addr = SIN(dst)->sin_addr;
384 dst = (struct sockaddr *)&dst_in;
414 if (dst->sa_family != AF_INET)
440 if (check_routeselfref && (dst && dst->sa_family == AF_INET) &&
442 (gate && satosinaddr(dst) == satosinaddr(gate))) {
453 error = rtrequest_scoped_locked(RTM_ADD, dst, gate,
499 error = rtrequest_scoped_locked(RTM_DELETE, dst,
510 if ((rnh = rt_tables[dst->sa_family]) == NULL)
517 rt = rt_lookup(TRUE, dst, netmask, rnh, ifscope);
526 dst = rt_key(rt);
655 if (dst)
656 route_proto.sp_protocol = dst->sa_family;
1061 dst = sa = rt_key(rt);
1126 dst = rt_key(rt);