From 7e129a3adc7b572f07c129ee83a295e13fd192d5 Mon Sep 17 00:00:00 2001 From: Andrey Konovalov Date: Mon, 3 Apr 2017 16:22:50 +0200 Subject: sys: add loopback and syzN devices to devname --- sys/socket.txt | 15 ++++++++++++--- sys/socket_ax25.txt | 1 - 2 files changed, 12 insertions(+), 4 deletions(-) (limited to 'sys') 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]]) -- cgit mrf-deployment