From: David Miller <davem@davemloft.net>
To: ja@ssi.bg
Cc: netdev@vger.kernel.org
Subject: Re: [PATCH 2/4] ipv4: fix route deletion for IPs on many subnets
Date: Fri, 18 Mar 2011 21:57:51 -0700 (PDT) [thread overview]
Message-ID: <20110318.215751.108772214.davem@davemloft.net> (raw)
In-Reply-To: <alpine.LFD.2.00.1103190113420.1678@ja.ssi.bg>
From: Julian Anastasov <ja@ssi.bg>
Date: Sat, 19 Mar 2011 01:17:01 +0200 (EET)
> + if (ifa->ifa_flags & IFA_F_SECONDARY) {
> prim = inet_ifa_byprefix(in_dev, any, ifa->ifa_mask);
> if (prim == NULL) {
> printk(KERN_WARNING "fib_del_ifaddr: bug: prim == NULL\n");
> return;
> }
> + if (iprim && iprim != prim) {
> + printk(KERN_WARNING "fib_del_ifaddr: bug: iprim != prim\n");
> + return;
> + }
> + } else if (!ipv4_is_zeronet(any) &&
> + (any != ifa->ifa_local || ifa->ifa_prefixlen < 32)) {
> + fib_magic(RTM_DELROUTE,
> + dev->flags & IFF_LOOPBACK ? RTN_LOCAL : RTN_UNICAST,
> + any, ifa->ifa_prefixlen, prim);
> + subnet = 1;
> }
>
> /* Deletion is more complicated than add.
> @@ -755,6 +769,49 @@ static void fib_del_ifaddr(struct in_ifa
...
> + /* Ignore ifa1 if it uses different primary IP (prefsrc) */
> + if (ifa1->ifa_flags & IFA_F_SECONDARY) {
> + /* Another address from our subnet? */
...
> + ifa1->ifa_mask != prim1->ifa_mask ||
> + !inet_ifa_match(ifa1->ifa_address, prim1))
> + prim1 = inet_ifa_byprefix(in_dev,
> + ifa1->ifa_address,
> + ifa1->ifa_mask);
Julian there exists all kinds of incorrect indentation in this patch,
could you please fix it up?
Thank you.
next prev parent reply other threads:[~2011-03-19 4:57 UTC|newest]
Thread overview: 4+ messages / expand[flat|nested] mbox.gz Atom feed top
2011-03-18 23:17 [PATCH 2/4] ipv4: fix route deletion for IPs on many subnets Julian Anastasov
2011-03-19 4:57 ` David Miller [this message]
2011-03-19 21:41 ` Julian Anastasov
2011-03-19 22:08 ` David Miller
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=20110318.215751.108772214.davem@davemloft.net \
--to=davem@davemloft.net \
--cc=ja@ssi.bg \
--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 a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).