dhcpcd-discuss

Re: 7.1.0 vs 6.11.5 routes after ipv4ll conflict.

Chuck Forbish

Thu Feb 28 19:50:54 2019

Roy,

I decided to collect output of four commands before and after the conflict.

These are the commands:
dhcpcd --version
ip route
ifconfig
route

When 7.1.0 fails, "ip route" reports nothing.  The "route" command at least shows header information.

Attached are the results.

-Chuck

________________________________
From: Roy Marples <roy@xxxxxxxxxxxx>
Sent: Tuesday, February 26, 2019 6:35:14 AM
To: Chuck Forbish; dhcpcd-discuss@xxxxxxxxxxxx
Cc: Kenny Napier
Subject: Re: [dhcpcd-discuss] 7.1.0 vs 6.11.5 routes after ipv4ll conflict.

Hi Chuck

On 25/02/2019 19:00, Chuck Forbish wrote:
> I noticed with the 7.1.0 has an issue with no routes if link local
> address has a conflict.  Version 6.11.5 does not have the issue.
>
> I noticed a difference in serial output between versions 6.11.5 and
> 7.1.0.  In version 6.11.5 routes get deleted, then changed.  Whereas in
> version 7.1.0 they just get changed.  Attached are the console output of
> both.
>
> I noticed the order of if_route() calls, in 7.1.0, is add then delete.
> Because of this we decided to experiment with modifying src/route.c to
> change this.  With this modification the route issue went away.  Patch
> file with this change is attached.
>
> I do not know if this is the preferred fix.  Especially since there is a
> difference between version 6.11.5 and 7.1.0 in logs.

You've not actually said what the issue is?
Can you provide the output of `ip route` for both 6.x and 7.x and state
what's wrong and what you think is correct or what the problem is please?

Thanks

Roy
# dhcpcd --version
dhcpcd 6.11.5
Copyright (c) 2006-2016 Roy Marples
Compiled in features: INET IPv4LL INET6 DHCPv6 AUTH

# ip route
169.254.0.0/16 dev eth0 scope link  src 169.254.227.83  metric 202 

# ifconfig
eth0      Link encap:Ethernet  HWaddr 00:0E:3D:64:81:30  
          inet addr:169.254.227.83  Bcast:169.254.255.255  Mask:255.255.0.0
          inet6 addr: fe80::20e:3dff:fe64:8130/64 Scope:Link
          UP BROADCAST RUNNING MULTICAST  MTU:1500  Metric:1
          RX packets:399 errors:0 dropped:0 overruns:0 frame:0
          TX packets:544 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:1000 
          RX bytes:69401 (67.7 KiB)  TX bytes:251510 (245.6 KiB)

lo        Link encap:Local Loopback  
          inet addr:127.0.0.1  Mask:255.0.0.0
          inet6 addr: ::1/128 Scope:Host
          UP LOOPBACK RUNNING  MTU:65536  Metric:1
          RX packets:3713 errors:0 dropped:0 overruns:0 frame:0
          TX packets:3713 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:1000 
          RX bytes:453843 (443.2 KiB)  TX bytes:453843 (443.2 KiB)

# route
Kernel IP routing table
Destination     Gateway         Genmask         Flags Metric Ref    Use Iface
169.254.0.0     *               255.255.0.0     U     202    0        0 eth0

# dhcpcd --version
dhcpcd 7.1.0
Copyright (c) 2006-2019 Roy Marples
Compiled in features: INET ARP ARPing IPv4LL INET6 DHCPv6 AUTH

# ip route

# ifconfig
eth0      Link encap:Ethernet  HWaddr 00:DA:66:8E:41:FA  
          inet addr:169.254.124.31  Bcast:169.254.255.255  Mask:255.255.0.0
          inet6 addr: fe80::2da:66ff:fe8e:41fa/64 Scope:Link
          UP BROADCAST RUNNING MULTICAST  MTU:1500  Metric:1
          RX packets:490 errors:0 dropped:0 overruns:0 frame:0
          TX packets:628 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:1000 
          RX bytes:87901 (85.8 KiB)  TX bytes:283928 (277.2 KiB)

lo        Link encap:Local Loopback  
          inet addr:127.0.0.1  Mask:255.0.0.0
          inet6 addr: ::1/128 Scope:Host
          UP LOOPBACK RUNNING  MTU:65536  Metric:1
          RX packets:5148 errors:0 dropped:0 overruns:0 frame:0
          TX packets:5148 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:1000 
          RX bytes:535285 (522.7 KiB)  TX bytes:535285 (522.7 KiB)

# route
Kernel IP routing table
Destination     Gateway         Genmask         Flags Metric Ref    Use Iface

# dhcpcd --version
dhcpcd 6.11.5
Copyright (c) 2006-2016 Roy Marples
Compiled in features: INET IPv4LL INET6 DHCPv6 AUTH

# ip route
default dev eth0 scope link  src 169.254.140.130  metric 202 
169.254.0.0/16 dev eth0 scope link  src 169.254.140.130  metric 202 

# ifconfig
eth0      Link encap:Ethernet  HWaddr 00:0E:3D:64:81:30  
          inet addr:169.254.140.130  Bcast:169.254.255.255  Mask:255.255.0.0
          inet6 addr: fe80::20e:3dff:fe64:8130/64 Scope:Link
          UP BROADCAST RUNNING MULTICAST  MTU:1500  Metric:1
          RX packets:176 errors:0 dropped:0 overruns:0 frame:0
          TX packets:252 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:1000 
          RX bytes:25478 (24.8 KiB)  TX bytes:108355 (105.8 KiB)

lo        Link encap:Local Loopback  
          inet addr:127.0.0.1  Mask:255.0.0.0
          inet6 addr: ::1/128 Scope:Host
          UP LOOPBACK RUNNING  MTU:65536  Metric:1
          RX packets:2419 errors:0 dropped:0 overruns:0 frame:0
          TX packets:2419 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:1000 
          RX bytes:351862 (343.6 KiB)  TX bytes:351862 (343.6 KiB)

# route
Kernel IP routing table
Destination     Gateway         Genmask         Flags Metric Ref    Use Iface
default         *               0.0.0.0         U     202    0        0 eth0
169.254.0.0     *               255.255.0.0     U     202    0        0 eth0
# dhcpcd --version
dhcpcd 7.1.0
Copyright (c) 2006-2019 Roy Marples
Compiled in features: INET ARP ARPing IPv4LL INET6 DHCPv6 AUTH

# ip route
default dev eth0 scope link  src 169.254.238.216  metric 202 
169.254.0.0/16 dev eth0 scope link  src 169.254.238.216  metric 202 

# ifconfig
eth0      Link encap:Ethernet  HWaddr 00:DA:66:8E:41:FA  
          inet addr:169.254.238.216  Bcast:169.254.255.255  Mask:255.255.0.0
          inet6 addr: fe80::2da:66ff:fe8e:41fa/64 Scope:Link
          UP BROADCAST RUNNING MULTICAST  MTU:1500  Metric:1
          RX packets:196 errors:0 dropped:0 overruns:0 frame:0
          TX packets:296 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:1000 
          RX bytes:29293 (28.6 KiB)  TX bytes:153093 (149.5 KiB)

lo        Link encap:Local Loopback  
          inet addr:127.0.0.1  Mask:255.0.0.0
          inet6 addr: ::1/128 Scope:Host
          UP LOOPBACK RUNNING  MTU:65536  Metric:1
          RX packets:3981 errors:0 dropped:0 overruns:0 frame:0
          TX packets:3981 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:1000 
          RX bytes:454391 (443.7 KiB)  TX bytes:454391 (443.7 KiB)

# route
Kernel IP routing table
Destination     Gateway         Genmask         Flags Metric Ref    Use Iface
default         *               0.0.0.0         U     202    0        0 eth0
169.254.0.0     *               255.255.0.0     U     202    0        0 eth0


Follow-Ups:
Re: 7.1.0 vs 6.11.5 routes after ipv4ll conflict.Roy Marples
References:
7.1.0 vs 6.11.5 routes after ipv4ll conflict.Chuck Forbish
Re: 7.1.0 vs 6.11.5 routes after ipv4ll conflict.Roy Marples
Archive administrator: postmaster@marples.name