Home
last modified time | relevance | path

Searched refs:gateway (Results 1 – 25 of 70) sorted by relevance

123

/freebsd/sbin/route/tests/
H A Dbasic.sh48 gateway=$(check_route "alcatraz" "192.0.2.3")
50 if [ "${gateway}" != "192.0.2.2" ]; then
56 gateway=$(check_route "alcatraz" "192.0.2.3")
58 if [ "${gateway}" != "192.0.2.4" ]; then
64 gateway=$(check_route "alcatraz" "192.0.2.3")
66 if [ "${gateway}" != "" ]; then
93 gateway=$(check_route "alcatraz" "2001:db8:cc4b::3")
95 if [ "${gateway}" != "2001:db8:cc4b::1" ]; then
101 gateway=$(check_route "alcatraz" "2001:db8:cc4b::3")
102 if [ "${gateway}" != "2001:db8:cc4b::4" ]; then
[all …]
H A Dutils.subr42 gateway=$(echo $result | jq -r ${query}.gateway)
44 echo ${gateway}
/freebsd/usr.sbin/route6d/misc/
H A Dchkrt36 $gateway = $1;
42 print "NOT FOUND: $dst $intf $gateway $metric $age\n";
46 if ($gw{$dst} ne $gateway && $gw{$dst} !~ /link#\d+/) {
47 print "WRONG GW: $dst $intf $gateway $metric $age\n";
53 print "WRONG IF: $dst $intf $gateway $metric $age\n";
/freebsd/sys/net/
H A Droute.c190 rib_add_redirect(u_int fibnum, struct sockaddr *dst, struct sockaddr *gateway, in rib_add_redirect() argument
209 if ((ifa = ifaof_ifpforaddr(gateway, ifp)) == NULL) in rib_add_redirect()
216 nhop_set_gw(nh, gateway, flags & RTF_GATEWAY); in rib_add_redirect()
239 .rti_info[RTAX_GATEWAY] = gateway, in rib_add_redirect()
270 const struct sockaddr *gateway, u_int fibnum) in ifa_ifwithroute() argument
287 ifa = ifa_ifwithaddr(gateway); in ifa_ifwithroute()
294 ifa = ifa_ifwithdstaddr(gateway, fibnum); in ifa_ifwithroute()
297 ifa = ifa_ifwithnet(gateway, 0, fibnum); in ifa_ifwithroute()
301 nh = rib_lookup(fibnum, gateway, NHR_NONE, 0); in ifa_ifwithroute()
437 const struct sockaddr *dst, *gateway, *ifaaddr; in rt_getifa_fib() local
[all …]
/freebsd/sbin/ipf/ipsend/
H A Dipresend.c67 char *name = argv[0], *gateway = NULL, *dev = NULL; in main() local
78 gateway = optarg; in main()
113 if (gateway && resolve(gateway, (char *)&gwip) == -1) in main()
115 fprintf(stderr,"Cant resolve %s\n", gateway); in main()
H A Diptest.c68 char *gateway = NULL, *dev = NULL; in main() local
96 gateway = optarg; in main()
140 if (!gateway) in main()
142 else if (resolve(gateway, (char *)&gwip) == -1) in main()
144 fprintf(stderr,"Cant resolve %s\n", gateway); in main()
H A Dipsend.c171 char *gateway = NULL, *dev = NULL; in main() local
261 gateway = optarg; in main()
327 if (!gateway) in main()
329 else if (resolve(gateway, (char *)&gwip) == -1) in main()
331 fprintf(stderr,"Cant resolve %s\n", gateway); in main()
/freebsd/contrib/unbound/ipsecmod/
H A Dipsecmod.c217 char* gateway; in ipseckey_has_safe_characters() local
218 gateway = (char*)calloc(slen, sizeof(char)); in ipseckey_has_safe_characters()
219 if(!gateway) { in ipseckey_has_safe_characters()
224 &precedence, &gateway_type, &algorithm, gateway) != 4) { in ipseckey_has_safe_characters()
225 free(gateway); in ipseckey_has_safe_characters()
229 free(gateway); in ipseckey_has_safe_characters()
232 if(domainname_has_safe_characters(gateway, slen)) { in ipseckey_has_safe_characters()
233 free(gateway); in ipseckey_has_safe_characters()
236 free(gateway); in ipseckey_has_safe_characters()
/freebsd/sbin/dumpon/
H A Ddumpon.c79 " [-g <gateway>] -s <server> -c <client> <iface>\n" in usage()
431 printf("gateway address: %s\n", in listdumpdev()
465 const char *dev, *pubkeyfile, *server, *client, *gateway; in main() local
476 server = client = gateway = NULL; in main()
502 gateway = optarg; in main()
648 if (gateway == NULL) { in main()
649 gateway = find_gateway(argv[0]); in main()
650 if (gateway == NULL) { in main()
653 "failed to look up gateway for %s\n", in main()
655 gateway in main()
[all...]
/freebsd/contrib/netbsd-tests/net/route/
H A Dt_change.sh125 gateway: 10.0.0.1
144 gateway: 10.0.0.1
192 gateway: 10.0.0.1
211 gateway: 10.0.0.1
259 gateway: 10.0.0.1
278 gateway: 10.0.0.1
/freebsd/libexec/bootpd/
H A Dbootpd.h100 gateway :1, member
159 *gateway, member
H A Ddumptab.c161 if (hp->flags.gateway) { in dump_host()
163 list_ipaddresses(fp, hp->gateway); in dump_host()
H A Dbootpd.c1173 if (hp->flags.gateway) { in dovend_cmu()
1174 (vendp->v_dgate).s_addr = hp->gateway->addr->s_addr; in dovend_cmu()
1310 if (hp->flags.gateway) { in dovend_rfc1048()
1312 hp->gateway, in dovend_rfc1048()
/freebsd/usr.sbin/bsdconfig/networking/share/
H A Drouting.subr71 # default router/gateway is changed while NFS-exported directories are
99 # Save only if the user changed the default router/gateway.
104 # Save the default router/gateway
119 # Apply the default router/gateway
/freebsd/contrib/ldns/
H A Dstr2host.c1281 char* gateway = NULL; in ldns_str2rdf_ipseckey() local
1317 gateway = strdup(token); in ldns_str2rdf_ipseckey()
1318 if (!gateway || (gateway_type == 0 && in ldns_str2rdf_ipseckey()
1320 LDNS_FREE(gateway); in ldns_str2rdf_ipseckey()
1338 if (!gateway || !publickey) { in ldns_str2rdf_ipseckey()
1339 if (gateway) in ldns_str2rdf_ipseckey()
1340 LDNS_FREE(gateway); in ldns_str2rdf_ipseckey()
1349 status = ldns_str2rdf_a(&gateway_rdf, gateway); in ldns_str2rdf_ipseckey()
1351 status = ldns_str2rdf_aaaa(&gateway_rdf, gateway); in ldns_str2rdf_ipseckey()
1353 status = ldns_str2rdf_dname(&gateway_rdf, gateway); in ldns_str2rdf_ipseckey()
[all …]
/freebsd/contrib/wpa/hostapd/
H A Dhlr_auc_gw.txt1 HLR/AuC testing gateway for hostapd EAP-SIM/AKA database/authenticator
4 database/authentication gateway interface to HLR/AuC. It could be
5 replaced with an implementation of SS7 gateway to GSM/UMTS
/freebsd/lib/libc/net/
H A Dprotocols9 ggp 3 GGP # gateway-gateway protocol
14 egp 8 EGP # exterior gateway protocol
15 igp 9 IGP # any private interior gateway (Cisco: for IGRP)
/freebsd/sys/dev/irdma/
H A Dfbsd_kcompat.c362 struct ifnet **ifp, struct sockaddr **nexthop, bool *gateway) in irdma_get_route_ifp() argument
374 *gateway = (nh->nh_flags & NHF_GATEWAY) ? true : false; in irdma_get_route_ifp()
375 *nexthop = (*gateway) ? &nh->gw_sa : dst_sin; in irdma_get_route_ifp()
403 bool gateway; in irdma_get_dst_mac() local
407 err = irdma_get_route_ifp(dst_sin, netdev, &ifp, &nexthop, &gateway); in irdma_get_dst_mac()
412 err = arpresolve(ifp, gateway, NULL, nexthop, dst_mac, NULL, &lle); in irdma_get_dst_mac()
414 err = nd6_resolve(ifp, LLE_SF(AF_INET6, gateway), NULL, nexthop, in irdma_get_dst_mac()
/freebsd/sbin/route/
H A Dkeywords14 gateway
H A Droute.c845 const char *dest, *gateway, *errmsg; in newroute() local
851 gateway = NULL; in newroute()
962 gateway = *argv; in newroute()
1012 gateway = *argv; in newroute()
1053 if (gateway == NULL) in newroute()
1054 gateway = ""; in newroute()
1083 if (*gateway) in newroute()
1084 printf(": gateway %s", gateway); in newroute()
1111 if (*gateway) in newroute()
1112 printf(": gateway %s", gateway); in newroute()
/freebsd/contrib/ofed/libibverbs/
H A Dneigh.c517 struct nl_addr *gateway = NULL; in get_route_cb_parser() local
526 gateway = rtnl_route_nh_get_gateway(nh); in get_route_cb_parser()
529 if (gateway) { in get_route_cb_parser()
531 neigh_handler->dst = nl_addr_clone(gateway); in get_route_cb_parser()
/freebsd/sys/contrib/device-tree/Bindings/mips/
H A Dralink.txt31 - compatible = "gardena,smart-gateway-mt7688", "ralink,mt7688a-soc",
/freebsd/usr.sbin/bsdconfig/share/media/
H A Dtcpip.subr425 # f_validate_gateway $gateway $ipaddr $netmask
427 # Validate an IPv4 default gateway (aka router) address for a given IP address
429 # Returns success if $ipaddr and $gateway are in the same network given subnet
434 local gateway="$1" ipaddr="$2" netmask="$3"
437 f_validate_ipaddr "$gateway" "$netmask" || return $FAILURE
441 f_inet_atoi "$gateway" gwnum
448 # f_dialog_validate_tcpip $hostname $gateway $nameserver $ipaddr $netmask
455 local hostname="$1" gateway="$2" nameserver="$3"
471 elif [ "$gateway" -a "$gateway" != "NO" ] &&
472 ! f_validate_gateway "$gateway" "$ipaddr" "$netmask"; then
[all …]
/freebsd/sys/net/route/
H A Droute_ctl.c732 struct sockaddr *dst, *gateway, *netmask; in add_route_byinfo() local
736 gateway = info->rti_info[RTAX_GATEWAY]; in add_route_byinfo()
739 if ((info->rti_flags & RTF_GATEWAY) && !gateway) { in add_route_byinfo()
743 if (dst && gateway && !nhop_check_gateway(dst->sa_family, gateway->sa_family)) { in add_route_byinfo()
746 dst->sa_family, gateway->sa_family); in add_route_byinfo()
/freebsd/contrib/tcp_wrappers/
H A DREADME.NIS11 internet gateway uses the same IP address on all interfaces. To avoid
17 gateway. It has two interfaces: one connected to the local ethernet,
26 The DNS was designed to handle multi-homed hosts. In the DNS my gateway

123