From ff1dd550b01fd6bb4aa137cfee282e6175f89c50 Mon Sep 17 00:00:00 2001 From: Paul Jakma Date: Mon, 26 Feb 2007 17:11:45 +0000 Subject: [zebra] IRDP should ignore non-IPv4 addresses 2007-02-26 Robert Olsson * 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.. --- zebra/ChangeLog | 6 ++++++ zebra/irdp_main.c | 4 ++++ 2 files changed, 10 insertions(+) diff --git a/zebra/ChangeLog b/zebra/ChangeLog index 4139e859..7bdec921 100644 --- a/zebra/ChangeLog +++ b/zebra/ChangeLog @@ -1,3 +1,9 @@ +2007-02-26 Robert Olsson + + * 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.. + 2006-12-13 Andrew J. Schorr * if_ioctl_solaris.c: (if_get_addr) For IPv6, stop assuming 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++; } -- cgit v1.2.1