From 5b461e7ecd9556f9a54e1a5afc3ef962bc5cd11e Mon Sep 17 00:00:00 2001 From: Dmitry Vyukov Date: Mon, 14 Aug 2017 20:01:28 +0200 Subject: sys: reformat descriptions --- sys/socket.txt | 590 +++++++++++++++++++++++++++++---------------------------- 1 file changed, 300 insertions(+), 290 deletions(-) (limited to 'sys/socket.txt') diff --git a/sys/socket.txt b/sys/socket.txt index 6dbf4fad6..00af74e7d 100644 --- a/sys/socket.txt +++ b/sys/socket.txt @@ -41,7 +41,7 @@ setsockopt(fd sock, level int32, optname int32, optval buffer[in], optlen len[op socket_domain = AF_UNIX, AF_INET, AF_INET6, AF_IPX, AF_NETLINK, AF_X25, AF_AX25, AF_ATMPVC, AF_APPLETALK, AF_PACKET socket_type = SOCK_STREAM, SOCK_DGRAM, SOCK_RAW, SOCK_RDM, SOCK_SEQPACKET, SOCK_DCCP, SOCK_PACKET, SOCK_NONBLOCK, SOCK_CLOEXEC accept_flags = SOCK_NONBLOCK, SOCK_CLOEXEC -shutdown_flags = SHUT_RD, SHUT_WR +shutdown_flags = SHUT_RD, SHUT_WR send_flags = MSG_CONFIRM, MSG_DONTROUTE, MSG_DONTWAIT, MSG_EOR, MSG_MORE, MSG_NOSIGNAL, MSG_OOB, MSG_PROBE, MSG_BATCH, MSG_FASTOPEN recv_flags = MSG_CMSG_CLOEXEC, MSG_DONTWAIT, MSG_ERRQUEUE, MSG_OOB, MSG_PEEK, MSG_TRUNC, MSG_WAITALL, MSG_WAITFORONE cmsg_levels = SOL_SOCKET, IPPROTO_ICMP, SOL_IP, SOL_TCP, SOL_UDP, SOL_IPV6, SOL_ICMPV6, SOL_SCTP, SOL_UDPLITE, SOL_RAW, SOL_IPX, SOL_AX25, SOL_ATALK, SOL_NETROM, SOL_ROSE, SOL_DECNET, SOL_PACKET, SOL_ATM, SOL_AAL, SOL_IRDA, SOL_NETBEUI, SOL_LLC, SOL_DCCP, SOL_NETLINK, SOL_TIPC, SOL_RXRPC, SOL_PPPOL2TP, SOL_BLUETOOTH, SOL_PNPIPE, SOL_RDS, SOL_IUCV, SOL_CAIF, SOL_ALG, SOL_NFC, SOL_KCM @@ -154,8 +154,8 @@ send_msghdr { } send_mmsghdr { - msg_hdr send_msghdr - msg_len int32 + msg_hdr send_msghdr + msg_len int32 } recv_msghdr { @@ -169,8 +169,8 @@ recv_msghdr { } recv_mmsghdr { - msg_hdr recv_msghdr - msg_len int32 + msg_hdr recv_msghdr + msg_len int32 } cmsghdr { @@ -249,11 +249,11 @@ ioctl$sock_SIOCDELDLCI(fd sock, cmd const[SIOCDELDLCI], arg ptr[in, dlci_add]) ioctl$sock_SIOCBRADDBR(fd sock, cmd const[SIOCBRADDBR], arg ptr[in, devname]) ioctl$sock_SIOCBRDELBR(fd sock, cmd const[SIOCBRDELBR], arg ptr[in, devname]) -define SIOCDEVPRIVATE_BEG (SIOCDEVPRIVATE) -define SIOCDEVPRIVATE_END (SIOCDEVPRIVATE + 15) +define SIOCDEVPRIVATE_BEG (SIOCDEVPRIVATE) +define SIOCDEVPRIVATE_END (SIOCDEVPRIVATE + 15) -define SIOCPROTOPRIVATE_BEG (SIOCPROTOPRIVATE) -define SIOCPROTOPRIVATE_END (SIOCPROTOPRIVATE + 15) +define SIOCPROTOPRIVATE_BEG (SIOCPROTOPRIVATE) +define SIOCPROTOPRIVATE_END (SIOCPROTOPRIVATE + 15) ioctl$sock_netdev_private(fd sock, cmd int16[SIOCDEVPRIVATE_BEG:SIOCDEVPRIVATE_END], arg ptr[in, array[int8]]) ioctl$sock_proto_private(fd sock, cmd int16[SIOCPROTOPRIVATE_BEG:SIOCPROTOPRIVATE_END], arg ptr[in, array[int8]]) @@ -272,7 +272,6 @@ ifreq_SIOCGIFINDEX { pad array[const[0, int8], 20] } [packed] - ifreq_SIOCETHTOOL { ifr_ifrn devname ifr_ifru ptr[inout, ethtool_cmd_u] @@ -296,9 +295,9 @@ syzn_devname { devnames = "lo", "tunl0", "gre0", "gretap0", "ip_vti0", "ip6_vti0", "sit0", "ip6tnl0", "ip6gre0", "bond0", "dummy0", "eql", "ifb0", "ipddp0", "yam0", "bcsf0", "bcsh0", "teql0", "nr0", "rose0", "irlan0", "bpq0" devname [ - generic array[int8, IFNAMSIZ] - common string[devnames, IFNAMSIZ] - syzn syzn_devname + generic array[int8, IFNAMSIZ] + common string[devnames, IFNAMSIZ] + syzn syzn_devname ] ifr_ifru [ @@ -340,50 +339,50 @@ ifs_ifsu [ ] raw_hdlc_proto { - encode int16 - parity int16 + encode int16 + parity int16 } cisco_proto { - val int32 - timeout int32 + val int32 + timeout int32 } fr_proto { - t391 int32 - t392 int32 - n391 int32 - n392 int32 - n393 int32 - lmi int16 - dce int16 + t391 int32 + t392 int32 + n391 int32 + n392 int32 + n393 int32 + lmi int16 + dce int16 } fr_proto_pvc { - dlcl int32 + dlcl int32 } fr_proto_pvc_info { - dlci int32 - master devname + dlci int32 + master devname } sync_serial_settings { - rate int32 - type int32 - loop int16 + rate int32 + type int32 + loop int16 } te1_settings { - rate int32 - type int32 - loop int16 - slot int32 + rate int32 + type int32 + loop int16 + slot int32 } ifconf [ - buf ifconf_buf - req ifconf_req + buf ifconf_buf + req ifconf_req ] ifconf_buf { @@ -399,108 +398,108 @@ ifconf_req { brctl_cmds = BRCTL_GET_VERSION, BRCTL_GET_BRIDGES, BRCTL_ADD_BRIDGE, BRCTL_DEL_BRIDGE brctl_arg [ - get brctl_arg_get - add_del brctl_arg_add_del - generic brctl_arg_generic + get brctl_arg_get + add_del brctl_arg_add_del + generic brctl_arg_generic ] brctl_arg_get { - cmd const[BRCTL_GET_BRIDGES, int64] - buf ptr[out, array[int8]] - indices int64 + cmd const[BRCTL_GET_BRIDGES, int64] + buf ptr[out, array[int8]] + indices int64 } brctl_arg_add_del { - cmd const[BRCTL_ADD_BRIDGE, int64] - devname ptr[in, devname] - pad int64 + cmd const[BRCTL_ADD_BRIDGE, int64] + devname ptr[in, devname] + pad int64 } brctl_arg_generic { - a0 int64 - a1 int64 - a2 int64 + a0 int64 + a1 int64 + a2 int64 } dlci_add { - devname devname - dlci int16 + devname devname + dlci int16 } - - # ETHTOOL declaration part # http://elixir.free-electrons.com/linux/latest/source/include/uapi/linux/ethtool.h ethtool_cmd_flags = ETHTOOL_GSET, ETHTOOL_SSET, ETHTOOL_GDRVINFO, ETHTOOL_GREGS, ETHTOOL_GWOL, ETHTOOL_SWOL, ETHTOOL_GMSGLVL, ETHTOOL_SMSGLVL, ETHTOOL_NWAY_RST, ETHTOOL_GLINK, ETHTOOL_GEEPROM, ETHTOOL_SEEPROM, ETHTOOL_GCOALESCE, ETHTOOL_SCOALESCE, ETHTOOL_GRINGPARAM, ETHTOOL_SRINGPARAM, ETHTOOL_GPAUSEPARAM, ETHTOOL_SPAUSEPARAM, ETHTOOL_GRXCSUM, ETHTOOL_SRXCSUM, ETHTOOL_GTXCSUM, ETHTOOL_STXCSUM, ETHTOOL_GSG, ETHTOOL_SSG, ETHTOOL_TEST, ETHTOOL_GSTRINGS, ETHTOOL_PHYS_ID, ETHTOOL_GSTATS, ETHTOOL_GTSO, ETHTOOL_STSO, ETHTOOL_GPERMADDR, ETHTOOL_GUFO, ETHTOOL_SUFO, ETHTOOL_GGSO, ETHTOOL_SGSO, ETHTOOL_GFLAGS, ETHTOOL_SFLAGS, ETHTOOL_GPFLAGS, ETHTOOL_SPFLAGS, ETHTOOL_GRXFH, ETHTOOL_SRXFH, ETHTOOL_GGRO, ETHTOOL_SGRO, ETHTOOL_GRXRINGS, ETHTOOL_GRXCLSRLCNT, ETHTOOL_GRXCLSRULE, ETHTOOL_GRXCLSRLALL, ETHTOOL_SRXCLSRLDEL, ETHTOOL_SRXCLSRLINS, ETHTOOL_FLASHDEV, ETHTOOL_RESET, ETHTOOL_SRXNTUPLE, ETHTOOL_GRXNTUPLE, ETHTOOL_GSSET_INFO, ETHTOOL_GRXFHINDIR, ETHTOOL_SRXFHINDIR, ETHTOOL_GFEATURES, ETHTOOL_SFEATURES, ETHTOOL_GCHANNELS, ETHTOOL_SCHANNELS, ETHTOOL_SET_DUMP, ETHTOOL_GET_DUMP_FLAG, ETHTOOL_GET_DUMP_DATA, ETHTOOL_GET_TS_INFO, ETHTOOL_GMODULEINFO, ETHTOOL_GMODULEEEPROM, ETHTOOL_GEEE, ETHTOOL_SEEE, ETHTOOL_GRSSH, ETHTOOL_SRSSH, ETHTOOL_GTUNABLE, ETHTOOL_STUNABLE, ETHTOOL_GPHYSTATS, ETHTOOL_PERQUEUE, ETHTOOL_GLINKSETTINGS, ETHTOOL_SLINKSETTINGS, ETHTOOL_PHY_GTUNABLE, ETHTOOL_PHY_STUNABLE ethtool_cmd_u [ - ethtool_cmd ethtool_cmd - ethtool_drvinfo ethtool_drvinfo - ethtool_wolinfo ethtool_wolinfo - ethtool_regs ethtool_regs - ethtool_eeprom ethtool_eeprom - ethtool_eee ethtool_eee - ethtool_modinfo ethtool_modinfo - ethtool_coalesce ethtool_coalesce - ethtool_ringparam ethtool_ringparam - ethtool_channels ethtool_channels - ethtool_pauseparam ethtool_pauseparam - ethtool_gstrings ethtool_gstrings - ethtool_sset_info ethtool_sset_info - ethtool_test ethtool_test - ethtool_stats ethtool_stats - ethtool_perm_addr ethtool_perm_addr - ethtool_rxnfc ethtool_rxnfc - ethtool_rxfh_indir ethtool_rxfh_indir - ethtool_rxfh ethtool_rxfh - ethtool_rx_ntuple ethtool_rx_ntuple - ethtool_flash ethtool_flash - ethtool_dump ethtool_dump - ethtool_gfeatures ethtool_gfeatures - ethtool_sfeatures ethtool_sfeatures - ethtool_ts_info ethtool_ts_info - ethtool_per_queue_op ethtool_per_queue_op - ethtool_link_settings ethtool_link_settings -][varlen] + ethtool_cmd ethtool_cmd + ethtool_drvinfo ethtool_drvinfo + ethtool_wolinfo ethtool_wolinfo + ethtool_regs ethtool_regs + ethtool_eeprom ethtool_eeprom + ethtool_eee ethtool_eee + ethtool_modinfo ethtool_modinfo + ethtool_coalesce ethtool_coalesce + ethtool_ringparam ethtool_ringparam + ethtool_channels ethtool_channels + ethtool_pauseparam ethtool_pauseparam + ethtool_gstrings ethtool_gstrings + ethtool_sset_info ethtool_sset_info + ethtool_test ethtool_test + ethtool_stats ethtool_stats + ethtool_perm_addr ethtool_perm_addr + ethtool_rxnfc ethtool_rxnfc + ethtool_rxfh_indir ethtool_rxfh_indir + ethtool_rxfh ethtool_rxfh + ethtool_rx_ntuple ethtool_rx_ntuple + ethtool_flash ethtool_flash + ethtool_dump ethtool_dump + ethtool_gfeatures ethtool_gfeatures + ethtool_sfeatures ethtool_sfeatures + ethtool_ts_info ethtool_ts_info + ethtool_per_queue_op ethtool_per_queue_op + ethtool_link_settings ethtool_link_settings +] [varlen] ethtool_cmd_flags = ETHTOOL_GSET, ETHTOOL_SSET + ethtool_cmd { - cmd flags[ethtool_cmd_flags, int32] - supported int32 - advertising int32 - speed int16 - duplex int8 - port int8 - phy_address int8 - transceiver int8 - autoneg int8 - mdio_support int8 - maxtxpkt int32 - maxrxpkt int32 - speed_hi int16 - eth_tp_mdix int8 - eth_tp_mdix_ctrl int8 - lp_advertising int32 - reserved array[int32, 2] + cmd flags[ethtool_cmd_flags, int32] + supported int32 + advertising int32 + speed int16 + duplex int8 + port int8 + phy_address int8 + transceiver int8 + autoneg int8 + mdio_support int8 + maxtxpkt int32 + maxrxpkt int32 + speed_hi int16 + eth_tp_mdix int8 + eth_tp_mdix_ctrl int8 + lp_advertising int32 + reserved array[int32, 2] } ethtool_drvinfo { - cmd const[ETHTOOL_GDRVINFO, int32] - driver array[int8, 32] - version array[int8, 32] - fw_version array[int8, ETHTOOL_FWVERS_LEN] - bus_info array[int8, ETHTOOL_BUSINFO_LEN] - erom_version array[int8, ETHTOOL_EROMVERS_LEN] - reserved2 array[int8, 12] - n_priv_flags int32 - n_stats int32 - testinfo_len int32 - eedump_len int32 - regdump_len int32 + cmd const[ETHTOOL_GDRVINFO, int32] + driver array[int8, 32] + version array[int8, 32] + fw_version array[int8, ETHTOOL_FWVERS_LEN] + bus_info array[int8, ETHTOOL_BUSINFO_LEN] + erom_version array[int8, ETHTOOL_EROMVERS_LEN] + reserved2 array[int8, 12] + n_priv_flags int32 + n_stats int32 + testinfo_len int32 + eedump_len int32 + regdump_len int32 } ethtool_wolinfo_cmd_flags = ETHTOOL_GWOL, ETHTOOL_SWOL + ethtool_wolinfo { cmd flags[ethtool_wolinfo_cmd_flags, int32] supported int32 @@ -509,95 +508,101 @@ ethtool_wolinfo { } ethtool_regs { - cmd const[ETHTOOL_GREGS, int32] - version int32 - len len[data, int32] - data array[int8] + cmd const[ETHTOOL_GREGS, int32] + version int32 + len len[data, int32] + data array[int8] } ethtool_eeprom_cmd_flags = ETHTOOL_GEEPROM, ETHTOOL_GMODULEEEPROM, ETHTOOL_SEEPROM + ethtool_eeprom { - cmd flags[ethtool_eeprom_cmd_flags, int32] - magic int32 - offset int32 - len len[data, int32] - data array[int8] + cmd flags[ethtool_eeprom_cmd_flags, int32] + magic int32 + offset int32 + len len[data, int32] + data array[int8] } ethtool_eee_cmd_flags = ETHTOOL_GEEE, ETHTOOL_SEEE + ethtool_eee { - cmd flags[ethtool_eee_cmd_flags, int32] - supported int32 - advertised int32 - lp_advertised int32 - eee_active int32 - eee_enabled int32 - tx_lpi_enabled int32 - tx_lpi_timer int32 - reserved array[int32, 2] + cmd flags[ethtool_eee_cmd_flags, int32] + supported int32 + advertised int32 + lp_advertised int32 + eee_active int32 + eee_enabled int32 + tx_lpi_enabled int32 + tx_lpi_timer int32 + reserved array[int32, 2] } ethtool_modinfo { - cmd const[ETHTOOL_GMODULEINFO, int32] - type int32 - eeprom_len int32 - reserved array[int8, 8] + cmd const[ETHTOOL_GMODULEINFO, int32] + type int32 + eeprom_len int32 + reserved array[int8, 8] } ethtool_coalesce_cmd_flags = ETHTOOL_GCOALESCE, ETHTOOL_SCOALESCE + ethtool_coalesce { - cmd flags[ethtool_coalesce_cmd_flags, int32] - rx_coalesce_usecs int32 - rx_max_coalesced_frames int32 - rx_coalesce_usecs_irq int32 - rx_max_coalesced_frames_irq int32 - tx_coalesce_usecs int32 - tx_max_coalesced_frames int32 - tx_coalesce_usecs_irq int32 - tx_max_coalesced_frames_irq int32 - stats_block_coalesce_usecs int32 - use_adaptive_rx_coalesce int32 - use_adaptive_tx_coalesce int32 - pkt_rate_low int32 - rx_coalesce_usecs_low int32 - rx_max_coalesced_frames_low int32 - tx_coalesce_usecs_low int32 - tx_max_coalesced_frames_low int32 - pkt_rate_high int32 - rx_coalesce_usecs_high int32 - rx_max_coalesced_frames_high int32 - tx_coalesce_usecs_high int32 - tx_max_coalesced_frames_high int32 - rate_sample_interval int32 + cmd flags[ethtool_coalesce_cmd_flags, int32] + rx_coalesce_usecs int32 + rx_max_coalesced_frames int32 + rx_coalesce_usecs_irq int32 + rx_max_coalesced_frames_irq int32 + tx_coalesce_usecs int32 + tx_max_coalesced_frames int32 + tx_coalesce_usecs_irq int32 + tx_max_coalesced_frames_irq int32 + stats_block_coalesce_usecs int32 + use_adaptive_rx_coalesce int32 + use_adaptive_tx_coalesce int32 + pkt_rate_low int32 + rx_coalesce_usecs_low int32 + rx_max_coalesced_frames_low int32 + tx_coalesce_usecs_low int32 + tx_max_coalesced_frames_low int32 + pkt_rate_high int32 + rx_coalesce_usecs_high int32 + rx_max_coalesced_frames_high int32 + tx_coalesce_usecs_high int32 + tx_max_coalesced_frames_high int32 + rate_sample_interval int32 } ethtool_ringparam_cmd_flags = ETHTOOL_GRINGPARAM, ETHTOOL_SRINGPARAM + ethtool_ringparam { - cmd flags[ethtool_ringparam_cmd_flags, int32] - rx_max_pending int32 - rx_mini_max_pending int32 - rx_jumbo_max_pending int32 - tx_max_pending int32 - rx_pending int32 - rx_mini_pending int32 - rx_jumbo_pending int32 - tx_pending int32 + cmd flags[ethtool_ringparam_cmd_flags, int32] + rx_max_pending int32 + rx_mini_max_pending int32 + rx_jumbo_max_pending int32 + tx_max_pending int32 + rx_pending int32 + rx_mini_pending int32 + rx_jumbo_pending int32 + tx_pending int32 } ethtool_channels_cmd_flags = ETHTOOL_GCHANNELS, ETHTOOL_SCHANNELS + ethtool_channels { - cmd flags[ethtool_channels_cmd_flags, int32] - max_rx int32 - max_tx int32 - max_other int32 - max_combined int32 - rx_count int32 - tx_count int32 - other_count int32 - combined_count int32 + cmd flags[ethtool_channels_cmd_flags, int32] + max_rx int32 + max_tx int32 + max_other int32 + max_combined int32 + rx_count int32 + tx_count int32 + other_count int32 + combined_count int32 } ethtool_pauseparam_cmd_flags = ETHTOOL_GPAUSEPARAM, ETHTOOL_SPAUSEPARAM + ethtool_pauseparam { cmd flags[ethtool_pauseparam_cmd_flags, int32] autoneg int32 @@ -606,77 +611,78 @@ ethtool_pauseparam { } ethtool_gstrings { - cmd const[ETHTOOL_GSTRINGS, int32] - string_set int32 - len len[data, int32] - data array[int8] + cmd const[ETHTOOL_GSTRINGS, int32] + string_set int32 + len len[data, int32] + data array[int8] } ethtool_sset_info { - cmd const[ETHTOOL_GSSET_INFO, int32] - reserved int32 - sset_mask int64 - data array[int32] + cmd const[ETHTOOL_GSSET_INFO, int32] + reserved int32 + sset_mask int64 + data array[int32] } ethtool_test { - cmd const[ETHTOOL_TEST, int32] - flags int32 - reserved int32 - len len[data, int32] - data array[int64] + cmd const[ETHTOOL_TEST, int32] + flags int32 + reserved int32 + len len[data, int32] + data array[int64] } ethtool_stats { - cmd const[ETHTOOL_GSTATS, int32] - n_stats len[data, int32] - data array[int64] + cmd const[ETHTOOL_GSTATS, int32] + n_stats len[data, int32] + data array[int64] } ethtool_perm_addr { - cmd const[ETHTOOL_GPERMADDR, int32] - size len[data, int32] - data array[int8] + cmd const[ETHTOOL_GPERMADDR, int32] + size len[data, int32] + data array[int8] } # http://elixir.free-electrons.com/linux/latest/source/include/uapi/linux/ethtool.h#L1565 traffic_flow_types = TCP_V4_FLOW, UDP_V4_FLOW, SCTP_V4_FLOW, AH_ESP_V4_FLOW, TCP_V6_FLOW, UDP_V6_FLOW, SCTP_V6_FLOW, AH_ESP_V6_FLOW, AH_V4_FLOW, ESP_V4_FLOW, AH_V6_FLOW, ESP_V6_FLOW, IPV4_USER_FLOW, IP_USER_FLOW, IPV6_USER_FLOW, IPV4_FLOW, IPV6_FLOW, ETHER_FLOW ethtool_rxnfc_cmd_flags = ETHTOOL_GRXFH, ETHTOOL_SRXFH, ETHTOOL_GRXRINGS, ETHTOOL_GRXCLSRLCNT, ETHTOOL_GRXCLSRULE, ETHTOOL_GRXCLSRLALL, ETHTOOL_SRXCLSRLDEL, ETHTOOL_SRXCLSRLINS + ethtool_rxnfc { - cmd flags[ethtool_rxnfc_cmd_flags, int32] - flow_type flags[traffic_flow_types, int32] - data int64 - fs ethtool_rx_flow_spec - rule_cnt len[rule_locs, int32] - rule_locs array[int32] + cmd flags[ethtool_rxnfc_cmd_flags, int32] + flow_type flags[traffic_flow_types, int32] + data int64 + fs ethtool_rx_flow_spec + rule_cnt len[rule_locs, int32] + rule_locs array[int32] } ethtool_rx_flow_spec { - flow_type flags[traffic_flow_types, int32] - h_u ethtool_flow_union - h_ext ethtool_flow_ext - m_u ethtool_flow_union - m_ext ethtool_flow_ext - ring_cookie int64 - location int32 + flow_type flags[traffic_flow_types, int32] + h_u ethtool_flow_union + h_ext ethtool_flow_ext + m_u ethtool_flow_union + m_ext ethtool_flow_ext + ring_cookie int64 + location int32 } ethtool_flow_union [ - tcp_ip4_spec ethtool_tcpip4_spec - udp_ip4_spec ethtool_tcpip4_spec - sctp_ip4_spec ethtool_tcpip4_spec - ah_ip4_spec ethtool_ah_espip4_spec - esp_ip4_spec ethtool_ah_espip4_spec - usr_ip4_spec ethtool_usrip4_spec - tcp_ip6_spec ethtool_tcpip6_spec - udp_ip6_spec ethtool_tcpip6_spec - sctp_ip6_spec ethtool_tcpip6_spec - ah_ip6_spec ethtool_ah_espip6_spec - esp_ip6_spec ethtool_ah_espip6_spec - usr_ip6_spec ethtool_usrip6_spec - ether_spec ethhdr - hdata array[int8, 52] + tcp_ip4_spec ethtool_tcpip4_spec + udp_ip4_spec ethtool_tcpip4_spec + sctp_ip4_spec ethtool_tcpip4_spec + ah_ip4_spec ethtool_ah_espip4_spec + esp_ip4_spec ethtool_ah_espip4_spec + usr_ip4_spec ethtool_usrip4_spec + tcp_ip6_spec ethtool_tcpip6_spec + udp_ip6_spec ethtool_tcpip6_spec + sctp_ip6_spec ethtool_tcpip6_spec + ah_ip6_spec ethtool_ah_espip6_spec + esp_ip6_spec ethtool_ah_espip6_spec + usr_ip6_spec ethtool_usrip6_spec + ether_spec ethhdr + hdata array[int8, 52] ] ethtool_flow_ext { @@ -688,18 +694,18 @@ ethtool_flow_ext { } ethtool_tcpip4_spec { - ip4src ipv4_addr - ip4dst ipv4_addr - psrc proc[int16be, 20000, 4] - pdst proc[int16be, 20000, 4] - tos int8 + ip4src ipv4_addr + ip4dst ipv4_addr + psrc proc[int16be, 20000, 4] + pdst proc[int16be, 20000, 4] + tos int8 } ethtool_ah_espip4_spec { - ip4src ipv4_addr - ip4dst ipv4_addr - spi int32be - tos int8 + ip4src ipv4_addr + ip4dst ipv4_addr + spi int32be + tos int8 } ethtool_usrip4_spec { @@ -712,18 +718,18 @@ ethtool_usrip4_spec { } ethtool_tcpip6_spec { - ip6src ipv6_addr - ip6dst ipv6_addr - psrc proc[int16be, 20000, 4] - pdst proc[int16be, 20000, 4] - tclass int8 + ip6src ipv6_addr + ip6dst ipv6_addr + psrc proc[int16be, 20000, 4] + pdst proc[int16be, 20000, 4] + tclass int8 } ethtool_ah_espip6_spec { - ip6src ipv6_addr - ip6dst ipv6_addr - spi int32be - tclass int8 + ip6src ipv6_addr + ip6dst ipv6_addr + spi int32be + tclass int8 } ethtool_usrip6_spec { @@ -741,6 +747,7 @@ ethhdr { } [packed] ethtool_rxfh_indir_flags = ETHTOOL_GRXFHINDIR, ETHTOOL_SRXFHINDIR + ethtool_rxfh_indir { cmd flags[ethtool_rxfh_indir_flags, int32] size len[ring_index, int32] @@ -750,31 +757,32 @@ ethtool_rxfh_indir { ethtool_rxfh_cmd_flags = ETHTOOL_GRSSH, ETHTOOL_SRSSH ethtool_rxfh { - cmd flags[ethtool_rxfh_cmd_flags, int32] - rss_context int32 - indir_size int32 - key_size int32 - hfunc int8 - rsvd8 array[int8, 3] - rsvd32 int32 - rss_config array[int32] + cmd flags[ethtool_rxfh_cmd_flags, int32] + rss_context int32 + indir_size int32 + key_size int32 + hfunc int8 + rsvd8 array[int8, 3] + rsvd32 int32 + rss_config array[int32] } ethtool_rx_ntuple { - cmd const[ETHTOOL_SRXNTUPLE, int32] - fs ethtool_rx_ntuple_flow_spec + cmd const[ETHTOOL_SRXNTUPLE, int32] + fs ethtool_rx_ntuple_flow_spec } ethtool_rx_ntuple_flow_spec_action_flags = ETHTOOL_RXNTUPLE_ACTION_DROP, ETHTOOL_RXNTUPLE_ACTION_CLEAR + ethtool_rx_ntuple_flow_spec { - flow_type flags[traffic_flow_types, int32] - h_u ethtool_rx_ntuple_flow_spec_union - m_u ethtool_rx_ntuple_flow_spec_union - vlan_tag int16 - vlan_tag_mask int16 - data int64 - data_mask int64 - action flags[ethtool_rx_ntuple_flow_spec_action_flags, int32] + flow_type flags[traffic_flow_types, int32] + h_u ethtool_rx_ntuple_flow_spec_union + m_u ethtool_rx_ntuple_flow_spec_union + vlan_tag int16 + vlan_tag_mask int16 + data int64 + data_mask int64 + action flags[ethtool_rx_ntuple_flow_spec_action_flags, int32] } ethtool_rx_ntuple_flow_spec_union [ @@ -785,22 +793,23 @@ ethtool_rx_ntuple_flow_spec_union [ esp_ip4_spec ethtool_ah_espip4_spec usr_ip4_spec ethtool_usrip4_spec ether_spec ethhdr - hdata array[int8, 72] + hdata array[int8, 72] ] ethtool_flash { - cmd const[ETHTOOL_FLASHDEV, int32] - region int32 - data array[int8, ETHTOOL_FLASH_MAX_FILENAME] + cmd const[ETHTOOL_FLASHDEV, int32] + region int32 + data array[int8, ETHTOOL_FLASH_MAX_FILENAME] } ethtool_dump_cmd_flags = ETHTOOL_GET_DUMP_FLAG, ETHTOOL_GET_DUMP_DATA, ETHTOOL_SET_DUMP + ethtool_dump { - cmd flags[ethtool_dump_cmd_flags, int32] - version int32 - flag int32 - len len[data, int32] - data array[int8] + cmd flags[ethtool_dump_cmd_flags, int32] + version int32 + flag int32 + len len[data, int32] + data array[int8] } ethtool_gfeatures { @@ -810,10 +819,10 @@ ethtool_gfeatures { } ethtool_get_features_block { - available int32 - requested int32 - active int32 - never_changed int32 + available int32 + requested int32 + active int32 + never_changed int32 } ethtool_sfeatures { @@ -828,34 +837,35 @@ ethtool_set_features_block { } ethtool_ts_info { - cmd const[ETHTOOL_GET_TS_INFO, int32] - so_timestamping int32 - phc_index int32 - tx_types int32 - tx_reserved array[int32, 3] - rx_filters int32 - rx_reserved array[int32, 3] + cmd const[ETHTOOL_GET_TS_INFO, int32] + so_timestamping int32 + phc_index int32 + tx_types int32 + tx_reserved array[int32, 3] + rx_filters int32 + rx_reserved array[int32, 3] } ethtool_per_queue_op { - cmd const[ETHTOOL_PERQUEUE, int32] - sub_command int32 - queue_mask array[int32, MAX_NUM_QUEUE] - data array[int8] + cmd const[ETHTOOL_PERQUEUE, int32] + sub_command int32 + queue_mask array[int32, MAX_NUM_QUEUE] + data array[int8] } ethtool_link_settings_cmd_flags = ETHTOOL_GLINKSETTINGS, ETHTOOL_SLINKSETTINGS + ethtool_link_settings { - cmd flags[ethtool_link_settings_cmd_flags, int32] - speed int32 - duplex int8 - port int8 - phy_address int8 - autoneg int8 - mdio_support int8 - eth_tp_mdix int8 - eth_tp_mdix_ctrl int8 - link_mode_masks_nwords int8 - reserved array[int32, 8] - link_mode_masks array[int32] + cmd flags[ethtool_link_settings_cmd_flags, int32] + speed int32 + duplex int8 + port int8 + phy_address int8 + autoneg int8 + mdio_support int8 + eth_tp_mdix int8 + eth_tp_mdix_ctrl int8 + link_mode_masks_nwords int8 + reserved array[int32, 8] + link_mode_masks array[int32] } -- cgit mrf-deployment