netdev.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* Netlink, route monitoring, RTM_DELROUTE not issued for ppp peer address. Bug or feature?
@ 2012-04-13 12:10 Denys Fedoryshchenko
  2012-04-13 13:59 ` SV: " Stian Skjelstad
  0 siblings, 1 reply; 11+ messages in thread
From: Denys Fedoryshchenko @ 2012-04-13 12:10 UTC (permalink / raw)
  To: netdev

Hi

I am trying to implement my own routing daemon, and using 
RTMGRP_IPV4_ROUTE to monitor routes.
I notice, that on PPPoE, when interface disappearing, RTM_DELROUTE will 
be sent to listener only for local address, but nothing about peer 
address attached to this interface.

CBSS_PPPoE ~ # ifconfig ppp0
ppp0      Link encap:Point-to-Point Protocol
           inet addr:172.16.146.1  P-t-P:172.16.146.10  
Mask:255.255.255.255
           UP POINTOPOINT RUNNING NOARP MULTICAST  MTU:1200  Metric:1
           RX packets:40439 errors:0 dropped:0 overruns:0 frame:0
           TX packets:63211 errors:0 dropped:0 overruns:0 carrier:0
           collisions:0 txqueuelen:3
           RX bytes:3584507 (3.4 MiB)  TX bytes:47180929 (44.9 MiB)

CBSS_PPPoE ~ # pppkill tek234@visp.net.lb  (this is killing pppd 
process for ppp0 interface)

ip monitor route will show only RTM_DELROUTE for RTN_LOCAL, but nothing 
about RTN_UNICAST for 172.16.146.10.
"Deleted local 172.16.146.1 dev ppp0  table local  proto kernel  scope 
host  src 172.16.146.1"
My program also receive same.

Is it a bug, that no RTM_DELROUTE issued for peer ip address? Or should 
i monitor also RTMGRP_IPV4_IFADDR for link disappearance?

Thanks for help!

^ permalink raw reply	[flat|nested] 11+ messages in thread

end of thread, other threads:[~2012-04-17  8:24 UTC | newest]

Thread overview: 11+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2012-04-13 12:10 Netlink, route monitoring, RTM_DELROUTE not issued for ppp peer address. Bug or feature? Denys Fedoryshchenko
2012-04-13 13:59 ` SV: " Stian Skjelstad
2012-04-16 10:37   ` Denys Fedoryshchenko
2012-04-16 15:19     ` Stephen Hemminger
2012-04-16 16:48       ` Denys Fedoryshchenko
2012-04-16 20:21         ` Stian Skjelstad
2012-04-16 21:00           ` Stephen Hemminger
2012-04-17  8:24           ` David Lamparter
2012-04-16 18:40     ` SV: " David Miller
2012-04-16 19:11       ` Denys Fedoryshchenko
2012-04-16 19:29       ` Stephen Hemminger

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).