lists.openwall.net   lists  /  announce  owl-users  owl-dev  john-users  john-dev  passwdqc-users  yescrypt  popa3d-users  /  oss-security  kernel-hardening  musl  sabotage  tlsify  passwords  /  crypt-dev  xvendor  /  Bugtraq  Full-Disclosure  linux-kernel  linux-netdev  linux-ext4  linux-hardening  linux-cve-announce  PHC 
Open Source and information security mailing list archives
 
Hash Suite: Windows password security audit tool. GUI, reports in PDF.
[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Date:	Tue, 5 Dec 2006 11:42:31 +0100
From:	Thomas Graf <tgraf@...g.ch>
To:	Masahide NAKAMURA <nakam@...ux-ipv6.org>
Cc:	shemminger@...l.org, netdev@...r.kernel.org
Subject: Re: [PATCH 3/7] [IP] RULE: Add ifdef to FIB_RULE_INVERT since it is missing.

* Masahide NAKAMURA <nakam@...ux-ipv6.org> 2006-12-05 19:15
> Signed-off-by: Masahide NAKAMURA <nakam@...ux-ipv6.org>
> ---
>  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.
-
To unsubscribe from this list: send the line "unsubscribe netdev" in
the body of a message to majordomo@...r.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html

Powered by blists - more mailing lists