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] [day] [month] [year] [list]
Message-ID: <6ea8a63f-dbf9-bc30-82f1-1a199ff1d1bc@gmail.com>
Date:   Sun, 12 Jun 2022 09:55:04 -0600
From:   David Ahern <dsahern@...il.com>
To:     Jeffrey Ji <jeffreyjilinux@...il.com>,
        Stephen Hemminger <stephen@...workplumber.org>
Cc:     Brian Vazquez <brianvv@...gle.com>, netdev@...r.kernel.org,
        Jeffrey Ji <jeffreyji@...gle.com>
Subject: Re: [PATCH iproute2-next v2] show rx_otherehost_dropped stat in ip
 link show

On 6/9/22 3:05 PM, Jeffrey Ji wrote:
> From: Jeffrey Ji <jeffreyji@...gle.com>
> 
> This stat was added in commit 794c24e9921f ("net-core: rx_otherhost_dropped to core_stats")
> 
> Tested: sent packet with wrong MAC address from 1
> network namespace to another, verified that counter showed "1" in
> `ip -s -s link sh` and `ip -s -s -j link sh`
> 
> Signed-off-by: Jeffrey Ji <jeffreyji@...gle.com>
> ---
> changelog:
> v2: otherhost <- otherhost_dropped
> 
>  ip/ipaddress.c | 18 +++++++++++++++---
>  1 file changed, 15 insertions(+), 3 deletions(-)
> 

...

> @@ -825,6 +834,9 @@ void print_stats64(FILE *fp, struct rtnl_link_stats64 *s,
>  			print_num(fp, cols[5], s->rx_over_errors);
>  			if (s->rx_nohandler)
>  				print_num(fp, cols[6], s->rx_nohandler);
> +			if (s->rx_otherhost_dropped)
> +				print_num(fp, cols[7],
> +				s->rx_otherhost_dropped);

brought  that up to 1-line and applied to iproute2-next


Powered by blists - more mailing lists

Powered by Openwall GNU/*/Linux Powered by OpenVZ