diff options
author | Navdeep Parhar <np@FreeBSD.org> | 2023-07-20 01:05:12 +0000 |
---|---|---|
committer | Navdeep Parhar <np@FreeBSD.org> | 2023-07-20 17:26:18 +0000 |
commit | 47b1fef6fb2299e5d1d7878c412f1dbd3effbc3d (patch) | |
tree | 42f446a9d22258fb3e08310e711764a4c89f25fa | |
parent | 21e45c30c35c9aa732073f725924caf581c93460 (diff) | |
download | src-47b1fef6fb2299e5d1d7878c412f1dbd3effbc3d.tar.gz src-47b1fef6fb2299e5d1d7878c412f1dbd3effbc3d.zip |
ifconfig: Fix the display of capabilities in the netlink based code.
The capabilities in if_capabilities2/if_capenable2 are reported in the
second 32b and were not being displayed correctly. v does not need to
be advanced because v[i / 32] is the correct 32b value already.
Sponsored by: Chelsio Communications
Reviewed by: kib@
Differential Revision: https://reviews.freebsd.org/D41107
-rw-r--r-- | sbin/ifconfig/ifconfig_netlink.c | 2 |
1 files changed, 0 insertions, 2 deletions
diff --git a/sbin/ifconfig/ifconfig_netlink.c b/sbin/ifconfig/ifconfig_netlink.c index f09023c1477c..0f449b7aae44 100644 --- a/sbin/ifconfig/ifconfig_netlink.c +++ b/sbin/ifconfig/ifconfig_netlink.c @@ -89,8 +89,6 @@ print_bits(const char *btype, uint32_t *v, const int v_count, for (int i = 0; i < v_count * 32; i++) { bool is_set = v[i / 32] & (1 << (i % 32)); - if (i == 31) - v++; if (is_set) { if (num++ == 0) printf("<"); |