Closed gutjuri closed 1 year ago
Hi gutjuri,
These bit flags are actually in go already, in the golang.org/x/sys/unix
package. Here's how we use those constants in node_exporter:
Thanks for this info. I wasn't aware of that, I guess this makes this PR redundant
@safchain Would you like to merge this PR into your project? Otherwise I'd close this PR. Or are more changes required?
Currently, one can acquire a bitmask of supported modes of operation by using the
GetCmdMapped
function:Unfortunately, there is no information on what the individual bits mean.
In this PR, I added the names of some supported capabilities (which I got from here: https://github.com/lyonel/lshw/blob/fdab06ac0b190ea0aa02cd468f904ed69ce0d9f1/src/core/network.cc#L113). This enables users of this library to seamlessly check, which capacities the interface in question supports.
closes #46