tech-net archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
Re: IPv6 prefix route lifetime
On Tue, Aug 9, 2016 at 6:58 PM, Kengo NAKAHARA <k-nakahara%iij.ad.jp@localhost> wrote:
> Hi,
>
> On 2016/08/09 17:56, Roy Marples wrote:
>> On 08/08/2016 07:49, Ryota Ozaki wrote:
>>> I see the following errors.
>>
>> test rump tests currently panic on yesterdays buildable current which
>> makes fixing it hard.
>>
>>> === recursiveipv6overipv4 and recursiveipv6overipv6 ====
>>> tc-so:Executing command [ /bin/sh -c env
>>> LD_PRELOAD=/usr/lib/librumphijack.so RUMPHIJACK=sysctl=yes dmesg ]
>>> tc-se:Fail: regexp gif0: recursively called too many times not in stdout
>>
>> I don't understand this error.
>> Does it imply there is no output to parse?
>> I will try looking into why this happens in the gif driver.
>
> I think the packet might not be routed to gif(4) interface. To ensure
> that, could you try to apply below patch and show me the ping output
> message?
> ====================
> diff --git a/tests/net/if_gif/t_gif.sh b/tests/net/if_gif/t_gif.sh
> index 6337f23..28ef7bf 100644
> --- a/tests/net/if_gif/t_gif.sh
> +++ b/tests/net/if_gif/t_gif.sh
> @@ -467,6 +467,12 @@ test_recursive_check()
> rump.ping -n -w $TIMEOUT -c 1 $ROUTER2_GIFIP_RECURSIVE2
> fi
>
> + if [ ${mode} = "ipv6" ]; then
> + rump.ping6 -n -X $TIMEOUT -c 1 $ROUTER2_GIFIP6_RECURSIVE2
> + else
> + rump.ping -n -w $TIMEOUT -c 1 $ROUTER2_GIFIP_RECURSIVE2
> + fi
> +
> atf_check -o match:'gif0: recursively called too many times' \
> -x "$HIJACKING dmesg"
> ====================
I run tests w/o and w/ the patch. The diff between netstat -nr -f inet6
of the two runs at that point is below. There are less routes to
gif interfaces.
ozaki-r
====
--- /tmp/ok2 2016-08-09 19:37:02.000000000 +0900
+++ /tmp/bad 2016-08-09 19:32:52.000000000 +0900
@@ -1,29 +1,24 @@
+tc-so:Routing tables
+tc-so:
tc-so:Internet6:
tc-so:Destination Gateway
Flags Refs Use Mtu Interface
-tc-so:::1 ::1
UH - - 33624 lo0
+tc-so:::1 lo0
UHl - - 33624 lo0
tc-so:fc00::/64 link#3
UC - - - shmif1
tc-so:fc00::1 link#3
UHl - - - lo0
tc-so:fc00:1::/64 link#2
UC - - - shmif0
tc-so:fc00:1::1 link#2
UHl - - - lo0
tc-so:fc00:2::/64 fc00:3::1
UGS - - - gif0
tc-so:fc00:3::1 gif0
UHl - - - lo0
-tc-so:fc00:4::1 fc00:3::1
UH - - - gif0
tc-so:fc00:103::1 gif1
UHl - - - lo0
-tc-so:fc00:104::1 fc00:103::1
UH - - - gif1
tc-so:fc00:203::1 gif2
UHl - - - lo0
-tc-so:fc00:204::1 fc00:203::1
UH - - - gif2
-tc-so:fe80::%lo0/64 fe80::1
U - - - lo0
tc-so:fe80::1 lo0
UHl - - - lo0
tc-so:fe80::%shmif0/64 link#2
UC - - - shmif0
-tc-so:fe80::b0a0:8ff:febf:8209 link#2
UHl - - - lo0
+tc-so:fe80::b0a0:5cff:fe88:824 link#2
UHl - - - lo0
tc-so:fe80::%shmif1/64 link#3
UC - - - shmif1
-tc-so:fe80::b0a0:3fff:fe7f:d40 link#3
UHl - - - lo0
-tc-so:fe80::%gif0/64 link#4
UC - - - gif0
-tc-so:fe80::44c2:dfb3:fa37:6545 gif0
UHl - - - lo0
-tc-so:fe80::%gif1/64 link#5
UC - - - gif1
-tc-so:fe80::44c2:dfb3:fa37:6545 gif1
UHl - - - lo0
-tc-so:fe80::%gif2/64 link#6
UC - - - gif2
-tc-so:fe80::44c2:dfb3:fa37:6545 gif2
UHl - - - lo0
+tc-so:fe80::b0a0:48ff:fee1:ea2f link#3
UHl - - - lo0
+tc-so:fe80::3895:f9c:dbf0:9132 gif0
UHl - - - lo0
+tc-so:fe80::3895:f9c:dbf0:9132 gif1
UHl - - - lo0
+tc-so:fe80::3895:f9c:dbf0:9132 gif2
UHl - - - lo0
tc-so:ff01:1::/32 ::1
UC - - 33624 lo0
tc-so:ff01:2::/32 link#2
UC - - - shmif0
tc-so:ff01:3::/32 link#3
UC - - - shmif1
Home |
Main Index |
Thread Index |
Old Index