Lines Matching refs:src
61 * $FreeBSD: src/sys/net/route.c,v 1.59.2.3 2001/07/29 19:18:02 ume Exp $
310 * Copy a sockaddr_in src to dst and embed ifscope into dst.
313 sin_copy(struct sockaddr_in *src, struct sockaddr_in *dst, unsigned int ifscope)
315 *dst = *src;
322 * Copy a mask from src to a sockaddr_in dst and embed ifscope into dst.
325 mask_copy(struct sockaddr *src, struct sockaddr_in *dst, unsigned int ifscope)
329 rt_maskedcopy(src, SA(dst), src);
803 struct sockaddr *netmask, int flags, struct sockaddr *src,
830 /* Embed scope in src for comparison against rt_gateway below */
831 if (ip_doscopedroute && src->sa_family == AF_INET)
832 src = sin_copy(SIN(src), &sin, ifscope);
841 (!equal(src, rt->rt_gateway) || !equal(rt->rt_ifa->ifa_addr,
921 info.rti_info[RTAX_AUTHOR] = src;
1725 rt_maskedcopy(struct sockaddr *src, struct sockaddr *dst,
1728 u_char *cp1 = (u_char *)src;