[<prev] [next>] [thread-next>] [day] [month] [year] [list]
Message-ID: <8986ed37b55c756ecdeec0315f73e63a@visp.net.lb>
Date: Fri, 13 Apr 2012 15:10:34 +0300
From: Denys Fedoryshchenko <denys@...p.net.lb>
To: <netdev@...r.kernel.org>
Subject: Netlink, route monitoring, RTM_DELROUTE not issued for ppp peer address. Bug or feature?
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@...p.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!
--
To unsubscribe from this list: send the line "unsubscribe netdev" in
the body of a message to majordomo@...r.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Powered by blists - more mailing lists