Note that there are some explanatory texts on larger screens.

plurals
  1. POParse numeric ifconfig flags
    primarykey
    data
    text
    <p>The ifconfig command outputs its <a href="http://docs.sun.com/app/docs/doc/816-5166/6mbb1kq2q?l=en&amp;a=view#INTERFACE%20FLAGS" rel="nofollow noreferrer">flags</a> in both textual and numeric format. While I can find a reference <a href="http://books.google.com/books?id=t7pHu7sIUkQC&amp;pg=PA139&amp;lpg=PA139&amp;dq=ifconfig+numeric+flags&amp;source=bl&amp;ots=5tG7fK7qzf&amp;sig=A5Z4Gem5mmDeeFsiue4LIeFpVgk&amp;hl=en&amp;ei=7POTSuPxDo2KswPZ69TPDw&amp;sa=X&amp;oi=book_result&amp;ct=result&amp;resnum=1#v=onepage&amp;q=ifconfig%20numeric%20flags&amp;f=false" rel="nofollow noreferrer">here or there</a> to the numeric flags, I cannot find any indication on how to interpret (mask) the number.</p> <pre><code>qfe2: flags=1100843&lt;UP,BROADCAST,RUNNING,MULTICAST,ROUTER,IPv4&gt; mtu 1500 index 4 usesrc vni0 inet 1.2.3.4 netmask ffffff00 broadcast 1.2.3.255 ether 0:3:ba:17:4b:e1 vni0: flags=20011100c1&lt;UP,RUNNING,NOARP,NOXMIT,ROUTER,IPv4,VIRTUAL&gt; mtu 0 index 5 srcof qfe2 inet 3.4.5.6 netmask ffffffff </code></pre> <p>In the above output, note the following:</p> <pre><code>flags=1100843&lt;UP,BROADCAST,RUNNING,MULTICAST,ROUTER,IPv4&gt; </code></pre> <p>The numeric value "<code>1100843</code>" maps to the flags "<code>UP,BROADCAST,RUNNING,MULTICAST,ROUTER,IPv4</code>".</p> <p>Is there a reference somewhere that I'm simply not seeing that describes how to mask each flag (<code>UP,BROADCAST,</code>etc.) out of the encoded "<code>flags=NNNNNNNN</code>" value?</p> <p><strong>EDIT</strong>: Clarification of exactly which flag I'm interested in masking.</p>
    singulars
    1. This table or related slice is empty.
    plurals
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload