Searched refs:gw (Results 1 - 24 of 24) sorted by relevance

/netbsd-current/crypto/dist/ipsec-tools/src/racoon/samples/roadwarrior/client/
H A Dphase1-up.sh48 route add ${REMOTE_ADDR} gw ${DEFAULT_GW} dev ${if}
49 route add default gw ${DEFAULT_GW} dev ${if}:1
H A Dphase1-down.sh50 route add default gw ${DEFAULT_GW}
/netbsd-current/tests/net/if_tun/
H A Dt_tun.sh72 local gw=$2
78 atf_check -s exit:0 -o match:" $gw " -e ignore -x \
/netbsd-current/tests/net/
H A Dnet_common.sh57 local gw=$2
62 if [ "$gw" = "" ]; then
63 gw=".+"
65 gw=$(echo $gw | sed 's/\./\\./g')
69 -o match:"^$target +$gw +$flags +- +- +.+ +$ifname" \
/netbsd-current/share/examples/rump/virtual_ip_router/
H A Drumprouter.c114 configure_routing(const char *dst, const char *mask, const char *gw) argument
149 /* gw */
153 sinstore.sin_addr.s_addr = inet_addr(gw);
/netbsd-current/external/mpl/dhcp/dist/client/scripts/
H A Dopenwrt140 route add default gw $router $metric_arg dev $interface
149 route del default gw $router
155 route add default gw $router $metric_arg dev $interface
203 route add default gw $router $metric_arg dev $interface
/netbsd-current/usr.sbin/rtadvd/
H A Dif.c202 const struct sockaddr *sa, *dst, *gw, *ifa, *rti_info[RTAX_MAX]; local
234 if ((gw = rti_info[RTAX_GATEWAY]) == NULL ||
235 gw->sa_family != AF_LINK)
237 if (ifindex && SDL(gw)->sdl_index != ifindex)
/netbsd-current/tests/net/config/
H A Dnetconfig.c126 netcfg_rump_route(const char *dst, const char *mask, const char *gw) argument
162 /* gw */
166 sinstore.sin_addr.s_addr = inet_addr(gw);
/netbsd-current/external/mpl/dhcp/dist/relay/tests/
H A Drelay_unittests.c415 extern struct in_addr gw;
424 inet_ntop(AF_INET, &gw, txt, sizeof(txt));
/netbsd-current/sys/nfs/
H A Dnfs_boot.c534 struct sockaddr dst, gw, mask; local
543 memset((void *)&gw, 0, sizeof(gw));
544 sin = (struct sockaddr_in *)&gw;
552 /* add, dest, gw, mask, flags, 0 */
553 error = rtrequest(RTM_ADD, &dst, &gw, &mask,
/netbsd-current/sys/fs/nfs/common/
H A Dbootp_subr.c154 struct sockaddr_in gw; member in struct:bootpc_ifcontext
1084 if (ifctx->gw.sin_addr.s_addr == htonl(INADDR_ANY))
1091 (struct sockaddr *) &ifctx->gw, (struct sockaddr *)&defmask,
1105 if (ifctx->gw.sin_addr.s_addr == htonl(INADDR_ANY))
1112 (struct sockaddr *) &ifctx->gw, (struct sockaddr *)&defmask,
1431 clear_sinaddr(&ifctx->gw);
1440 ifctx->gw.sin_addr = ifctx->reply.giaddr;
1479 bcopy(p, &ifctx->gw.sin_addr, 4);
1481 print_sin_addr(&ifctx->gw);
1794 bcopy(&ifctx->gw,
[all...]
/netbsd-current/tests/net/net/
H A Dt_ping6_opts.sh52 local gw=${4}
58 atf_check -s exit:0 -o ignore rump.route add -inet6 default ${gw}
H A Dt_ping_opts.sh53 local gw=${4}
59 atf_check -s exit:0 -o ignore rump.route add default ${gw}
H A Dt_forwarding.sh94 gw=${5}
101 atf_check -s exit:0 -o ignore rump.route add -inet6 default ${gw}
104 atf_check -s exit:0 -o ignore rump.route add default ${gw}
/netbsd-current/tests/net/if_wg/
H A Dt_tunnel.sh66 local gw=$4
73 atf_check -s exit:0 -o ignore rump.route add -$proto default $gw
/netbsd-current/external/bsd/atf/dist/atf-c++/detail/
H A Dfs_test.cpp385 #define perms(ur, uw, ux, gr, gw, gx, othr, othw, othx) \
392 ATF_REQUIRE(fi.is_group_writable() == gw); \
/netbsd-current/sys/arch/i386/stand/pxeboot/
H A Dpxe.c129 uw->gw = gateip.s_addr;
H A Dpxe.h437 IP4_t gw; /* ip gateway */ member in struct:__anon83
/netbsd-current/usr.sbin/route6d/
H A Droute6d.c1177 /* Got worse route from same gw */
1186 /* same metric, same route from same gw */
1603 trace(1, "\tsome of dst/gw/netamsk are "
1613 trace(1, "\tsome of dst/gw/netamsk are "
1685 const struct in6_addr *gw = NULL; local
1705 gw = &sgw->sin6_addr;
1734 gw = &in6addr_loopback;
1737 trace(1, "\tunsupported af: (gw=%d)\n", sgw->sin6_family);
1742 trace(1, "gw %s\n", inet6_n2p(gw));
2554 addroute(struct riprt *rrt, const struct in6_addr *gw, struct ifc *ifcp) argument
2624 delroute(struct netinfo6 *np, struct in6_addr *gw) argument
[all...]
/netbsd-current/external/bsd/atf/dist/tools/
H A Dfs_test.cpp394 #define perms(ur, uw, ux, gr, gw, gx, othr, othw, othx) \
401 ATF_REQUIRE(fi.is_group_writable() == gw); \
/netbsd-current/tests/net/route/
H A Dt_route.sh135 local gw=${5}
141 atf_check -s exit:0 -o ignore rump.route add -inet6 default ${gw}
144 atf_check -s exit:0 -o ignore rump.route add default ${gw}
/netbsd-current/external/bsd/atf/dist/atf-c/detail/
H A Dfs_test.c501 #define perms(ur, uw, ux, gr, gw, gx, othr, othw, othx) \
508 ATF_REQUIRE(atf_fs_stat_is_group_writable(&st) == gw); \
/netbsd-current/external/bsd/ppp/usr.sbin/pppd/
H A Dsys-bsd.c1679 struct sockaddr_in6 gw; member in struct:__anon2
1699 rmsg.gw.sin6_family = AF_INET6;
1700 IN6_SOCKADDR_FROM_EUI64(&rmsg.gw, g);
/netbsd-current/external/mpl/dhcp/dist/relay/
H A Ddhcrelay.c114 struct in_addr gw = {0}; variable in typeref:struct:in_addr
587 if (inet_pton(AF_INET, argv[i], &gw) <= 0) {
970 packet->giaddr = gw;

Completed in 324 milliseconds