Home
last modified time | relevance | path

Searched full:route (Results 1 – 25 of 1061) sorted by relevance

12345678910>>...43

/freebsd/contrib/netbsd-tests/net/route/
H A Dt_change.sh39 atf_set "descr" "Change a reject route to blackhole"
49 rump.route add 207.46.197.32 127.0.0.1 -reject
51 "rump.route -n show -inet | grep ^207.46"
53 rump.route change 207.46.197.32 127.0.0.1 -blackhole
68 atf_set "descr" "Change the gateway of a route"
82 rump.route add -net 192.168.0.0/24 10.0.0.1
84 "rump.route -n show -inet | grep ^192.168"
86 rump.route change -net 192.168.0.0/24 10.0.0.254
88 "rump.route -n show -inet | grep ^192.168"
101 atf_set "descr" "Change the ifa (local address) of a route"
[all …]
H A Dt_flags.sh115 atf_check -s exit:0 -o ignore rump.route add default 10.0.0.1
127 # Static route to host
128 atf_check -s exit:0 -o ignore rump.route add 10.0.1.1 10.0.0.1
134 # Static route to network
135 atf_check -s exit:0 -o ignore rump.route add -net 10.0.2.0/24 10.0.0.1
149 # Delete an existing route first
150 atf_check -s exit:0 -o ignore rump.route delete -net 10.0.0.0/24
154 rump.route add -net 10.0.0.0/24 127.0.0.1 -blackhole
173 # Delete an existing route first
174 atf_check -s exit:0 -o ignore rump.route delete -net 10.0.0.0/24
[all …]
H A Dt_flags6.sh98 atf_check -s exit:0 -o ignore rump.route add -inet6 default $IP6_PEER
110 # Static route to host
112 rump.route add -inet6 fc00::1:1 $IP6_PEER
118 # Static route to network
120 rump.route add -inet6 -net fc00::/24 $IP6_PEER
134 # Delete an existing route first
136 rump.route delete -inet6 -net fc00::/64
140 rump.route add -inet6 -net fc00::/64 ::1 -blackhole
159 # Delete an existing route first
161 rump.route delete -inet6 -net fc00::/64
[all …]
H A Dt_route.sh74 rump.route add -net 10.0.0.1/32 -link -cloning -iface shmif0
86 # Don't know a route to the gateway yet
88 -e match:'No route to host' rump.ping $PING_OPTS 192.168.0.1
90 # Teach a route to the gateway
92 rump.route add -net 192.168.0.1/32 -link -cloning -iface shmif0
94 rump.route add default -ifa 10.0.0.1 192.168.0.1
116 atf_set "descr" "tests of route get command"
123 atf_set "descr" "tests of route get command (IPv6)"
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}
[all …]
/freebsd/sbin/route/tests/
H A Dbasic.sh34 atf_set descr 'add/change/delete route test for v4'
46 # add a new route in the jail
47 jexec alcatraz route add 192.0.2.3 192.0.2.2
51 atf_fail "Failed to add new route."
54 # change the added route
55 jexec alcatraz route change 192.0.2.3 192.0.2.4
59 atf_fail "Failed to change route."
62 # delete the route
63 jexec alcatraz route delete 192.0.2.3
67 atf_fail "Failed to delete route."
[all …]
/freebsd/share/man/man9/
H A Drtentry.945 .Xr route 4
52 The basic structure of a route is defined by
60 when the route was created.
72 of the route, which can either represent a destination in its own
83 function will delete the route from the radix tree when the last
86 Route entries are reference-counted; this field indicates the number
92 as it were, to the question posed by a route lookup; that is, they
94 packet to the destination or set of destinations which this route
105 This member is a reference to a route whose destination is
117 The route is not deleted.
[all …]
/freebsd/sbin/route/
H A Droute.832 .Nm route
59 .Xr route 4 .
102 Add a route.
106 Delete a specific route.
112 Change aspects of a route (such as its gateway).
114 Lookup and display the route for a destination.
213 is the symbolic name of a network, then the route is
215 route to a host.
244 is a synonym for the default route.
262 itself may be given, in which case the route remains valid even
[all …]
/freebsd/share/man/man4/
H A Drtnetlink.444 All route configuration messages share the common header:
53 unsigned char rtm_scope; /* Route distance (RT_SCOPE_) */
54 unsigned char rtm_type; /* Route type (RTN_) */
55 unsigned rtm_flags; /* Route flags (not supported) */
61 specifies the route family to be operated on.
67 The route prefix length is stored in
77 The route scope has to be set via
86 Route type needs to be set.
89 RTN_UNICAST Unicast route
90 RTN_MULTICAST Multicast route
[all …]
H A Droute.432 .Nm route
59 locate a suitable route for a request.
65 The effect of wildcard or default route may be achieved by using
71 Normally the protocol specifies the route
76 If the route is direct, the transport layer of
85 the most specific route matching the destination.
88 A route to a host is regarded as being supplied with a mask of
150 to install a new route.
172 If a route is in use when it is deleted,
184 #define RTM_ADD 0x1 /* Add Route */
[all …]
/freebsd/tests/sys/netpfil/pf/
H A Droute_to.sh34 atf_set descr 'Basic route-to test'
50 jexec alcatraz route add -net 198.51.100.0/24 192.0.2.1
55 "pass out route-to (${epair_route}b 203.0.113.1) from 192.0.2.2 to 198.51.100.1 no state"
70 atf_set descr 'Basic route-to test (IPv6)'
86 jexec alcatraz route add -6 2001:db8:666::/64 2001:db8:42::2
91 …"pass out route-to (${epair_route}b 2001:db8:43::1) from 2001:db8:42::2 to 2001:db8:666::1 no stat…
129 jexec client route add 192.0.2.0/24 203.0.113.2
136 jexec client route add 198.51.100.0/24 203.0.113.129
139 jexec srv route add default 192.0.2.1
156 # These will always succeed, because we don't change interface to route
[all …]
H A Dnat64.sh37 route -6 add default 2001:db8::1
45 jexec dst route add default 192.0.2.1
72 jexec rtr route add -inet6 64:ff9b::/96 -iface ${epair_link}a;
421 route -6 add default 2001:db8::1
428 jexec dst route add default 192.0.2.1
462 route -6 add default 2001:db8::1
471 jexec dst route add default 192.0.2.2
526 route -6 add default 2001:db8::1
536 jexec dst route add default 192.0.2.1
623 route -6 add default 2001:db8::1
[all …]
/freebsd/sbin/pfctl/tests/files/
H A Dpf0081.ok21 pass from no-route to <bar1> flags S/SA keep state
22 pass from no-route to <bar2> flags S/SA keep state
23 pass from no-route to <bar3> flags S/SA keep state
24 pass inet6 from no-route to ::1 flags S/SA keep state
25 pass inet6 from no-route to ::2 flags S/SA keep state
26 pass inet6 from no-route to ::3 flags S/SA keep state
27 pass inet from no-route to 0.0.0.1 flags S/SA keep state
28 pass inet from no-route to 0.0.0.2 flags S/SA keep state
29 pass inet from no-route to 0.0.0.3 flags S/SA keep state
30 pass from no-route to <bar1> flags S/SA keep state
[all …]
/freebsd/sys/net/
H A Droute.h45 * Struct route consiste of a destination address,
46 * a route entry pointer, link-layer prepend data pointer along
49 struct route { struct
81 u_long rmx_expire; /* lifetime for route, e.g. redirect */ argument
87 u_long rmx_pksent; /* packets sent using this route */
88 u_long rmx_weight; /* route weight */
89 u_long rmx_nhidx; /* route nexhop index */
101 /* default route weight */
106 * Keep a generation count of routing table, incremented on route addition,
116 VNET_DECLARE(uint32_t, _rt_numfibs); /* number of existing route tables */
[all …]
/freebsd/sbin/dhclient/
H A Ddhclient-script75 #route delete $alias_ip_address $LOCALHOST > /dev/null 2>&1
83 #route add $alias_ip_address $LOCALHOST
91 route="default"
93 route="$2.0.0.0/$1"
96 route="$2.$3.0.0/$1"
99 route="$2.$3.$4.0/$1"
102 route="$2.$3.$4.$5/$1"
107 classless_routes="$classless_routes $route $router"
113 #route delete "$old_ip_address" $LOCALHOST >/dev/null 2>&1
118 route delete "$1" "$2"
[all …]
/freebsd/share/doc/smm/18.net/
H A Da.t69 u_long rt_use; /* packets sent using route */
93 route (by convention, network 0).
94 The first appropriate route discovered is used.
97 ``fall back'' network route to be defined to a ``smart'' gateway
102 and various flags which indicate the route's status and type (host or
104 of the number of packets sent using the route is kept, along
107 occurs only when the route is not in use. Finally, a pointer to the
109 the route should be handed to this interface.
114 during lookup. If the route is to a network, only a packet's
116 in the table. If the route is to a host, the addresses must
[all …]
/freebsd/usr.sbin/route6d/
H A Droute6d.875 to log the route change (add/delete) to the file
82 aggregated route.
86 and advertises the aggregated route
98 utility creates a static route to
149 is treated specially as default route, not
151 any route that has longer prefix length than, or equal to 0
153 If you would like to accept any route, specify no
164 will accept default route and routes in 6bone test address, but no others.
170 Do not listen to, or advertise, route from/to interfaces specified by
174 Restrict route advertisement toward interfaces specified by
[all …]
/freebsd/sys/contrib/device-tree/Bindings/net/
H A Dsnps,dwmac.yaml231 snps,route-avcp:
234 snps,route-ptp:
237 snps,route-dcbcp:
240 snps,route-up:
243 snps,route-multi-broad:
265 - snps,route-avcp
268 snps,route-ptp: false
269 snps,route-dcbcp: false
270 snps,route-up: false
271 snps,route-multi-broad: false
[all …]
/freebsd/sbin/routed/
H A Dtable.c64 * the same metric and next hop into a common route with a smaller netmask
68 * A route is redundant if and only if any and all routes with smaller
74 * number can be combined into a single route with a coarser mask.
76 * Second, a route can be suppressed in favor of another route with a more
79 * A route must not be suppressed if an incompatible route exists with
80 * an intermediate mask, since the suppressed route would be covered
118 /* Forget it if this route should not be output for split-horizon. */ in ag_out()
140 /* Skip it if this route is itself redundant. in ag_out()
185 * This must not suppress a route unless it is known that among all
214 /* Look for a route that can suppress the in ag_flush()
[all …]
H A Drouted.862 .Xr route 8
89 .Xr route 8 ) .
112 The advertised metric for a route reflects the metrics associated
146 if the best route to the destination changes.
159 Deletions are delayed until the route has been advertised with
213 something happen, a client can be without a good route for
226 is received), there is a single default route and a variable number of
229 this default route will be via only one of the interfaces.
256 replies to a route information query from neighbor nodes.
282 used on internetwork routers to offer a route
[all …]
/freebsd/libexec/rc/rc.d/
H A Dstf22 # assign IPv6 addr and interface route for 6to4 interface
59 route add -inet6 2002:e000:: -prefixlen 20 ::1 -reject
60 route add -inet6 2002:7f00:: -prefixlen 24 ::1 -reject
61 route add -inet6 2002:0000:: -prefixlen 24 ::1 -reject
62 route add -inet6 2002:ff00:: -prefixlen 24 ::1 -reject
71 route delete -inet6 2002:e000:: -prefixlen 20 ::1
72 route delete -inet6 2002:7f00:: -prefixlen 24 ::1
73 route delete -inet6 2002:0000:: -prefixlen 24 ::1
74 route delete -inet6 2002:ff00:: -prefixlen 24 ::1
/freebsd/tests/sys/netinet/
H A Dfibs_test.sh35 # arpresolve only checked the default route.
58 # diffferent subnet masks, or FIB1 won't have a subnet route.
118 # Check whether the host route exists in only the correct FIB
122 atf_fail "Host route did not appear in the correct FIB"
127 atf_fail "Host route appeared in the wrong FIB"
130 # Check whether the network route exists in only the correct FIB
135 atf_fail "Network route did not appear in the correct FIB"
141 atf_fail "Network route appeared in the wrong FIB"
174 # Check whether the host route exists in only the correct FIB
178 atf_fail "Host route did not appear in the correct FIB"
[all …]
/freebsd/contrib/netbsd-tests/net/icmp/
H A Dt_icmp6_redirect.sh53 atf_set "require.progs" "rump_server rump.route rump.ping rump.ifconfig"
92 atf_check -s exit:0 -o ignore rump.route add \
102 atf_check -s exit:0 -o ignore rump.route add \
116 atf_check -s exit:0 -o ignore rump.route add \
118 $DEBUG && rump.route get -inet6 ${IP6IF0_PEER}
127 $DEBUG && rump.route show -inet6
128 # Check if a created route is correctly redirected to gateway #1
129 atf_check -s exit:0 -o match:"gateway: ${gw1_lladdr0}" rump.route get \
133 $DEBUG && rump.route show -inet6
134 # Check if the created route is expired
[all …]
/freebsd/sys/netlink/
H A Dnetlink_route.h37 #include <netlink/route/common.h>
38 #include <netlink/route/ifaddrs.h>
39 #include <netlink/route/interface.h>
40 #include <netlink/route/neigh.h>
41 #include <netlink/route/route.h>
42 #include <netlink/route/nexthop.h>
/freebsd/sys/netlink/route/
H A Droute.h29 * Route-related (RTM_<NEW|DEL|GET>ROUTE) message header and attributes.
43 unsigned char rtm_scope; /* Route distance (RT_SCOPE_) */
44 unsigned char rtm_type; /* Route type (RTN_) */
45 unsigned rtm_flags; /* Route flags (RTM_F_) */
49 * RFC 3549, 3.1.1, route type (rtm_type field).
53 RTN_UNICAST, /* Unicast route */
57 RTN_MULTICAST, /* Multicast route */
69 * RFC 3549, 3.1.1, protocol (Identifies what/who added the route).
74 #define RTPROT_REDIRECT 1 /* Route installed by ICMP redirect */
75 #define RTPROT_KERNEL 2 /* Route installed by kernel */
[all …]
/freebsd/tests/sys/netinet6/
H A Dfibs6.sh71 jexec ${jname}a setfib 1 route -6n get ${net_dst}/64
72 jexec ${jname}a setfib 1 route -6n get ${net_dst}1/128
73 jexec ${jname}a setfib 1 route -6n get fe80::%${epair}a/64
74 jexec ${jname}a setfib 1 route -6n get ${lladdr}
76 atf_check -s exit:0 -o ignore jexec ${jname}a setfib 1 route -6n get ${net_dst}/64
77 atf_check -s exit:0 -o ignore jexec ${jname}a setfib 1 route -6n get ${net_dst}1/128
78 atf_check -s exit:0 -o ignore jexec ${jname}a setfib 1 route -6n get fe80::%${epair}a/64
79 atf_check -s exit:0 -o ignore jexec ${jname}a setfib 1 route -6n get ${lladdr}

12345678910>>...43