aboutsummaryrefslogtreecommitdiffstats
path: root/sys
diff options
context:
space:
mode:
authorAndrey Konovalov <andreyknvl@google.com>2017-04-03 16:22:50 +0200
committerAndrey Konovalov <andreyknvl@google.com>2017-04-07 14:52:39 +0200
commit7e129a3adc7b572f07c129ee83a295e13fd192d5 (patch)
tree2456b33d9a8b5997865cb0958cbb00fc932b9716 /sys
parentbb39958f893b94c0407654cee53ca66a79f3965b (diff)
sys: add loopback and syzN devices to devname
Diffstat (limited to 'sys')
-rw-r--r--sys/socket.txt15
-rwxr-xr-xsys/socket_ax25.txt1
2 files changed, 12 insertions, 4 deletions
diff --git a/sys/socket.txt b/sys/socket.txt
index c33fef0fe..e36d40366 100644
--- a/sys/socket.txt
+++ b/sys/socket.txt
@@ -207,11 +207,20 @@ ifreq {
ifr_ifru ifr_ifru
}
-# TODO: use strings
-devname {
- devname array[int8, IFNAMSIZ]
+syzn_devname {
+ s const[115, int8]
+ y const[121, int8]
+ z const[122, int8]
+ N proc[int8, 48, 1]
+ 0 const[0, int8]
}
+devname [
+ generic array[int8, IFNAMSIZ]
+ loopback string["lo", IFNAMSIZ]
+ ethernet syzn_devname
+]
+
ifr_ifru [
ifru_addrs sockaddr
ifru_flags flags[ifru_flags, int16]
diff --git a/sys/socket_ax25.txt b/sys/socket_ax25.txt
index 16bfa8032..0ddee57de 100755
--- a/sys/socket_ax25.txt
+++ b/sys/socket_ax25.txt
@@ -51,7 +51,6 @@ full_sockaddr_ax25 {
ax25_option_types_int = AX25_WINDOW, AX25_T1, AX25_T2, AX25_N2, AX25_T3, AX25_IDLE, AX25_BACKOFF, AX25_EXTSEQ, AX25_PIDINCL, AX25_IAMDIGI, AX25_PACLEN
-# TODO: special type for device names
ax25_option_types_buf = SO_BINDTODEVICE
getsockopt$ax25_int(fd sock_ax25, level const[SOL_AX25], optname flags[ax25_option_types_int], optval ptr[out, int32], optlen ptr[inout, len[optval, int32]])