diff options
| author | Andrey Konovalov <andreyknvl@google.com> | 2017-03-31 18:12:22 +0200 |
|---|---|---|
| committer | Andrey Konovalov <andreyknvl@google.com> | 2017-04-07 14:42:57 +0200 |
| commit | bb39958f893b94c0407654cee53ca66a79f3965b (patch) | |
| tree | b677d377e17ccf981d1682a59662a36bc20d6475 /sys/socket_inet.txt | |
| parent | fb1044f22d5c88328d8104ec2146d9bb7ca0b152 (diff) | |
sys: rearrange and improve socket.txt
Diffstat (limited to 'sys/socket_inet.txt')
| -rw-r--r-- | sys/socket_inet.txt | 31 |
1 files changed, 31 insertions, 0 deletions
diff --git a/sys/socket_inet.txt b/sys/socket_inet.txt index 5e1815ac1..0d73c286b 100644 --- a/sys/socket_inet.txt +++ b/sys/socket_inet.txt @@ -3,6 +3,7 @@ include <linux/ip.h> include <linux/ipv6.h> +include <linux/route.h> include <uapi/linux/netfilter_ipv6/ip6_tables.h> # IP sockets @@ -267,3 +268,33 @@ ipv6_mreq { multi in6_addr ifindex int32 } + +# IP ioctls + +# http://lxr.free-electrons.com/source/include/uapi/linux/sockios.h + +ioctl$inet_SIOCADDRT(fd sock_in, cmd const[SIOCADDRT], arg ptr[in, rtentry_in]) +ioctl$inet_SIOCDELRT(fd sock_in, cmd const[SIOCDELRT], arg ptr[in, rtentry_in]) +ioctl$inet_SIOCRTMSG(fd sock_in, cmd const[SIOCRTMSG], arg ptr[in, rtentry_in]) + +# TODO: more here + +rtentry_in { + rt_pad1 int64 + rt_dst sockaddr_in + rt_gateway sockaddr_in + rt_genmask sockaddr_in + rt_flags flags[rt_flags, int16] + rt_pad2 int16 + rt_pad3 int64 + rt_pad4 intptr + rt_metric int16 + rt_dev ptr[in, devname, opt] + rt_mtu int64 + rt_window int64 + rt_irtt int16 +} + +rt_flags = RTF_UP, RTF_GATEWAY, RTF_HOST, RTF_REINSTATE, RTF_DYNAMIC, RTF_MODIFIED, RTF_MTU, RTF_WINDOW, RTF_IRTT, RTF_REJECT + +# TODO: ipv6 ioctls |
