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-next>] [day] [month] [year] [list]
Date:	Tue, 6 Jan 2009 22:08:39 -0400
From:	"Huascar Tejeda" <htejeda@...il.com>
To:	netdev@...r.kernel.org
Subject: [PATCH] net: reset network device counters on the fly

Hello everyone,

This is my first post to the mailing list and also my first kernel patch.

There was an scenario where I needed to clear network device counters
without shutting down the interface.
With this patch I add this functionality to /proc/net/dev.

Usage example:
echo clear eth0 > /proc/net/dev
echo clear all > /proc/net/dev

Thanks for your comments and please feel free to reply with any
suggestions you may have.

Huascar Tejeda

Download attachment "reset_netdev_counters.patch" of type "application/octet-stream" (2488 bytes)

Powered by blists - more mailing lists

Powered by Openwall GNU/*/Linux Powered by OpenVZ