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
This commit is contained in:
Navdeep Parhar 2023-07-19 18:05:12 -07:00
parent 21e45c30c3
commit 47b1fef6fb

View file

@ -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("<");