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 for Android: free password hash cracker in your pocket
[<prev] [next>] [<thread-prev] [day] [month] [year] [list]
Date:	Mon, 13 Sep 2010 08:24:19 -0700
From:	Stephen Hemminger <shemminger@...tta.com>
To:	Ulrich Weber <uweber@...aro.com>
Cc:	netdev@...r.kernel.org
Subject: Re: [PATCH] iproute2: display xfrm socket policy direction

On Mon, 13 Sep 2010 15:29:05 +0200
Ulrich Weber <uweber@...aro.com> wrote:

> 
> display socket policy direction
> 
> Signed-off-by: Ulrich Weber <uweber@...aro.com>
> ---
>  ip/ipxfrm.c |    8 +++++++-
>  1 files changed, 7 insertions(+), 1 deletions(-)
> 
> diff --git a/ip/ipxfrm.c b/ip/ipxfrm.c
> index 78e1926..b3ff20b 100644
> --- a/ip/ipxfrm.c
> +++ b/ip/ipxfrm.c
> @@ -861,7 +861,13 @@ void xfrm_policy_info_print(struct xfrm_userpolicy_info *xpinfo,
>  	STRBUF_CAT(buf, "\t");
>  
>  	fputs(buf, fp);
> -	fprintf(fp, "dir ");
> +	if (xpinfo->dir >= XFRM_POLICY_MAX) {
> +		xpinfo->dir -= XFRM_POLICY_MAX;
> +		fprintf(fp, "socket "); 
> +	}
> +	else
> +		fprintf(fp, "dir ");
> +
>  	switch (xpinfo->dir) {
>  	case XFRM_POLICY_IN:
>  		fprintf(fp, "in");

Applied (with cleanup) thanks.

-- 
--
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

Powered by Openwall GNU/*/Linux Powered by OpenVZ