diff options
| author | Dmitry Vyukov <dvyukov@google.com> | 2018-05-17 12:16:18 +0200 |
|---|---|---|
| committer | Dmitry Vyukov <dvyukov@google.com> | 2018-05-17 12:16:18 +0200 |
| commit | be1a56115bbc3dac09ccb92162a8d5f8937ba492 (patch) | |
| tree | 243a050a36bbca9941e7883bc278252cfa568864 /sys/linux/tun.txt | |
| parent | 031c7941d7bd97b4acbf9bcd2513ed695b387ff2 (diff) | |
sys/linux: use optional in tun descriptions
Diffstat (limited to 'sys/linux/tun.txt')
| -rwxr-xr-x | sys/linux/tun.txt | 14 |
1 files changed, 2 insertions, 12 deletions
diff --git a/sys/linux/tun.txt b/sys/linux/tun.txt index ca0047e39..09d998b9a 100755 --- a/sys/linux/tun.txt +++ b/sys/linux/tun.txt @@ -40,21 +40,11 @@ ioctl$TUNSETVNETBE(fd fd_tun, cmd const[TUNSETVNETBE], arg ptr[in, bool32]) # virtio_net_hdr can be present or missing (depending on IFF_VNET_HDR). # We may want to support optional fields, which will make this simpler. tun_buffer { - pi tun_pi_or_void - hdr virtio_net_hdr_or_void + pi optional[tun_pi] + hdr optional[virtio_net_hdr] data tun_payload } [packed] -tun_pi_or_void [ - pi tun_pi - void void -] [varlen] - -virtio_net_hdr_or_void [ - hdr virtio_net_hdr - void void -] [varlen] - tun_pi { flags const[0, int16] proto flags[ether_types, int16be] |
