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 ++++++++++++--- 1 file changed, 12 insertions(+), 3 deletions(-) (limited to 'sys/socket.txt') 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] -- cgit mrf-deployment