summaryrefslogtreecommitdiffstats
path: root/zebra/irdp_main.c
diff options
context:
space:
mode:
authorPaul Jakma <paul.jakma@sun.com>2007-02-26 17:11:45 +0000
committerPaul Jakma <paul.jakma@sun.com>2007-02-26 17:11:45 +0000
commitff1dd550b01fd6bb4aa137cfee282e6175f89c50 (patch)
tree05900140de1813f62a124ee98ce4c3329546d6e7 /zebra/irdp_main.c
parentdef09df7d1df2f4583c68b5b7f02375f5a2e9dc7 (diff)
downloadquagga-ff1dd550b01fd6bb4aa137cfee282e6175f89c50.tar.bz2
quagga-ff1dd550b01fd6bb4aa137cfee282e6175f89c50.tar.xz
[zebra] IRDP should ignore non-IPv4 addresses
2007-02-26 Robert Olsson <Robert.Olsson@data.slu.se> * irdp_main.c: (irdp_send_thread) Skip non-AF_INET addresses, i.e. do not try interpret IPv6 addresses as IPv4 addresses to broadcast in IRDP announcements..
Diffstat (limited to 'zebra/irdp_main.c')
-rw-r--r--zebra/irdp_main.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/zebra/irdp_main.c b/zebra/irdp_main.c
index e4e71cf3..55106699 100644
--- a/zebra/irdp_main.c
+++ b/zebra/irdp_main.c
@@ -244,6 +244,10 @@ int irdp_send_thread(struct thread *t_advert)
for (ALL_LIST_ELEMENTS (ifp->connected, node, nnode, ifc))
{
p = ifc->address;
+
+ if (p->family != AF_INET)
+ continue;
+
irdp_advertisement(ifp, p);
irdp->irdp_sent++;
}