On Fri, May 04, 2007 at 03:27:53AM -0700, Clint Pachl wrote: > I'm curious if the flag bits, shown for each interface with ifconfig(8), > can be decoded in order to reveal the characteristics of NICs, such as > hardware RX/TX checksums and VLAN. >
they are already decoded in the string, nothing is hiding here ;) bge0: flags=8943<UP,BROADCAST,RUNNING,PROMISC,SIMPLEX,MULTICAST> mtu 1500 see src/sys/net/if.h: UP 0x1 | BROADCAST 0x2 | RUNNING 0x40 | PROMISC 0x100 | SIMPLEX 0x800 |MULTICAST 0x8000 = 0x8943 you're looking for the capabilities field but we do not export it to userland. you have to trust the manpages or look at the drivers for "if_capabilities"/IFFCAP_. reyk