From 3eb1731bbd566e369c76a2030b003d751d86941d Mon Sep 17 00:00:00 2001 From: "net[shemminger]!shemminger" Date: Mon, 7 Feb 2005 18:28:31 +0000 Subject: [PATCH] Import patch family_check_when_flushing (Logical change 1.139) --- ip/ipaddress.c | 3 +++ 1 file changed, 3 insertions(+) diff --git a/ip/ipaddress.c b/ip/ipaddress.c index 2dc38b6a..8a49a84a 100644 --- a/ip/ipaddress.c +++ b/ip/ipaddress.c @@ -330,6 +330,9 @@ int print_addrinfo(const struct sockaddr_nl *who, struct nlmsghdr *n, } } + if (filter.family && filter.family != ifa->ifa_family) + return 0; + if (filter.flushb) { struct nlmsghdr *fn; if (NLMSG_ALIGN(filter.flushp) + n->nlmsg_len > filter.flushe) {