Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revision Previous revision
Next revision
Previous revision
ipp_up_and_iff_running [2018/08/26 11:19] – [Flags] rpjdayipp_up_and_iff_running [2018/08/27 11:03] (current) – [net/core/dev_ioctl.c] rpjday
Line 9: Line 9:
 ===== Flags ===== ===== Flags =====
  
-Is ''IFF_LOWER_UP'' significant? Can we use ''IFF_DEBUG''?+Issues: 
 + 
 +  * Is ''IFF_LOWER_UP'' significant? 
 +  * Can we use ''IFF_DEBUG''? 
 +  * Understand actual meaning of "volatile".
  
 From ''include/uapi/linux/if.h'': From ''include/uapi/linux/if.h'':
Line 140: Line 144:
         RX errors 0  dropped 0  overruns 0  frame 0         RX errors 0  dropped 0  overruns 0  frame 0
         TX packets 36836  bytes 9042100 (8.6 MiB)         TX packets 36836  bytes 9042100 (8.6 MiB)
 +        TX errors 0  dropped 0 overruns 0  carrier 0  collisions 0
 +</code>
 +
 +==== Up again ====
 +
 +UP, shortly followed by RUNNING:
 +
 +<code>
 +enp3s0: flags=4163<UP,BROADCAST,RUNNING,MULTICAST>  mtu 1500
 +        inet 192.168.0.15  netmask 255.255.255.0  broadcast 192.168.0.255
 +        inet6 fd00:f81d:f81:4062:2e56:dcff:fe25:ad47  prefixlen 64  scopeid 0x0<global>
 +        inet6 fe80::2e56:dcff:fe25:ad47  prefixlen 64  scopeid 0x20<link>
 +        ether 2c:56:dc:25:ad:47  txqueuelen 1000  (Ethernet)
 +        RX packets 1268514  bytes 1611028865 (1.5 GiB)
 +        RX errors 0  dropped 0  overruns 0  frame 0
 +        TX packets 396222  bytes 65965632 (62.9 MiB)
         TX errors 0  dropped 0 overruns 0  carrier 0  collisions 0         TX errors 0  dropped 0 overruns 0  carrier 0  collisions 0
 </code> </code>
Line 162: Line 182:
  
 ==== net/core/dev_ioctl.c ==== ==== net/core/dev_ioctl.c ====
 +
 +This is how ''ifconfig'' gets its info -- via ''dev_get_flags()'' and ioctl command ''SIOCGIFFLAGS'':
  
 <code> <code>
  • ipp_up_and_iff_running.1535282342.txt.gz
  • Last modified: 2018/08/26 11:19
  • by rpjday