diff options
author | bz <bz@FreeBSD.org> | 2016-06-22 12:53:10 +0000 |
---|---|---|
committer | bz <bz@FreeBSD.org> | 2016-06-22 12:53:10 +0000 |
commit | c6ed0e2c5f077eb6eea41782962c317da97cc6cc (patch) | |
tree | 646475ec857eb762e8a70fdcfad54adf235a64ca | |
parent | 4c327142ba2577ba04fa3df00bb2c992d4420495 (diff) | |
download | FreeBSD-src-c6ed0e2c5f077eb6eea41782962c317da97cc6cc.zip FreeBSD-src-c6ed0e2c5f077eb6eea41782962c317da97cc6cc.tar.gz |
Add more fields to if_debug.c for ddb(4) 'show ifnet'; resort
some fields to match the order in the struct. Especially needed
if_pf_kif to do pf(4) VNET debugging.
Approved by: re (marius)
Obtained from: projects/vnet
MFC after: 1 week
Sponsored by: The FreeBSD Foundation
-rw-r--r-- | sys/net/if_debug.c | 13 |
1 files changed, 10 insertions, 3 deletions
diff --git a/sys/net/if_debug.c b/sys/net/if_debug.c index ad3b575..392d899 100644 --- a/sys/net/if_debug.c +++ b/sys/net/if_debug.c @@ -65,6 +65,10 @@ if_show_ifnet(struct ifnet *ifp) IF_DB_PRINTF("%d", if_index_reserved); IF_DB_PRINTF("%p", if_softc); IF_DB_PRINTF("%p", if_l2com); + IF_DB_PRINTF("%p", if_llsoftc); + IF_DB_PRINTF("%d", if_amcount); + IF_DB_PRINTF("%p", if_addr); + IF_DB_PRINTF("%p", if_broadcastaddr); IF_DB_PRINTF("%p", if_afdata); IF_DB_PRINTF("%d", if_afdata_initialized); IF_DB_PRINTF("%u", if_fib); @@ -72,10 +76,13 @@ if_show_ifnet(struct ifnet *ifp) IF_DB_PRINTF("%p", if_home_vnet); IF_DB_PRINTF("%p", if_vlantrunk); IF_DB_PRINTF("%p", if_bpf); - IF_DB_PRINTF("%p", if_addr); - IF_DB_PRINTF("%p", if_llsoftc); - IF_DB_PRINTF("%p", if_label); IF_DB_PRINTF("%u", if_pcount); + IF_DB_PRINTF("%p", if_bridge); + IF_DB_PRINTF("%p", if_lagg); + IF_DB_PRINTF("%p", if_pf_kif); + IF_DB_PRINTF("%p", if_carp); + IF_DB_PRINTF("%p", if_label); + IF_DB_PRINTF("%p", if_netmap); IF_DB_PRINTF("0x%08x", if_flags); IF_DB_PRINTF("0x%08x", if_drv_flags); IF_DB_PRINTF("0x%08x", if_capabilities); |