rxnode subcommand

The rxnode subcommand displays information about the radix_node structure at a specified address.

Format

rxnode effectiveaddress

Parameters

Item Description
effectiveaddress Specifies the effective address of the radix_node structure.

After displaying the radix_node structure, the subcommand presents a menu for interactive traversal of the radix_node tree. If the radix_node is an intermediate node of the tree, the traversal can follow the parent, left, or right nodes. If the displayed radix_node is a leaf node, the traversal can only follow the parent node.

Other

No aliases.

Examples

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

# netstat -f inet -r -A -n
Routing tables
Address  Destination      Gateway           Flags   Refs     Use  If   PMTU Exp Groups

Route tree for Protocol Family 2 (Internet):
701fcc44   (32) 7095d118 : 701fcc5c mk = 70a9f080 {(0), (0) }
7095d118   (33) 715aee18 : 7095d100
715aee18   (36) 701fcc2c : 7095d518
701fcc2c 70a5b100 default          9.53.85.1         UGc       0        0  en0     -   -
          mask (0)  mk = 70a9f080 {(0), (0) }
7095d518   (42) 7095d500 : 715aed18
7095d500 9.0.7.1          9.53.85.1         UGHW      0     1121  en0     -     2
715aed18   (56) 7095d218 : 715aed00 mk = 701fa2e0 {(56), (0) 0 ffff ff00 }
7095d218   (57) 715aef00 : 7095d200
715aef00 9.53.85.0        9.53.85.113       UHSb      0        0  en0     -   -  =>
715aee00 9.53.85/24       9.53.85.113       U         3       80  en0     -   -
          mask (0) 0 ffff ff00  mk = 701fa2e0 {(56), (0) 0 ffff ff00 }
7095d200 9.53.85.113      127.0.0.1         UGHS      2     2221  lo0     -   -
715aed00 9.53.85.255      9.53.85.113       UHSb      0        1  en0     -   -
7095d100 127/8            127.0.0.1         U         2     1469  lo0     -   -
          mask (0) 0 ff00
701fcc5c # Debugger entered via keyboard.
.waitproc+0000E8      ori    r3,r31,0            <003F3780> r3=0,r31=ppda
KDB(0)> rtentry 7095d200  //rtentry address from Routing Address column in netstat


    .........rtentry@ 7095D200.........

    rt_nodes[0]......

        rn_mklist @.. 00000000
        rn_p @....... 7095D218
        rn_b......... FFFFFFFF rn_bmask..... 0000
        rn_flags..... 00000004 (ACTIVE)
        rn_key....... 9.53.85.113
        rn_dupedkey @ 00000000
    rt_nodes[1]......

        rn_mklist @.. 00000000
        rn_p @....... 715AED18
        rn_b......... 00000039 rn_bmask..... 0040
        rn_flags..... 00000004 (ACTIVE)
        rn_off....... 00000007
        rn_l @....... 715AEF00 rn_r @....... 7095D200
    gateway...... 127.0.0.1
    rt_redisctime 00000000 rt_refcnt.... 00000002
    rt_flags..... 00000807      (UP|GATEWAY|HOST|STATIC)
    ifnet @...... 011EDB70 ifaddr @..... 7095C000
    rt_genmask @. 00000000 rt_llinfo @.. 00000000
    rt_rmx (rt_metrics):
         locks ... 00000000 mtu ..... 00000000 hopcount. 00000000
         expire .. 401FE69F recvpipe. 00000000 sendpipe. 00000000
         ssthresh. 00000000 rtt ..... 00000000 rttvar .. 00000000
         pksent... 000008AD
    rt_gwroute @. 7095D100 rt_idle...... 00000000
    ipRouteAge... 00000000 rt_proto @... 7095F160
    gidstruct @.. 00000000 rt_lock...... 00000000
    rt_intr...... 00000009 rt_duplist @. 00000000
    rt_lu @...... 00000000 rt_timer..... 00000000
    rt_cost_config 00000000

KDB(0)> rxnode 715AEF00  //radix node address from rn_l; can also use rn_r or rn_p

        rn_mklist @.. 00000000
        rn_p @....... 7095D218
        rn_b......... FFFFFFFF rn_bmask..... 0000
        rn_flags..... 0000000D (NORMAL|ACTIVE|DUP)
        rn_key....... 9.53.85.0
        rn_dupedkey @ 715AEE00
         Traverse radix_node tree :
         parent - 1      quit   - 0
         Enter Choice : 1

        rn_mklist @.. 00000000
        rn_p @....... 715AED18
        rn_b......... 00000039 rn_bmask..... 0040
        rn_flags..... 00000004 (ACTIVE)
        rn_off....... 00000007
        rn_l @....... 715AEF00 rn_r @....... 7095D200
         Traverse radix_node tree :
         parent - 1      rn_r   - 2      rn_l   - 3      quit   - 0
         Enter Choice : 2

        rn_mklist @.. 00000000
        rn_p @....... 7095D218
        rn_b......... FFFFFFFF rn_bmask..... 0000
        rn_flags..... 00000004 (ACTIVE)
        rn_key....... 9.53.85.113
        rn_dupedkey @ 00000000
         Traverse radix_node tree :
         parent - 1      quit   - 0
         Enter Choice : 0



KDB(0)>