github.com/google/syzkaller@v0.0.0-20240517125934-c0f1611a36d6/sys/linux/socket_netlink_generic_seg6.txt (about) 1 # Copyright 2019 syzkaller project authors. All rights reserved. 2 # Use of this source code is governed by Apache 2 LICENSE that can be found in the LICENSE file. 3 4 # AF_NETLINK/NETLINK_GENERIC/seg6 support. 5 6 include <linux/net.h> 7 include <uapi/linux/netlink.h> 8 include <uapi/linux/genetlink.h> 9 include <uapi/linux/seg6_genl.h> 10 11 resource genl_seg6_family_id[int16] 12 type msghdr_nl_seg6[CMD] msghdr_netlink[netlink_msg_t[genl_seg6_family_id, genlmsghdr_t[CMD], seg6_genl_policy]] 13 14 syz_genetlink_get_family_id$SEG6(name ptr[in, string["SEG6"]], fd sock_nl_generic) genl_seg6_family_id 15 16 sendmsg$SEG6_CMD_SETHMAC(fd sock_nl_generic, msg ptr[in, msghdr_nl_seg6[SEG6_CMD_SETHMAC]], f flags[send_flags]) 17 sendmsg$SEG6_CMD_DUMPHMAC(fd sock_nl_generic, msg ptr[in, msghdr_nl_seg6[SEG6_CMD_DUMPHMAC]], f flags[send_flags]) 18 sendmsg$SEG6_CMD_SET_TUNSRC(fd sock_nl_generic, msg ptr[in, msghdr_nl_seg6[SEG6_CMD_SET_TUNSRC]], f flags[send_flags]) 19 sendmsg$SEG6_CMD_GET_TUNSRC(fd sock_nl_generic, msg ptr[in, msghdr_nl_seg6[SEG6_CMD_GET_TUNSRC]], f flags[send_flags]) 20 21 seg6_genl_policy [ 22 SEG6_ATTR_DST nlattr[SEG6_ATTR_DST, ipv6_addr] 23 SEG6_ATTR_DSTLEN nlattr[SEG6_ATTR_DSTLEN, int32] 24 SEG6_ATTR_HMACKEYID nlattr[SEG6_ATTR_HMACKEYID, int32] 25 SEG6_ATTR_SECRET nlattr[SEG6_ATTR_SECRET, array[int32, 0:SEG6_ATTR_SECRETLEN]] 26 SEG6_ATTR_SECRETLEN nlattr[SEG6_ATTR_SECRETLEN, int8[0:SEG6_ATTR_SECRETLEN]] 27 SEG6_ATTR_ALGID nlattr[SEG6_ATTR_ALGID, int8] 28 ] [varlen]