1 # SPDX-License-Identifier: ((GPL-2.0 WITH Linu 1 # SPDX-License-Identifier: ((GPL-2.0 WITH Linux-syscall-note) OR BSD-3-Clause) 2 2 3 name: fou 3 name: fou 4 4 5 protocol: genetlink-legacy 5 protocol: genetlink-legacy 6 6 7 doc: | 7 doc: | 8 Foo-over-UDP. 8 Foo-over-UDP. 9 9 10 c-family-name: fou-genl-name 10 c-family-name: fou-genl-name 11 c-version-name: fou-genl-version 11 c-version-name: fou-genl-version 12 max-by-define: true 12 max-by-define: true 13 kernel-policy: global 13 kernel-policy: global 14 14 15 definitions: 15 definitions: 16 - 16 - 17 type: enum 17 type: enum 18 name: encap_type 18 name: encap_type 19 name-prefix: fou-encap- 19 name-prefix: fou-encap- 20 enum-name: 20 enum-name: 21 entries: [ unspec, direct, gue ] 21 entries: [ unspec, direct, gue ] 22 22 23 attribute-sets: 23 attribute-sets: 24 - 24 - 25 name: fou 25 name: fou 26 name-prefix: fou-attr- 26 name-prefix: fou-attr- 27 attributes: 27 attributes: 28 - 28 - 29 name: unspec 29 name: unspec 30 type: unused 30 type: unused 31 value: 0 31 value: 0 32 - 32 - 33 name: port 33 name: port 34 type: u16 34 type: u16 35 byte-order: big-endian 35 byte-order: big-endian 36 - 36 - 37 name: af 37 name: af 38 type: u8 38 type: u8 39 - 39 - 40 name: ipproto 40 name: ipproto 41 type: u8 41 type: u8 42 - 42 - 43 name: type 43 name: type 44 type: u8 44 type: u8 45 - 45 - 46 name: remcsum_nopartial 46 name: remcsum_nopartial 47 type: flag 47 type: flag 48 - 48 - 49 name: local_v4 49 name: local_v4 50 type: u32 50 type: u32 51 - 51 - 52 name: local_v6 52 name: local_v6 53 type: binary 53 type: binary 54 checks: 54 checks: 55 min-len: 16 55 min-len: 16 56 - 56 - 57 name: peer_v4 57 name: peer_v4 58 type: u32 58 type: u32 59 - 59 - 60 name: peer_v6 60 name: peer_v6 61 type: binary 61 type: binary 62 checks: 62 checks: 63 min-len: 16 63 min-len: 16 64 - 64 - 65 name: peer_port 65 name: peer_port 66 type: u16 66 type: u16 67 byte-order: big-endian 67 byte-order: big-endian 68 - 68 - 69 name: ifindex 69 name: ifindex 70 type: s32 70 type: s32 71 71 72 operations: 72 operations: 73 list: 73 list: 74 - 74 - 75 name: unspec 75 name: unspec 76 doc: unused 76 doc: unused 77 value: 0 77 value: 0 78 78 79 - 79 - 80 name: add 80 name: add 81 doc: Add port. 81 doc: Add port. 82 attribute-set: fou 82 attribute-set: fou 83 83 84 dont-validate: [ strict, dump ] 84 dont-validate: [ strict, dump ] 85 flags: [ admin-perm ] 85 flags: [ admin-perm ] 86 86 87 do: 87 do: 88 request: &all_attrs 88 request: &all_attrs 89 attributes: 89 attributes: 90 - port 90 - port 91 - ipproto 91 - ipproto 92 - type 92 - type 93 - remcsum_nopartial 93 - remcsum_nopartial 94 - local_v4 94 - local_v4 95 - peer_v4 95 - peer_v4 96 - local_v6 96 - local_v6 97 - peer_v6 97 - peer_v6 98 - peer_port 98 - peer_port 99 - ifindex 99 - ifindex 100 100 101 - 101 - 102 name: del 102 name: del 103 doc: Delete port. 103 doc: Delete port. 104 attribute-set: fou 104 attribute-set: fou 105 105 106 dont-validate: [ strict, dump ] 106 dont-validate: [ strict, dump ] 107 flags: [ admin-perm ] 107 flags: [ admin-perm ] 108 108 109 do: 109 do: 110 request: &select_attrs 110 request: &select_attrs 111 attributes: 111 attributes: 112 - af 112 - af 113 - ifindex 113 - ifindex 114 - port 114 - port 115 - peer_port 115 - peer_port 116 - local_v4 116 - local_v4 117 - peer_v4 117 - peer_v4 118 - local_v6 118 - local_v6 119 - peer_v6 119 - peer_v6 120 120 121 - 121 - 122 name: get 122 name: get 123 doc: Get tunnel info. 123 doc: Get tunnel info. 124 attribute-set: fou 124 attribute-set: fou 125 dont-validate: [ strict, dump ] 125 dont-validate: [ strict, dump ] 126 126 127 do: 127 do: 128 request: *select_attrs 128 request: *select_attrs 129 reply: *all_attrs 129 reply: *all_attrs 130 130 131 dump: 131 dump: 132 reply: *all_attrs 132 reply: *all_attrs
Linux® is a registered trademark of Linus Torvalds in the United States and other countries.
TOMOYO® is a registered trademark of NTT DATA CORPORATION.