From 29bda43fa403cfb4be31ef26567f5d032b7c331e Mon Sep 17 00:00:00 2001 From: "Bjoern A. Zeeb" Date: Wed, 20 Apr 2016 21:04:39 +0000 Subject: [PATCH] Add more fields from struct ifnet needed during debugging a kernel panic. Move if_fib into the right place. MFC after: 2 weeks Sponsored by: The FreeBSD Foundation --- sys/net/if_debug.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/sys/net/if_debug.c b/sys/net/if_debug.c index fbcc2b0ae04..ad3b5753b49 100644 --- a/sys/net/if_debug.c +++ b/sys/net/if_debug.c @@ -65,6 +65,9 @@ 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_afdata); + IF_DB_PRINTF("%d", if_afdata_initialized); + IF_DB_PRINTF("%u", if_fib); IF_DB_PRINTF("%p", if_vnet); IF_DB_PRINTF("%p", if_home_vnet); IF_DB_PRINTF("%p", if_vlantrunk); @@ -87,7 +90,6 @@ if_show_ifnet(struct ifnet *ifp) IF_DB_PRINTF("%d", if_snd.ifq_drv_maxlen); IF_DB_PRINTF("%d", if_snd.altq_type); IF_DB_PRINTF("%x", if_snd.altq_flags); - IF_DB_PRINTF("%u", if_fib); #undef IF_DB_PRINTF }