Author: bz
Date: Wed Jun 22 12:53:10 2016
New Revision: 302086
URL: https://svnweb.freebsd.org/changeset/base/302086

Log:
  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

Modified:
  head/sys/net/if_debug.c

Modified: head/sys/net/if_debug.c
==============================================================================
--- head/sys/net/if_debug.c     Wed Jun 22 12:12:13 2016        (r302085)
+++ head/sys/net/if_debug.c     Wed Jun 22 12:53:10 2016        (r302086)
@@ -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);
_______________________________________________
svn-src-head@freebsd.org mailing list
https://lists.freebsd.org/mailman/listinfo/svn-src-head
To unsubscribe, send any mail to "svn-src-head-unsubscr...@freebsd.org"

Reply via email to