aboutsummaryrefslogtreecommitdiffstats
path: root/sys/linux/socket_netlink_generic_team.txt
Commit message (Collapse)AuthorAgeFilesLines
* sys/linux: change netlink policies to the new $ conventionDmitry Vyukov2022-01-131-10/+10
|
* sys/linux: don't use len/flags/const/proc types in out fieldsDmitry Vyukov2022-01-111-1/+1
| | | | | | | | | | | | | | | | | | | | | | | | | | Remove all uses of len/flags/const/proc types in explicitly marked out fields. Use of these types for out fields does not make sense: a len[b, int32] (out) b flags[foo, int32] (out) Since kernel fills these fields, that's unnecessary details or bugs in descriptions. In particular all of these are actually bugs: ioctl$TUNSETQUEUE(fd fd_tun, cmd const[TUNSETQUEUE], arg ptr[in, ifreq_t[flags[tun_queue_flags, int16]]]) ioctl$TUNSETIFF(fd fd_tun, cmd const[TUNSETIFF], arg ptr[in, ifreq_t[flags[tun_setiff_flags, int16]]]) ioctl$SIOCSIFHWADDR(fd fd_tun, cmd const[SIOCSIFHWADDR], arg ptr[in, ifreq_t[mac_addr]]) ioctl$sock_inet_SIOCSIFADDR(fd sock, cmd const[SIOCSIFADDR], arg ptr[inout, ifreq_t[sockaddr_in]]) ioctl$sock_inet_SIOCSIFBRDADDR(fd sock, cmd const[SIOCSIFBRDADDR], arg ptr[inout, ifreq_t[sockaddr_in]]) ioctl$sock_inet_SIOCSIFNETMASK(fd sock, cmd const[SIOCSIFNETMASK], arg ptr[inout, ifreq_t[sockaddr_in]]) ioctl$sock_inet_SIOCSIFDSTADDR(fd sock, cmd const[SIOCSIFDSTADDR], arg ptr[inout, ifreq_t[sockaddr_in]]) ioctl$sock_inet_SIOCSIFPFLAGS(fd sock, cmd const[SIOCSIFPFLAGS], arg ptr[inout, ifreq_t[int32]]) ioctl$SIOCSIFMTU(fd sock_pppl2tp, cmd const[SIOCSIFMTU], arg ptr[in, ifreq_t[int32]]) ioctl$sock_SIOCETHTOOL(fd sock, cmd const[SIOCETHTOOL], arg ptr[inout, ifreq_t[ptr[inout, ethtool_cmd_u]]]) We pretend that we pass in some flags or addresses, but the ifreq field was marked as (out), so we actually did not pass anything in.
* sys/linux: add ieee802154 descriptionsDmitry Vyukov2021-02-121-1/+1
|
* sys/linux: enhance ifreq_dev_t definition by setting attribute directionsAleksandr Nogikh2020-09-221-1/+1
| | | | | This modification allows to remove [opt] modified for all uses of ifreq_dev_t and ifreq_t
* pkg/compiler: refactor attribute handlingDmitry Vyukov2020-04-191-4/+4
| | | | | | | | | | | | Introduce common infrastructure for describing and parsing attribute instead of custom per-attribute code scattered across several locations. Change align attribute syntax from the weird align_N to align[N]. This also allows to use literal constants as N. Introduce notion of builtin constants. Currently we have only PTR_SIZE, which is needed to replace align_ptr with align[PTR_SIZE].
* tools: add script that checks copyright headersDmitry Vyukov2020-02-181-1/+1
| | | | Fixes #1604
* sys/linux: mark all nested netlink attributes as nlnestDmitry Vyukov2020-01-221-1/+1
| | | | | | | | | | | As far as I understand most subsystems don't care about the nest flag, but some do. But marking them as nest won't harm (?). Let's mark all of them. Caught several cases where should have been used array[policy] but used just policy. Update #590
* sys: mark output resources as optDmitry Vyukov2018-06-181-1/+1
| | | | | Mark output resources as opt in preparation for more precise constructor calculation.
* sys/linux: improve team descriptionsDmitry Vyukov2018-04-061-45/+32
| | | | | | | | | | | | | | | | | | | 1. Create ifindex_team, because TEAM_ATTR_TEAM_IFINDEX must always point to a team device. 2. Remove output only attributes like team_attr_item_port, TEAM_ATTR_LIST_PORT, TEAM_ATTR_OPTION_CHANGED. 3. Restructure team_nl_option_policy: we always want TEAM_ATTR_OPTION_NAME/TYPE/DATA + optionally TEAM_ATTR_OPTION_ARRAY_INDEX and TEAM_ATTR_OPTION_PORT_IFINDEX. 4. Provide specialized team_nl_option_policy_per_port and team_nl_option_policy_array. 5. Make team_attr_option varlen. 6. Remove unnecessary indirection via team_attr_list_option/team_attr_list_port. 7. Fix data type for bpf_hash_func and lb_tx_hash_to_port_mapping.
* sys/linux: add netlink generic team descriptionsHangbin Liu2018-04-061-0/+80
Signed-off-by: Hangbin Liu <liuhangbin@gmail.com>