diff options
| author | Andrey Konovalov <andreyknvl@google.com> | 2017-04-07 18:13:45 +0200 |
|---|---|---|
| committer | Andrey Konovalov <andreyknvl@google.com> | 2017-04-08 20:20:38 +0200 |
| commit | c9e79240e6f4fef474a9b62aeae10663aa7701ff (patch) | |
| tree | c21884a640d3e55ae8798c71c26f87005398df51 /sys/socket_inet6.txt | |
| parent | 274ac94f7cfcea0264d4bdc94fbcd6369d960835 (diff) | |
sys: add more ipv6 ioctls
Diffstat (limited to 'sys/socket_inet6.txt')
| -rw-r--r-- | sys/socket_inet6.txt | 32 |
1 files changed, 32 insertions, 0 deletions
diff --git a/sys/socket_inet6.txt b/sys/socket_inet6.txt index f7a40ab87..14be9aece 100644 --- a/sys/socket_inet6.txt +++ b/sys/socket_inet6.txt @@ -4,6 +4,8 @@ include <linux/ip.h> include <linux/ipv6.h> include <linux/route.h> +include <uapi/linux/route.h> +include <uapi/linux/ipv6_route.h> include <uapi/linux/netfilter_ipv6/ip6_tables.h> # IPv6 sockets @@ -66,3 +68,33 @@ ipv6_mreq { # IPv6 ioctls # TODO: http://lxr.free-electrons.com/ident?i=inet6_ioctl + +ioctl$sock_inet6_SIOCADDRT(fd sock_in6, cmd const[SIOCADDRT], arg ptr[in, in6_rtmsg]) +ioctl$sock_inet6_SIOCDELRT(fd sock_in6, cmd const[SIOCDELRT], arg ptr[in, in6_rtmsg]) + +ioctl$sock_inet6_SIOCSIFADDR(fd sock_in6, cmd const[SIOCSIFADDR], arg ptr[in, in6_ifreq]) +ioctl$sock_inet6_SIOCDIFADDR(fd sock_in6, cmd const[SIOCDIFADDR], arg ptr[in, in6_ifreq]) +ioctl$sock_inet6_SIOCSIFDSTADDR(fd sock_in6, cmd const[SIOCSIFDSTADDR], arg ptr[in, in6_ifreq]) + +rtmsg_metrics = IP6_RT_PRIO_USER, IP6_RT_PRIO_ADDRCONF + +rtmsg_flags = RTF_UP, RTF_GATEWAY, RTF_HOST, RTF_REINSTATE, RTF_DYNAMIC, RTF_MODIFIED, RTF_MTU, RTF_WINDOW, RTF_IRTT, RTF_REJECT, RTF_DEFAULT, RTF_ALLONLINK, RTF_ADDRCONF, RTF_PREFIX_RT, RTF_ANYCAST, RTF_NONEXTHOP, RTF_EXPIRES, RTF_ROUTEINFO, RTF_CACHE, RTF_FLOW, RTF_POLICY, RTF_PCPU, RTF_LOCAL + +in6_rtmsg { + rtmsg_dst ipv6_addr + rtmsg_src ipv6_addr + rtmsg_gateway ipv6_addr + rtmsg_type int32 + rtmsg_dst_len int16 + rtmsg_src_len int16 + rtmsg_metric flags[rtmsg_metrics, int32] + rtmsg_info int64 + rtmsg_flags flags[rtmsg_flags, int32] + rtmsg_ifindex int32 +} + +in6_ifreq { + ifr6_addr ipv6_addr + ifr6_prefixlen int32 + ifr6_ifindex int32 +} |
