Sergey Vinogradov <boogie_at_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.Received on Tue Apr 12 2011 - 10:26:48 UTC
This archive was generated by hypermail 2.4.0 : Wed May 19 2021 - 11:40:13 UTC