udb subcommand

The udb subcommand displays the inpcb structure for UDP connections.

Format

udb [-s | -b index | effectiveaddress]

Parameters

Item Description
-s Displays a one line summary of every udb entry.
-b index Specifies the bucket number within the udb hash table. All udb entries in this bucket are displayed in detail. The -b indicates that the number that follows is a bucket number and not an effective address.
effectiveaddress Specifies the effective address of a udb entry to display in detail.

If no parameters are specified, detailed information is displayed for all entries in the udb table. Display a summary of all entries or detailed information for a specific entry by specifying the appropriate parameters.

Other

No aliases.

Examples

The following is an example of how to use the udb subcommand:

KDB(0)> udb -s
SLOT 13  UDB --------- INPCB  INFO ----(@ F100061000BF3000)----
SLOT 37  UDB --------- INPCB  INFO ----(@ F100061000BF3200)----
SLOT 111  UDB --------- INPCB  INFO ----(@ F100061000BFB600)----
SLOT 123  UDB --------- INPCB  INFO ----(@ F10006100039D600)----
SLOT 123  UDB --------- INPCB  INFO ----(@ F10006100039DE00)----
SLOT 123  UDB --------- INPCB  INFO ----(@ F10006100039D800)----
SLOT 135  UDB --------- INPCB  INFO ----(@ F100061000410A00)----
SLOT 514  UDB --------- INPCB  INFO ----(@ F100061000BFF800)----
SLOT 518  UDB --------- INPCB  INFO ----(@ F100061000BFBC00)----
KDB(0)> udb F100061000BFB600  //udb address in slot 111
SLOT 111  UDB --------- INPCB  INFO ----(@ F100061000BFB600)----
    next........@0000000000000000  prev........@0000000000000000
    head........@0000000003E63888  faddr_6.....@F100061000BFB620
    iflowinfo... 00000000 fport....... 00000000 fatype...... 00000000
    oflowinfo... 00000000 lport....... 0000006F latype...... 00000000
    laddr_6.....@F100061000BFB638  socket......@F1000610002DC400
    ppcb........@0000000000000000  route_6.....@F100061000BFB658
    ifa.........@0000000000000000  flags....... 00000400
    proto....... 00000000 tos......... 00000000 ttl......... 0000001E
    rcvttl...... 00000000 rcvif.......@0000000000000000
    options.....@0000000000000000  refcnt...... 00000000
    lock........ 0000000000000000  rc_lock..... 0000000000000000
    moptions....@0000000000000000  hash.next...@F10006000CA64A68
    hash.prev...@F10006000CA64A68  timewait.nxt@0000000000000000
    timewait.prv@0000000000000000  inp_v6opts  @0000000000000000
    inp_pmtu....@0000000000000000

---- SOCKET INFO ----(@ F1000610002DC400)----
    type........ 0002 (DGRAM)
    opts........ 0104 (REUSEADDR|OOBINLINE)
    linger...... 0000 state....... 0100 (NBIO)
    pcb.....@F100061000BFB600  proto...@0000000003E5A738
    lock....@F1000610002D7280  head....@0000000000000000
    q0......@0000000000000000  q.......@0000000000000000
    q0len....... 0000 qlen........ 0000 qlimit...... 0000
    timeo....... 0000 error....... 0000 special..... 088C
    pgid.... 0000000000000000  oobmark. 0000000000000000

snd:cc...... 0000000000000000  hiwat... 0000000000002400
    mbcnt... 0000000000000000  mbmax... 0000000000009000
    lowat... 0000000000001000  mb......@0000000000000000
    sel.....@0000000000000000  events...... 0000
    iodone.. 00000000          ioargs..@0000000000000000
    lastpkt.@0000000000000000  wakeone. FFFFFFFFFFFFFFFF
    timer...@0000000000000000  timeo... 00000000
    flags....... 0048 (SEL|NOINTR|INHERIT|NOTIFY)
    wakeup.. 03C59490          wakearg.@F100061000BFED18
    lockwtg. FFFFFFFFFFFFFFFF

MBUF LIST

rcv:cc...... 0000000000000000  hiwat... 000000000000A460
    mbcnt... 0000000000000000  mbmax... 0000000000029180
    lowat... 0000000000000001  mb......@0000000000000000
    sel.....@0000000000000000  events...... 0000
    iodone.. 00000000          ioargs..@0000000000000000
    lastpkt.@F10006100039D000  wakeone. FFFFFFFFFFFFFFFF
    timer...@0000000000000000  timeo... 00000000
    flags....... 0048 (SEL|NOINTR|INHERIT|NOTIFY)
    wakeup.. 03C594A8          wakearg.@F100061000BFEC00
    lockwtg. FFFFFFFFFFFFFFFF

MBUF LIST

    tpcb....@0000000000000000  fdev_ch.@0000000000000000
    sec_info@0000000000000000  qos.....@0000000000000000
    gidlist.@0000000000000000  private.@0000000000000000
    uid..... 00000000 bufsize. 00000000 threadcnt00000000
    nextfree@0000000000000000
    siguid.. 00000000 sigeuid. 00000000 sigpriv. 00000000
    sndtime. 0000000000000000  sec  0000000000000000  usec
    rcvtime. 0000000000000000  sec  0000000000000000  usec
    saioq...@0000000000000000  saioqhd.@0000000000000000
    accept.. FFFFFFFFFFFFFFFF  frcatime 00000000
    isnoflgs 00000000 ()
    rcvlen.. 0000000000000000  frcaback@0000000000000000
    frcassoc@0000000000000000  frcabckt 0000000000000000
    iodone.. 00000000          iodonefl 00000000 ()
    ioarg...@0000000000000000  refcnt.. 0000000000000000

proc/fd:
KDB(0)>