diff options
| author | Dmitry Vyukov <dvyukov@google.com> | 2020-02-12 11:39:35 +0100 |
|---|---|---|
| committer | Dmitry Vyukov <dvyukov@google.com> | 2020-02-12 11:50:15 +0100 |
| commit | 84f4fc8afc9aedba4b3afa4bb76c3df6c6352c07 (patch) | |
| tree | 2a05cff822e34a93d08f787539ae065ee9af63e4 /sys/linux/gen/amd64.go | |
| parent | a75b198cd071926905c294db80393240f55a9a0f (diff) | |
sys/linux: add SO_BINDTODEVICE specialization for wireguard
SO_BINDTODEVICE for wg devices allows to reach very important
part of functionality (wg_xmit).
Update #806
Diffstat (limited to 'sys/linux/gen/amd64.go')
| -rw-r--r-- | sys/linux/gen/amd64.go | 9 |
1 files changed, 8 insertions, 1 deletions
diff --git a/sys/linux/gen/amd64.go b/sys/linux/gen/amd64.go index e488954d1..bd105dc09 100644 --- a/sys/linux/gen/amd64.go +++ b/sys/linux/gen/amd64.go @@ -62664,6 +62664,13 @@ var syscalls_amd64 = []*Syscall{ &PtrType{TypeCommon{TypeName: "ptr", FldName: "optval", TypeSize: 8}, &BufferType{TypeCommon: TypeCommon{TypeName: "string", TypeSize: 16}, Kind: 2, SubKind: "devnames", Values: []string{"\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00", "lo\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00", "tunl0\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00", "gre0\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00", "gretap0\x00\x00\x00\x00\x00\x00\x00\x00\x00", "ip_vti0\x00\x00\x00\x00\x00\x00\x00\x00\x00", "ip6_vti0\x00\x00\x00\x00\x00\x00\x00\x00", "sit0\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00", "ip6tnl0\x00\x00\x00\x00\x00\x00\x00\x00\x00", "ip6gre0\x00\x00\x00\x00\x00\x00\x00\x00\x00", "ip6gretap0\x00\x00\x00\x00\x00\x00", "bond0\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00", "dummy0\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00", "nr0\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00", "rose0\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00", "erspan0\x00\x00\x00\x00\x00\x00\x00\x00\x00", "vlan0\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00", "bridge0\x00\x00\x00\x00\x00\x00\x00\x00\x00", "vcan0\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00", "team0\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00", "syz_tun\x00\x00\x00\x00\x00\x00\x00\x00\x00", "veth0\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00", "veth1\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00", "veth0_to_bridge\x00", "veth1_to_bridge\x00", "veth0_to_bond\x00\x00\x00", "veth1_to_bond\x00\x00\x00", "veth0_to_team\x00\x00\x00", "veth1_to_team\x00\x00\x00", "bridge_slave_0\x00\x00", "bridge_slave_1\x00\x00", "bond_slave_0\x00\x00\x00\x00", "bond_slave_1\x00\x00\x00\x00", "team_slave_0\x00\x00\x00\x00", "team_slave_1\x00\x00\x00\x00", "syzkaller0\x00\x00\x00\x00\x00\x00", "syzkaller1\x00\x00\x00\x00\x00\x00", "veth0_to_hsr\x00\x00\x00\x00", "veth1_to_hsr\x00\x00\x00\x00", "hsr0\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00", "ip6erspan0\x00\x00\x00\x00\x00\x00", "vxcan1\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00", "caif0\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00", "batadv0\x00\x00\x00\x00\x00\x00\x00\x00\x00", "veth0_to_batadv\x00", "veth1_to_batadv\x00", "batadv_slave_0\x00\x00", "batadv_slave_1\x00\x00", "netdevsim0\x00\x00\x00\x00\x00\x00", "netpci0\x00\x00\x00\x00\x00\x00\x00\x00\x00", "xfrm0\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00", "veth0_virt_wifi\x00", "veth1_virt_wifi\x00", "virt_wifi0\x00\x00\x00\x00\x00\x00", "veth0_vlan\x00\x00\x00\x00\x00\x00", "veth1_vlan\x00\x00\x00\x00\x00\x00", "vlan0\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00", "vlan1\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00", "macvlan0\x00\x00\x00\x00\x00\x00\x00\x00", "macvlan1\x00\x00\x00\x00\x00\x00\x00\x00", "ipvlan0\x00\x00\x00\x00\x00\x00\x00\x00\x00", "ipvlan1\x00\x00\x00\x00\x00\x00\x00\x00\x00", "veth0_macvtap\x00\x00\x00", "veth1_macvtap\x00\x00\x00", "macvtap0\x00\x00\x00\x00\x00\x00\x00\x00", "macsec0\x00\x00\x00\x00\x00\x00\x00\x00\x00", "geneve0\x00\x00\x00\x00\x00\x00\x00\x00\x00", "geneve1\x00\x00\x00\x00\x00\x00\x00\x00\x00", "wg0\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00", "wg1\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00", "wg2\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00"}}}, &LenType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "len", FldName: "optlen", TypeSize: 8}}, Path: []string{"optval"}}, }}, + {NR: 54, Name: "setsockopt$SO_BINDTODEVICE_wg", CallName: "setsockopt", Args: []Type{ + &ResourceType{TypeCommon: TypeCommon{TypeName: "sock", FldName: "fd", TypeSize: 4}}, + &ConstType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "const", FldName: "level", TypeSize: 8}}, Val: 1}, + &ConstType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "const", FldName: "optname", TypeSize: 8}}, Val: 25}, + &PtrType{TypeCommon{TypeName: "ptr", FldName: "optval", TypeSize: 8}, &BufferType{TypeCommon: TypeCommon{TypeName: "string", TypeSize: 4}, Kind: 2, SubKind: "wireguard_devname", Values: []string{"wg0\x00", "wg1\x00", "wg2\x00"}}}, + &LenType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "len", FldName: "optlen", TypeSize: 8}}, Path: []string{"optval"}}, + }}, {NR: 54, Name: "setsockopt$SO_J1939_ERRQUEUE", CallName: "setsockopt", Args: []Type{ &ResourceType{TypeCommon: TypeCommon{TypeName: "sock_can_j1939", FldName: "fd", TypeSize: 4}}, &ConstType{IntTypeCommon: IntTypeCommon{TypeCommon: TypeCommon{TypeName: "const", FldName: "level", TypeSize: 8}}, Val: 107}, @@ -76720,4 +76727,4 @@ var consts_amd64 = []ConstValue{ {"ethtool_per_queue_op_size", 128}, } -const revision_amd64 = "20bd3756392f94e618d15b66b3ffff7ef456aa60" +const revision_amd64 = "e9b59750bfeb5ce1db275aa01d6f5ddb637bfe30" |
