From mboxrd@z Thu Jan 1 00:00:00 1970 From: Thomas Graf Subject: Re: [PATCH 3/7] [IP] RULE: Add ifdef to FIB_RULE_INVERT since it is missing. Date: Tue, 5 Dec 2006 11:42:31 +0100 Message-ID: <20061205104231.GX8693@postel.suug.ch> References: <11653137331688-git-send-email-nakam@linux-ipv6.org> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Cc: shemminger@osdl.org, netdev@vger.kernel.org Return-path: Received: from postel.suug.ch ([194.88.212.233]:42358 "EHLO postel.suug.ch" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S937498AbWLEKmK (ORCPT ); Tue, 5 Dec 2006 05:42:10 -0500 To: Masahide NAKAMURA Content-Disposition: inline In-Reply-To: <11653137331688-git-send-email-nakam@linux-ipv6.org> Sender: netdev-owner@vger.kernel.org List-Id: netdev.vger.kernel.org * Masahide NAKAMURA 2006-12-05 19:15 > Signed-off-by: Masahide NAKAMURA > --- > ip/iprule.c | 4 ++++ > 1 files changed, 4 insertions(+), 0 deletions(-) > > diff --git a/ip/iprule.c b/ip/iprule.c > index c584b18..1da64b8 100644 > --- a/ip/iprule.c > +++ b/ip/iprule.c > @@ -83,8 +83,10 @@ int print_rule(const struct sockaddr_nl > else > fprintf(fp, "0:\t"); > > +#ifdef FIB_RULE_INVERT > if (r->rtm_flags & FIB_RULE_INVERT) > fprintf(fp, "not "); > +#endif > > if (tb[RTA_SRC]) { > if (r->rtm_src_len != host_len) { > @@ -224,7 +226,9 @@ static int iprule_modify(int cmd, int ar > > while (argc > 0) { > if (strcmp(*argv, "not") == 0) { > +#ifdef FIB_RULE_INVERT > req.r.rtm_flags |= FIB_RULE_INVERT; > +#endif > } else if (strcmp(*argv, "from") == 0) { > inet_prefix dst; > NEXT_ARG(); It's missing because you removed it.