Sergey Vinogradov <boo...@lazybytes.org> writes:

> Hi,
> I've written a tiny-tiny patch, which adds the '-t' flag to
> ifconfig(8). It modifies the output to display IPv4 netmasks in dotted
> decimal notation:
[...]
> % ifconfig -t msk0
[...]
>         inet 10.10.0.1 netmask 255.255.255.0 broadcast 10.10.0.255

Isn't netstat(8) a better place for such an option? domask() already
converts netmask to CIDR notation if possible, e.g. `netstat -ni'

   10.10.0.1/24
   10.10.0.1&0xff00ff00

Unfortunately, Network column is always truncated to 13 characters even
with -W flag while it can be up to 26 characters long with `-n' flag or
more with a symbolic network name.
_______________________________________________
freebsd-current@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-current
To unsubscribe, send any mail to "freebsd-current-unsubscr...@freebsd.org"

Reply via email to