James Cammarata a écrit :> From: James Cammarata <jimi@sngx.net>>> Added the ability to write to /proc/net/dev in order to clear the > interface counters for a given interface. The ability to zero out > counters (especially the error counters) is extremely useful when > troubleshooting interface issues. Now diffed against 2.6.25.4, and > added some sanity checking.>Hello James

1) Every call to get_proc_net() should be paired with a call to put_net(), or else you leak struct net.

2) I am not sure this is the right way to do this... Did you consider to extend ethtool instead ?