summaryrefslogtreecommitdiffstats
path: root/sysdep/linux/netlink/netlink.c
diff options
context:
space:
mode:
authorMartin Mares <mj@ucw.cz>2000-03-01 12:29:30 +0100
committerMartin Mares <mj@ucw.cz>2000-03-01 12:29:30 +0100
commitd07bab399735ee80205637f8e180e7595e0c0a67 (patch)
tree3d3c871c8fa5714da5215b8b785e028b610bc4e0 /sysdep/linux/netlink/netlink.c
parentef0883a12fc699fbcef61f56fe8445f5e2ac1bb7 (diff)
downloadbird-d07bab399735ee80205637f8e180e7595e0c0a67.tar
bird-d07bab399735ee80205637f8e180e7595e0c0a67.zip
ipa_opposite hack is not applicable in IPv6.
Diffstat (limited to 'sysdep/linux/netlink/netlink.c')
-rw-r--r--sysdep/linux/netlink/netlink.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/sysdep/linux/netlink/netlink.c b/sysdep/linux/netlink/netlink.c
index fd8689d..bdc879f 100644
--- a/sysdep/linux/netlink/netlink.c
+++ b/sysdep/linux/netlink/netlink.c
@@ -374,9 +374,9 @@ nl_parse_addr(struct nlmsghdr *h)
}
else
{
+#ifndef IPV6
if (i->ifa_prefixlen == BITS_PER_IP_ADDRESS - 2)
ifa.opposite = ipa_opposite(ifa.ip);
-#ifndef IPV6
if ((ifi->flags & IF_BROADCAST) && a[IFA_BROADCAST])
{
memcpy(&ifa.brd, RTA_DATA(a[IFA_BROADCAST]), sizeof(ifa.brd));