Discussion:
ethtool/tc for NetBSD?
(too old to reply)
Darren Reed
2016-04-27 13:15:44 UTC
Permalink
Is there a NetBSD equivalent to ethtool(8) on Linux?

reference:
https://github.com/pavel-odintsov/fastnetmon/wiki/Traffic-filtration-using-NIC-capabilities-on-wire-speed-%2810GE,-14Mpps%29
http://linux.die.net/man/8/ethtool

As an example, to drop ICMP packets:

ethtool --config-ntuple eth4 flow-type ip4 proto 1 action -1

... and the NIC drops them all for you, not an interrupt in sight in
response to ICMP (but there's also no logs...)

The other interesting and obscure Linux networking command is "tc".
http://lartc.org/manpages/tc.txt

Cheers,
Darren


--
Posted automagically by a mail2news gateway at muc.de e.V.
Please direct questions, flames, donations, etc. to news-***@muc.de
Michael van Elst
2016-04-27 23:41:24 UTC
Permalink
Post by Darren Reed
Is there a NetBSD equivalent to ethtool(8) on Linux?
https://github.com/pavel-odintsov/fastnetmon/wiki/Traffic-filtration-using-NIC-capabilities-on-wire-speed-%2810GE,-14Mpps%29
http://linux.die.net/man/8/ethtool
That's more a feature of the particular driver. I'm not
aware of any NetBSD driver that supports such features.
There is no API or userland command to control such a
feature. A driver would probably offer some sysctl variable
instead.
Post by Darren Reed
The other interesting and obscure Linux networking command is "tc".
http://lartc.org/manpages/tc.txt
The tc command controls traffic shaping in the Linux kernel which
is somewhat an equivalent to NetBSD's altq.
--
--
Michael van Elst
Internet: ***@serpens.de
"A potential Snark may lurk in every tree."

--
Posted automagically by a mail2news gateway at muc.de e.V.
Please direct questions, flames, donations, etc. to news-***@muc.de
Loading...