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 8:31 PM, Roy Marples <roy%marples.name@localhost> wrote:
> On 2016-08-09 11:45, Ryota Ozaki wrote:
>>
>> On Tue, Aug 9, 2016 at 6:58 PM, Kengo NAKAHARA <k-nakahara%iij.ad.jp@localhost>
>> wrote:
>>>
>>> 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.
>
>
> So there are!
> I refreshed the patch for -current to try and address this.
> http://www.netbsd.org/~roy/in6_ifa_route.patch
>
> Can you test it please as rump still doens't work for me?

This is the new diff. There are still less routes...

BTW we're going to take a short summer vacation.
We wouldn't reply timely for several days.

  ozaki-r

====
--- /tmp/ok2    2016-08-09 19:37:02.000000000 +0900
+++ /tmp/bad2   2016-08-10 14:46:18.000000000 +0900
@@ -1,29 +1,27 @@
+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:2bff:fec9:7a22               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:bfff:fe8f:ad8c               link#3
       UHl         -        -      -  lo0
+tc-so:fe80::%gif0/64
fe80::5496:e462:3142:360       UC          -        -      -  gif0
+tc-so:fe80::5496:e462:3142:360                gif0
       UHl         -        -      -  lo0
+tc-so:fe80::%gif1/64
fe80::5496:e462:3142:360       UC          -        -      -  gif1
+tc-so:fe80::5496:e462:3142:360                gif1
       UHl         -        -      -  lo0
+tc-so:fe80::%gif2/64
fe80::5496:e462:3142:360       UC          -        -      -  gif2
+tc-so:fe80::5496:e462:3142:360                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