James Carlson wrote:
Vasumathi Sundaram writes:
James Carlson wrote:
Vasumathi Sundaram writes:
> ::ill ADDR NAME CNT VER WQ UP TYPE FLAGS 60012dca688 lo0 0 v4 0 R LOOPB M,V
6001479d528      e1000g0  34   v4  60014f13d58      R   ETHER M,R
60013ac69c8      lo0      2    v6  0                R   LOOPB M,V
6001479d1a8      e1000g0  20   v6  60016675ad8      R   ETHER M
What does the "UP" field mean?
It shows the RUNNING flag. I moved it out of FLAGS so that I can represent the flags with a single letter. (It was clashing with ROUTER)

It seems to me that it'd be better to have either just _one_ flags
field, or some higher-level meaning for each of the flags fields.
"UP" is too narrow and "FLAGS" is too broad.

I'd suggest trying harder to combine these by choosing other letters
or using case.  As long as it's documented, anything reasonable will
work here.  And you can use the break-out format with "-v" to explain
the individual flags as well.

I have chosen letters for each of the flags and all the flags are consolidated in one field. R -> Running, V -> Virtual, M -> Multicast, F -> Router, f->Failed, O->Offline, G->IPMP, I->Inactive, S->Standby and so forth.
I will document all of these in the help for ::ill.

The -v output will print full strings for the individual flags.

> ::ill ADDR NAME VER CNT WQ TYPE FLAGS 60012dca688 lo0 v4 0 0 LOOPBACK R,V,M
6001479d528      e1000g0  v4    30 60014f13d58      ETHER      R,M,F
60019479528      e1000g1  v4     6 6001a961da0      ETHER      R,M,F
60013ac69c8      lo0      v6     2 0                LOOPBACK   R,V,M
6001479d1a8      e1000g0  v6    20 60016675ad8      ETHER      R,M

> ::ill -v
ADDR NAME VER WQ IPST TYPE FLAGS PHYINT CNT GROUP 60012dca688 lo0 v4 0 60012b0e000 LOOPBACK RUNNING,VIRTUAL
,MULTICAST
600139d8b88 0 0 | +--> 0 ill_refcnt references from active threads 0 ill_ire_cnt ires associated with this ill 0 ill_nce_cnt nces associated with this ill
                          0 ill_ilm_cnt          ilms referencing this ill
                          0 ill_ilm_walker_cnt   snmp ilm walkers

6001479d528 e1000g0 v4 60014f13d58 60012b0e000 ETHER RUNNING,MULTICAST
,ROUTER
600145988c8 30 0 | +--> 0 ill_refcnt references from active threads 16 ill_ire_cnt ires associated with this ill 14 ill_nce_cnt nces associated with this ill
                          0 ill_ilm_cnt          ilms referencing this ill
                          0 ill_ilm_walker_cnt   snmp ilm walkers


-
Vasumathi
_______________________________________________
networking-discuss mailing list
[email protected]

Reply via email to