/freebsd-12-stable/usr.sbin/route6d/misc/ |
H A D | chkrt | 21 $gw{$f[0]} = $f[1]; 36 $f[3] =~ /gw\(([a-z0-9:]+)\)/; 42 unless (defined($gw{$dst})) { 47 if ($gw{$dst} ne $gateway && $gw{$dst} !~ /link#\d+/) { 49 print "kernel gw: $gw{$dst}\n";
|
/freebsd-12-stable/sys/netinet/ |
H A D | in_fib.c | 74 struct sockaddr_in *gw; local 82 gw = (struct sockaddr_in *)rte->rt_gateway; 83 pnh4->nh_addr = gw->sin_addr; 88 gw = (struct sockaddr_in *)rt_key(rte); 89 if (gw->sin_addr.s_addr == 0) 98 struct sockaddr_in *gw; local 107 gw = (struct sockaddr_in *)rte->rt_gateway; 108 pnh4->nh_addr = gw->sin_addr; 113 gw = (struct sockaddr_in *)rt_key(rte); 114 if (gw [all...] |
H A D | ip_output.c | 228 const struct sockaddr_in *gw; local 279 * dst/gw handling: 282 * gw is readonly but can point either to dst OR rt_gateway, 283 * therefore we need restore gw if we're redoing lookup. 285 gw = dst = (struct sockaddr_in *)&ro->ro_dst; 400 gw = (struct sockaddr_in *)rte->rt_gateway; 404 isbroadcast = in_ifaddr_broadcast(gw->sin_addr, ia); 424 * IP destination address is multicast. Make sure "gw" 428 gw = dst; 590 gw [all...] |
H A D | ip_icmp.c | 646 u_long src, dst, gw; local 650 gw = ntohl(icp->icmp_gwaddr.s_addr); 657 (int)(gw >> 24), (int)((gw >> 16) & 0xff), 658 (int)((gw >> 8) & 0xff), (int)(gw & 0xff));
|
/freebsd-12-stable/sys/netinet6/ |
H A D | in6_fib.c | 104 struct sockaddr_in6 *gw; local 116 gw = (struct sockaddr_in6 *)rte->rt_gateway; 117 pnh6->nh_addr = gw->sin6_addr; 123 gw = (struct sockaddr_in6 *)rt_key(rte); 124 if (IN6_IS_ADDR_UNSPECIFIED(&gw->sin6_addr)) 132 struct sockaddr_in6 *gw; local 144 gw = (struct sockaddr_in6 *)rte->rt_gateway; 145 pnh6->nh_addr = gw->sin6_addr; 151 gw = (struct sockaddr_in6 *)rt_key(rte); 152 if (IN6_IS_ADDR_UNSPECIFIED(&gw [all...] |
H A D | in6_rmx.c | 252 in6_rtredirect(struct sockaddr *dst, struct sockaddr *gw, struct sockaddr *nm, argument 256 rtredirect_fib(dst, gw, nm, flags, src, fibnum); 260 in6_rtrequest(int req, struct sockaddr *dst, struct sockaddr *gw, argument 264 return (rtrequest_fib(req, dst, gw, mask, flags, ret_nrt, fibnum));
|
H A D | nd6.c | 157 struct sockaddr_dl gw; local 183 bzero(&gw, sizeof(gw)); 188 gw.sdl_len = sizeof(struct sockaddr_dl); 189 gw.sdl_family = AF_LINK; 190 gw.sdl_alen = ifp->if_addrlen; 191 gw.sdl_index = ifp->if_index; 192 gw.sdl_type = ifp->if_type; 194 bcopy(lle->ll_addr, gw.sdl_data, ifp->if_addrlen); 196 rtinfo.rti_info[RTAX_GATEWAY] = (struct sockaddr *)&gw; [all...] |
/freebsd-12-stable/usr.sbin/ppp/ |
H A D | route.c | 441 struct ncpaddr gw; local 443 ncpaddr_setsa(&gw, sa[RTAX_GATEWAY]); 444 snprintf(gwstr, sizeof gwstr, "%s", ncpaddr_ntoa(&gw)); 557 ncpaddr_copy(&r->gw, peer); 562 ncpaddr_copy(&r->gw, peer); 568 ncpaddr_copy(&r->gw, peer); 574 ncpaddr_copy(&r->gw, peer); 575 } else if ((r->type & ROUTE_GWHISADDR) && !ncpaddr_equal(&r->gw, peer)) 576 ncpaddr_copy(&r->gw, peer); 583 ncpaddr_copy(&r->gw, pee 598 route_Add(struct sticky_route **rp, int type, const struct ncprange *dst, const struct ncpaddr *gw) argument 736 rt_Set(struct bundle *bundle, int cmd, const struct ncprange *dst, const struct ncpaddr *gw, int bang, int quiet) argument 861 rt_Update(struct bundle *bundle, const struct sockaddr *dst, const struct sockaddr *gw, const struct sockaddr *mask, const struct sockaddr *ifp, const struct sockaddr *ifa) argument [all...] |
H A D | route.h | 54 struct ncpaddr gw; member in struct:sticky_route
|
H A D | radius.c | 257 struct ncpaddr gw; local 388 * We expect a string of the format ``dest[/bits] gw [metrics]'' 390 * understood for ``dest'' and ``gw'' and ``0.0.0.0'' is the same 405 ncpaddr_setip4(&gw, ip); 416 !ncpaddr_aton(&gw, &bundle->ncp, argv[1])) 433 if (ncpaddr_getip4addr(&gw, &ipaddr) && ipaddr == INADDR_ANY) { 435 ncpaddr_setip4(&gw, bundle->ncp.ipcp.peer_ip); 439 route_Add(&r->routes, addrs, &dest, &gw); 473 * We expect a string of the format ``dest[/bits] gw [metrics]'' 475 * understood for ``dest'' and ``gw'' an [all...] |
/freebsd-12-stable/contrib/netbsd-tests/net/ |
H A D | net_common.sh | 53 local gw=$2 58 if [ "$gw" = "" ]; then 59 gw=".+" 61 gw=$(echo $gw |sed 's/\./\\./g') 65 -o match:"^$target +$gw +$flags +- +- +.+ +$ifname" \
|
/freebsd-12-stable/contrib/netbsd-tests/net/if_tun/ |
H A D | t_tun.sh | 77 local gw=$2 83 atf_check -s exit:0 -o match:" $gw " -e ignore -x \
|
/freebsd-12-stable/contrib/bsnmp/snmp_mibII/ |
H A D | mibII_route.c | 94 mib_sroute_process(struct rt_msghdr *rtm, struct sockaddr *gw, argument 104 if (dst == NULL || gw == NULL || dst->sa_family != AF_INET || 105 gw->sa_family != AF_INET) 109 in_gw = (struct sockaddr_in *)(void *)gw; 174 mib_send_rtmsg(rtm, gw, dst, mask);
|
H A D | mibII.c | 1205 mib_send_rtmsg(struct rt_msghdr *rtm, struct sockaddr *gw, argument 1213 len = sizeof(*rtm) + SA_SIZE(gw) + SA_SIZE(dst) + SA_SIZE(mask); 1227 memcpy(cp, gw, SA_SIZE(gw)); 1228 cp += SA_SIZE(gw);
|
/freebsd-12-stable/sbin/dumpon/ |
H A D | dumpon.c | 107 struct sockaddr_in *dst, *mask, *gw; local 158 dst = gw = mask = NULL; 167 gw = (void *)sa; 179 ret = inet_ntoa(gw->sin_addr);
|
/freebsd-12-stable/contrib/netbsd-tests/net/config/ |
H A D | netconfig.c | 124 netcfg_rump_route(const char *dst, const char *mask, const char *gw) argument 159 /* gw */ 163 sinstore.sin_addr.s_addr = inet_addr(gw);
|
/freebsd-12-stable/contrib/netbsd-tests/net/route/ |
H A D | t_route.sh | 133 local gw=${5} 139 atf_check -s exit:0 -o ignore rump.route add -inet6 default ${gw} 142 atf_check -s exit:0 -o ignore rump.route add default ${gw}
|
/freebsd-12-stable/usr.sbin/rtadvd/ |
H A D | if.c | 171 struct sockaddr *sa, *dst, *gw, *ifa, *rti_info[RTAX_MAX]; local 210 if ((gw = rti_info[RTAX_GATEWAY]) == NULL || 211 gw->sa_family != AF_LINK) 213 if (ifindex && SDL(gw)->sdl_index != ifindex)
|
/freebsd-12-stable/sys/nfs/ |
H A D | bootp_subr.c | 144 struct sockaddr_in gw; member in struct:bootpc_ifcontext 1079 if (ifctx->gw.sin_addr.s_addr == htonl(INADDR_ANY)) 1086 (struct sockaddr *) &ifctx->gw, (struct sockaddr *)&defmask, 1100 if (ifctx->gw.sin_addr.s_addr == htonl(INADDR_ANY)) 1107 (struct sockaddr *) &ifctx->gw, (struct sockaddr *)&defmask, 1427 clear_sinaddr(&ifctx->gw); 1438 ifctx->gw.sin_addr = ifctx->reply.giaddr; 1477 bcopy(p, &ifctx->gw.sin_addr, 4); 1479 print_sin_addr(&ifctx->gw); 1788 bcopy(&ifctx->gw, [all...] |
/freebsd-12-stable/contrib/netbsd-tests/net/net/ |
H A D | t_forwarding.sh | 87 gw=${5} 94 atf_check -s exit:0 -o ignore rump.route add -inet6 default ${gw} 97 atf_check -s exit:0 -o ignore rump.route add default ${gw}
|
H A D | t_ping6_opts.sh | 52 local gw=${4} 58 atf_check -s exit:0 -o ignore rump.route add -inet6 default ${gw}
|
/freebsd-12-stable/contrib/atf/atf-c++/detail/ |
H A D | fs_test.cpp | 382 #define perms(ur, uw, ux, gr, gw, gx, othr, othw, othx) \ 389 ATF_REQUIRE(fi.is_group_writable() == gw); \
|
/freebsd-12-stable/usr.sbin/route6d/ |
H A D | route6d.c | 1377 /* Got worse route from same gw */ 1386 /* same metric, same route from same gw */ 1879 trace(1, "\tsome of dst/gw/netamsk are " 1889 trace(1, "\tsome of dst/gw/netamsk are " 1960 const struct in6_addr *gw = NULL; local 1980 gw = &sgw->sin6_addr; 2009 gw = &in6addr_loopback; 2012 trace(1, "\tunsupported af: (gw=%d)\n", sgw->sin6_family); 2017 trace(1, "gw %s\n", inet6_n2p(gw)); 2815 addroute(struct riprt *rrt, const struct in6_addr *gw, struct ifc *ifcp) argument 2890 delroute(struct netinfo6 *np, struct in6_addr *gw) argument [all...] |
/freebsd-12-stable/sys/net/ |
H A D | route.c | 825 * If @flags contains NHR_COPY, copies dst,netmask and gw to the 829 * point dst,netmask and gw @info fields to appropriate @rt values. 1451 struct sockaddr *gw; local 1453 gw = info->rti_info[RTAX_GATEWAY]; 1454 rt = rt_mpath_matchgate(rto, gw); 1482 if (gw && 1483 (rt->rt_gateway->sa_len != gw->sa_len || 1484 memcmp(rt->rt_gateway, gw, gw->sa_len))) { 1640 /* do not permit exactly the same dst/mask/gw pai [all...] |
/freebsd-12-stable/stand/i386/libi386/ |
H A D | pxe.h | 432 IP4_t gw; /* ip gateway */ member in struct:__anon9186
|