| Commit message (Collapse) | Author | Age | Files | Lines | |
|---|---|---|---|---|---|
| * | sys/linux: don't use len/flags/const/proc types in out fields | Dmitry Vyukov | 2022-01-11 | 1 | -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: enhance ifreq_dev_t definition by setting attribute directions | Aleksandr Nogikh | 2020-09-22 | 1 | -1/+1 |
| | | | | | | This modification allows to remove [opt] modified for all uses of ifreq_dev_t and ifreq_t | ||||
| * | pkg/compiler: refactor attribute handling | Dmitry Vyukov | 2020-04-19 | 1 | -1/+1 |
| | | | | | | | | | | | | | 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]. | ||||
| * | pkg/compiler: don't mark flags with 0 as bitmask | Dmitry Vyukov | 2020-01-18 | 1 | -1/+1 |
| | | | | | | | | They can't be a bitmask. This fixes important cases of "0, 1" and "0, 1, 2" flags. Fix some descriptions that added 0 to bitmasks explicitly (we should do it automatically instead). | ||||
| * | sys/linux: fix SIOCGIFINDEX | Dmitry Vyukov | 2020-01-03 | 1 | -1/+1 |
| | | | | | | | | Mark ifindex as opt in SIOCGIFINDEX. Otherwise it's considered inout and SIOCGIFINDEX can't be used to produce ifindex'es on its own. It requires an input ifindex first and only then it can output own ifindex. | ||||
| * | sys/linux: improve CAN descriptions | Dmitry Vyukov | 2019-11-04 | 1 | -8/+11 |
| | | |||||
| * | executor: fix setup of vxcan | Dmitry Vyukov | 2019-11-03 | 1 | -2/+2 |
| | | | | | Adding vxcan1 also adds vxcan0. Setup and use both. | ||||
| * | sys/linux: extend CAN descriptions | Dmitry Vyukov | 2019-11-02 | 1 | -3/+73 |
| | | |||||
| * | executor: create team device | Dmitry Vyukov | 2018-04-06 | 1 | -1/+1 |
| | | |||||
| * | sys/linux: make ifreq template, fix some usages | Dmitry Vyukov | 2018-03-05 | 1 | -6/+1 |
| | | |||||
| * | sys/linux: use size attributes on structs | Dmitry Vyukov | 2018-03-05 | 1 | -2/+1 |
| | | | | | | | | | | | | 1. Add size attribte on sockaddr. 2. Remove sockaddr's that are larger than 16 bytes from sockaddr. 3. Add size attribute on sockaddr_storage which wasn't actually 128 bytes. 4. Add size attribute to ifreq. 5. Fix ifmap field types as uncovered by the size attributes. 6. Fix sockaddr_storage_tcp from struct to union which is should be. 7. Make sockaddr_un_file fixed size as it should be. 8. Fix some explicit paddings that were only correct for 64 bits. | ||||
| * | sys/linux: add vnet descriptions for GRE, MPLS, CAN | Dmitry Vyukov | 2018-01-14 | 1 | -2/+5 |
| | | |||||
| * | sys/linux: add AF_CAN descriptions | Dmitry Vyukov | 2018-01-13 | 1 | -0/+87 |
