User Tools

Site Tools


net_device_attributes

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
Last revision Both sides next revision
net_device_attributes [2018/08/01 14:44]
rpjday
net_device_attributes [2018/08/01 14:54]
rpjday [/sys/class/net/enp3s0/ files]
Line 1: Line 1:
 ===== Overview ===== ===== Overview =====
  
-Discussion about how net cable connect and disconnect are reflected in SYSFS.+Discussion about how net cable connect and disconnect are reflected in ''/​sys''​.
  
-===== /​sys/​class/​net/​enp0s25/ files =====+===== /​sys/​class/​net/​enp3s0/ files =====
  
 <​code>​ <​code>​
Line 42: Line 42:
 -rw-r--r--. 1 root root 4096 Aug  1 10:41 uevent -rw-r--r--. 1 root root 4096 Aug  1 10:41 uevent
 </​code>​ </​code>​
 +
 +In particular, we care about the attributes that reflect physical connection (note how ''​carrier''​ is writeable):
 +
 +<​code>​
 +-rw-r--r--. 1 root root 4096 Aug  1 10:41 carrier ​     [0 or 1]
 +-r--r--r--. 1 root root 4096 Aug  1 10:41 operstate ​   [up or down]
 +-rw-r--r--. 1 root root 4096 Aug  1 10:41 flags
 +</​code>​
 +
 +===== Interesting attributes from above =====
 +
 +==== carrier ====
 +
 +==== operstate ====
 +
 +==== flags ====
net_device_attributes.txt ยท Last modified: 2018/08/01 15:05 by rpjday