dhcpcd-discuss

Re: Addresses not deleted when cable pulled

jobhunts02

Mon Mar 19 22:58:55 2018

I tried your patch and always get a pid of 0.  Is that expected behavior?


Thank you.




-----Original Message-----
From: Roy Marples <roy@xxxxxxxxxxxx>
To: jobhunts02 <jobhunts02@xxxxxxx>; dhcpcd-discuss <dhcpcd-discuss@xxxxxxxxxxxx>
Sent: Tue, Mar 6, 2018 1:06 am
Subject: Re: [dhcpcd-discuss] Addresses not deleted when cable pulled

On 06/03/2018 02:43, jobhunts02@xxxxxxx wrote:
> Thankyou very much for that information.  I do not have to pull the 
> cable to see the "deleted" message in dhcpcd.log.
> 
> On another run, in /var/log/messages:
> Mar  6 02:14:59 2018 4550V2 ntpd[7371]: Deleting interface #3 eth1, 
> 192.168.2.150#123, interface stats: received=0, sent=0, dropped=0, 
> active_time=4 secs
> 
> This occurs before the dhcpcd.log shows it was deleted:
> Mar 06 02:15:17 [6615]: eth1: deleted IP address 192.168.2.150/24
> 
> I will look into why this 3rd party software deleted it.

To make life easier I added this patch:
https://roy.marples.name/git/dhcpcd.git/commit/?id=c8d1a4150812b2d01c9cc2e5272a2ba19bc0196f

Now, the process id which deleted the address will be logged.

Good luck!

Roy



Follow-Ups:
Re: Addresses not deleted when cable pulledRoy Marples
References:
Re: Addresses not deleted when cable pulledRoy Marples
Archive administrator: postmaster@marples.name