Lines Matching full:table
103 ip -n $ns route add table local 192.0.2.1/32 dev dummy1
104 fib4_trap_check $ns "table local 192.0.2.1/32 dev dummy1" false
105 check_err $? "Local table route not in hardware when should"
107 ip -n $ns route add table main 192.0.2.1/32 dev dummy1
108 fib4_trap_check $ns "table main 192.0.2.1/32 dev dummy1" true
109 check_err $? "Main table route in hardware when should not"
111 fib4_trap_check $ns "table local 192.0.2.1/32 dev dummy1" false
112 check_err $? "Local table route was replaced when should not"
114 # Test that local routes can replace routes in main table.
115 ip -n $ns route add table main 192.0.2.2/32 dev dummy1
116 fib4_trap_check $ns "table main 192.0.2.2/32 dev dummy1" false
117 check_err $? "Main table route not in hardware when should"
119 ip -n $ns route add table local 192.0.2.2/32 dev dummy1
120 fib4_trap_check $ns "table local 192.0.2.2/32 dev dummy1" false
121 check_err $? "Local table route did not replace route in main table when should"
123 fib4_trap_check $ns "table main 192.0.2.2/32 dev dummy1" true
124 check_err $? "Main table route was not replaced when should"
126 log_test "IPv4 local table route replacement"
200 ip -n $ns route add table local 2001:db8:1::1/128 dev dummy1
201 fib6_trap_check $ns "table local 2001:db8:1::1/128 dev dummy1" false
202 check_err $? "Local table route not in hardware when should"
204 ip -n $ns route add table main 2001:db8:1::1/128 dev dummy1
205 fib6_trap_check $ns "table main 2001:db8:1::1/128 dev dummy1" true
206 check_err $? "Main table route in hardware when should not"
208 fib6_trap_check $ns "table local 2001:db8:1::1/128 dev dummy1" false
209 check_err $? "Local table route was replaced when should not"
211 # Test that local routes can replace routes in main table.
212 ip -n $ns route add table main 2001:db8:1::2/128 dev dummy1
213 fib6_trap_check $ns "table main 2001:db8:1::2/128 dev dummy1" false
214 check_err $? "Main table route not in hardware when should"
216 ip -n $ns route add table local 2001:db8:1::2/128 dev dummy1
217 fib6_trap_check $ns "table local 2001:db8:1::2/128 dev dummy1" false
218 check_err $? "Local route route did not replace route in main table when should"
220 fib6_trap_check $ns "table main 2001:db8:1::2/128 dev dummy1" true
221 check_err $? "Main table route was not replaced when should"
223 log_test "IPv6 local table route replacement"