Skip site navigation (1)Skip section navigation (2)
Date:      Wed, 22 Jun 2016 12:53:10 +0000 (UTC)
From:      "Bjoern A. Zeeb" <bz@FreeBSD.org>
To:        src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-head@freebsd.org
Subject:   svn commit: r302086 - head/sys/net
Message-ID:  <201606221253.u5MCrAbx004348@repo.freebsd.org>

next in thread | raw e-mail | index | archive | help
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);



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201606221253.u5MCrAbx004348>