dhcpcd-discuss

Re: dhcpcd and NOARP on the itnerface

Roy Marples

Mon Jun 24 08:32:36 2013

Hi Kobi

On 23/06/2013 16:27, Kobi Cohen-Arazi wrote:
Hi Folks,

In my environment, I'm setting NOARP on the wireless interface and
then running dhcpcd.
After dhcpcd is done, I'm clearing NOARP flag from the wireless
interface. Both setting and clearing the NOARP flag is done from C
code, kernel mode.
What I see is some kind of a race condition where even after I clear
this NOARP flag from the interface, ARP table is not updated.

I need to manually ifconfig "wlan0 -arp" and "wlano arp" (from the
shell) in order to bring the interface back to a normal operation.
i.e. have ARP table updated with new entries.

Any idea if the above sequence might trigger some kind of a race
condition where the whole ARP state is busted?

dhcpcd just checks the existence of the flag IFF_NOARP on the interface for the sole purpose of disabling the ARP duplicate address check and optionally forcing a route through an interface (this action is logged with LOG_WARNING).

dhcpcd does't touch the ARP table itself, nor affect the kernels ability to do so

Thanks

Roy

References:
dhcpcd and NOARP on the itnerfaceKobi Cohen-Arazi
Archive administrator: postmaster@marples.name