The ifnet subcommand prints interface information, or the specified one.
KDB(0)> ifnet display interface SLOT 1 ---- IFNET INFO ----(@0x00325138)---- flags:0x08080009 (UP|LOOPBACK) timer:00000 metric:00 address: 127.0.0.1 ifq_head:0x00000000 if_init():0x00000000 ipackets:00000190 ifq_tail:0x00000000 if_output():0x00080E9C ierrors: 00000 ifq_len:00000 if_ioctl():0x00080E90 opackets:00000195 ifq_maxlen:00000 if_reset():0x00000000 oerrors: 00000 ifq_drops:00050 if_watchdog():0x00000000 SLOT 2 ---- IFNET INFO ----(@0x05583800)---- flags:0x08080863 (UP|BROADCAST|NOTRAILERS|RUNNING|CANTCHANGE) timer:00000 metric:00 address: 129.183.67.8 ifq_head:0x01A2CACC if_init():0x00000000 ipackets:00003456 ifq_tail:0x00000000 if_output():0x01A2CAA8 ierrors: 00000 ifq_len:00000 if_ioctl():0x01A2CAC0 opackets:00000088 ifq_maxlen:00000 if_reset():0x00000000 oerrors: 00000 ifq_drops:00000 if_watchdog():0x00000000 KDB(0)>
The tcb subcommand prints TCP blocks, or the specified one.
KDB(0)> tcb display TCP blocks SLOT 1 TCB --------- INPCB INFO ----(@0x05F4AB00)---- next:0x05CD0E80 prev:0x01C033B8 head:0x01C033B8 ppcb:0x05F9FF00 inp_socket:0x05FA4C00 lport: 23 laddr:0x96B70114 fport: 3972 faddr:0x81B7600D ---- SOCKET INFO ----(@05FA4C00)---- typeCommandCommand.. 0001 (STREAM) optsCommandCommand.. 010C (REUSEADDR|KEEPALIVE|OOBINLINE) lingerCommandCommand 0000 stateCommandCommand. 0182 (ISCONNECTED|PRIV|NBIO) pcbCommand.. 05F4AB00 protoCommand 01C01F80 lockCommand. 05FB1680 headCommand. 00000000 q0CommandCommand 00000000 qCommandCommand. 00000000 dqCommandCommand 00000000 q0lenCommandCommand. 0000 qlenCommandCommand.. 0000 qlimitCommandCommand 0000 dqlenCommandCommand. 0000 timeoCommandCommand. 0000 errorCommandCommand. 0000 specialCommand.. 0808 pgidCommand. 00000000 oobmark. 00000000 snd:ccCommandCommand 00000000 hiwatCommand 00004000 mbcntCommand 00000000 mbmaxCommand 00010000 lowatCommand 00001000 mbCommandCommand 00000000 selCommand.. 00000000 eventsCommandCommand 0000 iodone.. 00000000 ioargs.. 00000000 lastpkt. 05FA9D00 wakeone. FFFFFFFF timerCommand 00000000 timeoCommand 00000000 flagsCommandCommand. 0000 () wakeup.. 00000000 wakearg. 00000000 lockCommand. 05FB1684 rcv:ccCommandCommand 00000000 hiwatCommand 00004000 mbcntCommand 00000000 mbmaxCommand 00010000 lowatCommand 00000001 mbCommandCommand 00000000 selCommand.. 00000000 eventsCommandCommand 0004 iodone.. 00000000 ioargs.. 00000000 lastpkt. 05FA4900 wakeone. FFFFFFFF timerCommand 00000000 timeoCommand 00000000 flagsCommandCommand. 0008 (SEL) wakeup.. 00000000 wakearg. 00000000 lockCommand. 05FB1688 (0)> more (^C to quit) ? ^C quit KDB(0)>
The udb subcommand prints UDP blocks, or the specified one.
KDB(0)> udb display UDP blocks SLOT 1 UDB --------- INPCB INFO ----(@0x05F31300)---- next:0x05D21A00 prev:0x01C07170 head:0x01C07170 ppcb:0x00000000 inp_socket:0x05F2D200 lport: 1595 laddr:0x00000000 fport: 0 faddr:0x00000000 ---- SOCKET INFO ----(@05F2D200)---- typeCommandCommand.. 0002 (DGRAM) optsCommandCommand.. 0000 () lingerCommandCommand 0000 stateCommandCommand. 0080 (PRIV) pcbCommand.. 05F31300 protoCommand 01C01F48 lockCommand. 05F2F900 headCommand. 00000000 q0CommandCommand 00000000 qCommandCommand. 00000000 dqCommandCommand 00000000 q0lenCommandCommand. 0000 qlenCommandCommand.. 0000 qlimitCommandCommand 0000 dqlenCommandCommand. 0000 timeoCommandCommand. 0000 errorCommandCommand. 0000 specialCommand.. 0808 pgidCommand. 00000000 oobmark. 00000000 snd:ccCommandCommand 00000000 hiwatCommand 00010000 mbcntCommand 00000000 mbmaxCommand 00020000 lowatCommand 00001000 mbCommandCommand 00000000 selCommand.. 00000000 eventsCommandCommand 0000 iodone.. 00000000 ioargs.. 00000000 lastpkt. 00000000 wakeone. FFFFFFFF timerCommand 00000000 timeoCommand 00000000 flagsCommandCommand. 0000 () wakeup.. 00000000 wakearg. 00000000 lockCommand. 05F2F904 rcv:ccCommandCommand 00000000 hiwatCommand 00010000 mbcntCommand 00000000 mbmaxCommand 00020000 lowatCommand 00000001 mbCommandCommand 00000000 selCommand.. 00000000 eventsCommandCommand 0000 iodone.. 00000000 ioargs.. 00000000 lastpkt. 05D3DD00 wakeone. FFFFFFFF timerCommand 00000000 timeoCommand 0000005E flagsCommandCommand. 0000 () wakeup.. 00000000 wakearg. 00000000 lockCommand. 05F2F908 (0)> more (^C to quit) ? ^C quit KDB(0)>
The sock subcommand prints TCP UDP sockets, or the specified one. It is possible to select only one protocol: tcp or udp.
KDB(0)> sock tcp display TCP sockets ---- TCP ----(inpcb: @0x05F4AB00)---- ---- SOCKET INFO ----(@05FA4C00)---- typeCommandCommand.. 0001 (STREAM) optsCommandCommand.. 010C (REUSEADDR|KEEPALIVE|OOBINLINE) lingerCommandCommand 0000 stateCommandCommand. 0182 (ISCONNECTED|PRIV|NBIO) pcbCommand.. 05F4AB00 protoCommand 01C01F80 lockCommand. 05FB1680 headCommand. 00000000 q0CommandCommand 00000000 qCommandCommand. 00000000 dqCommandCommand 00000000 q0lenCommandCommand. 0000 qlenCommandCommand.. 0000 qlimitCommandCommand 0000 dqlenCommandCommand. 0000 timeoCommandCommand. 0000 errorCommandCommand. 0000 specialCommand.. 0808 pgidCommand. 00000000 oobmark. 00000000 snd:ccCommandCommand 00000002 hiwatCommand 00004000 mbcntCommand 00000100 mbmaxCommand 00010000 lowatCommand 00001000 mbCommandCommand 05F2D600 selCommand.. 00000000 eventsCommandCommand 0000 iodone.. 00000000 ioargs.. 00000000 lastpkt. 05F2D600 wakeone. FFFFFFFF timerCommand 00000000 timeoCommand 00000000 flagsCommandCommand. 0000 () wakeup.. 00000000 wakearg. 00000000 lockCommand. 05FB1684 rcv:ccCommandCommand 00000000 hiwatCommand 00004000 mbcntCommand 00000000 mbmaxCommand 00010000 lowatCommand 00000001 mbCommandCommand 00000000 selCommand.. 00000000 eventsCommandCommand 0005 iodone.. 00000000 ioargs.. 00000000 lastpkt. 05E1A200 wakeone. FFFFFFFF timerCommand 00000000 timeoCommand 00000000 flagsCommandCommand. 0008 (SEL) wakeup.. 00000000 wakearg. 00000000 lockCommand. 05FB1688 ---- TCP ----(inpcb: @0x05CD0E80)---- ---- SOCKET INFO ----(@05CABA00)---- typeCommandCommand.. 0001 (STREAM) (0)> more (^C to quit) ? ^C quit KDB(0)>
The tcpcb subcommand prints TCP control blocks, or the specified one.
KDB(0)> tcpcb display TCB control blocks ---- TCP ----(inpcb: @0x05B17F80)---- ---- TCPCB ----(@0x05B26C00)---- seg_next 0x05B26C00 seg_prev 0x05B26C00 t_state 0x04 (ESTABLISHED) timers: TCPT_REXMT:3 TCPT_PERSIST:0 TCPT_KEEP:14400 TCPT_2MSL:0 t_txtshift 0 t_txtcur 3 t_dupacks 0 t_maxseg 1460 t_force 0 flags:0x0000 () t_template 0x00000000 inpcb 0x00000000 snd_cwnd: 0x00009448 snd_ssthresh:0x3FFFC000 snd_una: 0x1EADFCA0 snd_nxt: 0x1EADFCA2 snd_up: 0x1EADFCA0 snd=wl1: 0xE3BDEEAF snd_wl2: 0x1EADFCA0 iss: 0x1EAD8401 snd_wnd: 16060 rcv_wnd: 16060 t_idle: 0x00000000 t_rtt: 0x00000001 t_rtseq: 0x1EADFCA0 t_srtt: 0x00000007 t_rttvar: 0x00000003 max_sndwnd:16060 t_iobc:0x00 t_oobflags:0x00 () ---- TCP ----(inpcb: @0x05B2D000)---- ---- TCPCB ----(@0x05B28300)---- seg_next 0x05B28300 seg_prev 0x05B28300 t_state 0x04 (ESTABLISHED) timers: TCPT_REXMT:0 TCPT_PERSIST:0 TCPT_KEEP:4719 TCPT_2MSL:0 t_txtshift 0 t_txtcur 3 t_dupacks 0 t_maxseg 1460 t_force 0 flags:0x0000 () t_template 0x00000000 inpcb 0x00000000 snd_cwnd: 0x0000111C snd_ssthresh:0x3FFFC000 (0)> more (^C to quit) ?^C quit KDB(0)>
The mbuf subcommand prints TCP UDP message buffers, or the specified one. It is possible to select only one protocol: tcp or udp.
KDB(0)> mbuf display message buffers ---- TCP ----(inpcb: @0x05F4AB00)---- ---- SND ----(sock: @0x05FA4C00)---- mCommandCommandCommandCommandCommand 05E2E900 m_nextCommandCommandCommand. 00000000 m_nextpktCommandCommand. 00000000 m_lenCommandCommandCommand.. 00000004 m_dataCommandCommandCommand. 05E2E91C m_typeCommand.. 0001 DATA m_flagsCommandCommandCommand 0002 (M_PKTHDR) m_pkthdr.lenCommand. 00000004 m_pkthdr.rcvif.. 00000000 ---------------------------------------------------- 05E2E91C: 7566 0D0A uf.. ---- TCP ----(inpcb: @0x05CD0E80)---- ---- TCP ----(inpcb: @0x05CA6B80)---- ---- TCP ----(inpcb: @0x05EB0A00)---- ---- TCP ----(inpcb: @0x05D21E00)---- ---- TCP ----(inpcb: @0x05CA6880)---- ---- TCP ----(inpcb: @0x05DB1F00)---- ---- TCP ----(inpcb: @0x05DB1F80)---- ---- TCP ----(inpcb: @0x05DB1C80)---- ---- TCP ----(inpcb: @0x05DB1D00)---- ---- TCP ----(inpcb: @0x05DB1D80)---- ---- TCP ----(inpcb: @0x05DB1E00)---- ---- TCP ----(inpcb: @0x05F31580)---- ---- TCP ----(inpcb: @0x05F31900)---- ---- TCP ----(inpcb: @0x05F31980)---- (0)> more (^C to quit) ? ^C quit KDB(0)>