Current-Users archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

Re: Output format improvment for ifconfig(8)



On Thu, 1 Nov 2012, Simon Burge wrote:

Paul Goyette wrote:

I'd like to make similar changes to ifconfig(8) for the capabilities,
enabled, and flags field.

...

--- ifconfig.out.old    2012-10-31 16:20:21.000000000 -0700
+++ ifconfig.out.new    2012-10-31 16:20:58.000000000 -0700
@@ -1,6 +1,10 @@
  wm0: flags=8843<UP,BROADCAST,RUNNING,SIMPLEX,MULTICAST> mtu 1500
-       
capabilities=7ff80<TSO4,IP4CSUM_Rx,IP4CSUM_Tx,TCP4CSUM_Rx,TCP4CSUM_Tx,UDP4CSUM_Rx,UDP4CSUM_Tx,TCP6CSUM_Rx,TCP6CSUM_Tx,UDP6CSUM_Rx,UDP6CSUM_Tx,TSO6>
CSUM_Tx,TCP6CSUM_Rx,TCP6CSUM_Tx,UDP6CSUM_Rx,UDP6CSUM_Tx,TSO6>
+       capable=7ff80<TSO4,IP4CSUM_Rx,IP4CSUM_Tx,TCP4CSUM_Rx,TCP4CSUM_Tx>

Minor nit - shouldn't that be "capability" instead of "capable"?  The
interface has various capabilities, not various capables.

I did it rather deliberately, for aesthetics/alignment. But it's not really a big deal either way.

:)



-------------------------------------------------------------------------
| Paul Goyette     | PGP Key fingerprint:     | E-mail addresses:       |
| Customer Service | FA29 0E3B 35AF E8AE 6651 | paul at whooppee.com    |
| Network Engineer | 0786 F758 55DE 53BA 7731 | pgoyette at juniper.net |
| Kernel Developer |                          | pgoyette at netbsd.org  |
-------------------------------------------------------------------------


Home | Main Index | Thread Index | Old Index