| 1 |
= Rethtool |
| 2 |
|
| 3 |
Have you ever needed to get at some details about a network interface from |
| 4 |
inside a Ruby script, but got stuck trying to parse the output of ethtool? |
| 5 |
If so, you're one-in-a-million, but at least you don't have to write an |
| 6 |
ethtool parser any more. use Rethtool instead! |
| 7 |
|
| 8 |
At present, Rethtool only supports a couple of things: |
| 9 |
|
| 10 |
* Retrieve various details about the interface (link speed, duplex, etc). |
| 11 |
|
| 12 |
* Determine if the link is currently up or down. |
| 13 |
|
| 14 |
Adding extra SIOCETHTOOL features is relatively straightforward, thanks to |
| 15 |
cstruct and the base infrastructure already in place, so feel free to have a |
| 16 |
hack and send me a patch. |
| 17 |
|
| 18 |
|
| 19 |
== Contributing to rethtool |
| 20 |
|
| 21 |
Send me patches via e-mail, please ([email protected]). I might |
| 22 |
eventually notice a pull request on github, but e-mail goes straight to my |
| 23 |
frontal lobe. |
| 24 |
|
| 25 |
|
| 26 |
== Copyright |
| 27 |
|
| 28 |
Copyright (C) 2011 Matt Palmer <[email protected]> |
| 29 |
|
| 30 |
This program is free software; you can redistribute it and/or modify it |
| 31 |
under the terms of the GNU General Public License version 3, as |
| 32 |
published by the Free Software Foundation. |
| 33 |
|
| 34 |
This program is distributed in the hope that it will be useful, but |
| 35 |
WITHOUT ANY WARRANTY; without even the implied warranty of |
| 36 |
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU |
| 37 |
General Public License for more details. |
| 38 |
|
| 39 |
You should have received a copy of the GNU General Public License along |
| 40 |
with this program; if not, see <http://www.gnu.org/licences/> |