From: "Stian Skjelstad" <stian@nixia.no>
To: "'Denys Fedoryshchenko'" <denys@visp.net.lb>, <netdev@vger.kernel.org>
Subject: SV: Netlink, route monitoring, RTM_DELROUTE not issued for ppp peer address. Bug or feature?
Date: Fri, 13 Apr 2012 15:59:34 +0200 [thread overview]
Message-ID: <023e01cd197d$a9faba40$fdf02ec0$@no> (raw)
In-Reply-To: <8986ed37b55c756ecdeec0315f73e63a@visp.net.lb>
I've seen the same issue, and got no response so far to that very same question. Have you tested this on older kernels? I have worked around this issue by testing my local copy of routing entries that use 'via'. If they are not routable when after the RTM_DELROUTE event, I autoremove them from my local copy.
Stian Skjelstad
-----Opprinnelig melding-----
Fra: netdev-owner@vger.kernel.org [mailto:netdev-owner@vger.kernel.org] På vegne av Denys Fedoryshchenko
Sendt: 13. april 2012 14:11
Til: netdev@vger.kernel.org
Emne: 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@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!
--
To unsubscribe from this list: send the line "unsubscribe netdev" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html
next prev parent reply other threads:[~2012-04-13 14:11 UTC|newest]
Thread overview: 11+ messages / expand[flat|nested] mbox.gz Atom feed top
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 ` Stian Skjelstad [this message]
2012-04-16 10:37 ` SV: " 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
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to='023e01cd197d$a9faba40$fdf02ec0$@no' \
--to=stian@nixia.no \
--cc=denys@visp.net.lb \
--cc=netdev@vger.kernel.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.