brintos

brintos / linux-shallow public Read only

0
0
Text · 2.2 KiB · 0af5ab8 Raw
133 lines · yaml
1# SPDX-License-Identifier: ((GPL-2.0 WITH Linux-syscall-note) OR BSD-3-Clause)2 3name: fou4 5protocol: genetlink-legacy6 7doc: |8  Foo-over-UDP.9 10c-family-name: fou-genl-name11c-version-name: fou-genl-version12max-by-define: true13kernel-policy: global14 15definitions:16  -17    type: enum18    name: encap_type19    name-prefix: fou-encap-20    enum-name:21    entries: [ unspec, direct, gue ]22 23attribute-sets:24  -25    name: fou26    name-prefix: fou-attr-27    attributes:28      -29        name: unspec30        type: unused31        value: 032      -33        name: port34        type: u1635        byte-order: big-endian36      -37        name: af38        type: u839      -40        name: ipproto41        type: u842      -43        name: type44        type: u845      -46        name: remcsum_nopartial47        type: flag48      -49        name: local_v450        type: u3251      -52        name: local_v653        type: binary54        checks:55          min-len: 1656      -57        name: peer_v458        type: u3259      -60        name: peer_v661        type: binary62        checks:63          min-len: 1664      -65        name: peer_port66        type: u1667        byte-order: big-endian68      -69        name: ifindex70        type: s3271 72operations:73  list:74    -75      name: unspec76      doc: unused77      value: 078 79    -80      name: add81      doc: Add port.82      attribute-set: fou83 84      dont-validate: [ strict, dump ]85      flags: [ admin-perm ]86 87      do:88        request: &all_attrs89          attributes:90            - port91            - ipproto92            - type93            - remcsum_nopartial94            - local_v495            - peer_v496            - local_v697            - peer_v698            - peer_port99            - ifindex100 101    -102      name: del103      doc: Delete port.104      attribute-set: fou105 106      dont-validate: [ strict, dump ]107      flags: [ admin-perm ]108 109      do:110        request: &select_attrs111          attributes:112            - af113            - ifindex114            - port115            - peer_port116            - local_v4117            - peer_v4118            - local_v6119            - peer_v6120 121    -122      name: get123      doc: Get tunnel info.124      attribute-set: fou125      dont-validate: [ strict, dump ]126 127      do:128        request: *select_attrs129        reply: *all_attrs130 131      dump:132        reply: *all_attrs133