if_debug.c (214333) | if_debug.c (223735) |
---|---|
1/*- 2 * Copyright (c) 2010 Bjoern A. Zeeb <bz@FreeBSD.org> 3 * All rights reserved. 4 * 5 * Redistribution and use in source and binary forms, with or without 6 * modification, are permitted provided that the following conditions 7 * are met: 8 * 1. Redistributions of source code must retain the above copyright --- 11 unchanged lines hidden (view full) --- 20 * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) 21 * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT 22 * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY 23 * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF 24 * SUCH DAMAGE. 25 */ 26 27#include <sys/cdefs.h> | 1/*- 2 * Copyright (c) 2010 Bjoern A. Zeeb <bz@FreeBSD.org> 3 * All rights reserved. 4 * 5 * Redistribution and use in source and binary forms, with or without 6 * modification, are permitted provided that the following conditions 7 * are met: 8 * 1. Redistributions of source code must retain the above copyright --- 11 unchanged lines hidden (view full) --- 20 * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) 21 * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT 22 * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY 23 * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF 24 * SUCH DAMAGE. 25 */ 26 27#include <sys/cdefs.h> |
28__FBSDID("$FreeBSD: head/sys/net/if_debug.c 214333 2010-10-25 08:30:19Z bz $"); | 28__FBSDID("$FreeBSD: head/sys/net/if_debug.c 223735 2011-07-03 12:22:02Z bz $"); |
29 30#include "opt_ddb.h" 31 32#include <sys/param.h> 33#include <sys/socket.h> 34#include <sys/types.h> 35 36#ifdef DDB --- 44 unchanged lines hidden (view full) --- 81 IF_DB_PRINTF("%d", if_snd.ifq_maxlen); 82 IF_DB_PRINTF("%d", if_snd.ifq_drops); 83 IF_DB_PRINTF("%p", if_snd.ifq_drv_head); 84 IF_DB_PRINTF("%p", if_snd.ifq_drv_tail); 85 IF_DB_PRINTF("%d", if_snd.ifq_drv_len); 86 IF_DB_PRINTF("%d", if_snd.ifq_drv_maxlen); 87 IF_DB_PRINTF("%d", if_snd.altq_type); 88 IF_DB_PRINTF("%x", if_snd.altq_flags); | 29 30#include "opt_ddb.h" 31 32#include <sys/param.h> 33#include <sys/socket.h> 34#include <sys/types.h> 35 36#ifdef DDB --- 44 unchanged lines hidden (view full) --- 81 IF_DB_PRINTF("%d", if_snd.ifq_maxlen); 82 IF_DB_PRINTF("%d", if_snd.ifq_drops); 83 IF_DB_PRINTF("%p", if_snd.ifq_drv_head); 84 IF_DB_PRINTF("%p", if_snd.ifq_drv_tail); 85 IF_DB_PRINTF("%d", if_snd.ifq_drv_len); 86 IF_DB_PRINTF("%d", if_snd.ifq_drv_maxlen); 87 IF_DB_PRINTF("%d", if_snd.altq_type); 88 IF_DB_PRINTF("%x", if_snd.altq_flags); |
89 IF_DB_PRINTF("%u", if_fib); |
|
89#undef IF_DB_PRINTF 90} 91 92DB_SHOW_COMMAND(ifnet, db_show_ifnet) 93{ 94 95 if (!have_addr) { 96 db_printf("usage: show ifnet <struct ifnet *>\n"); --- 29 unchanged lines hidden --- | 90#undef IF_DB_PRINTF 91} 92 93DB_SHOW_COMMAND(ifnet, db_show_ifnet) 94{ 95 96 if (!have_addr) { 97 db_printf("usage: show ifnet <struct ifnet *>\n"); --- 29 unchanged lines hidden --- |