rt_addr.yaml 3.2 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179
  1. # SPDX-License-Identifier: ((GPL-2.0 WITH Linux-syscall-note) OR BSD-3-Clause)
  2. name: rt-addr
  3. protocol: netlink-raw
  4. protonum: 0
  5. doc:
  6. Address configuration over rtnetlink.
  7. definitions:
  8. -
  9. name: ifaddrmsg
  10. type: struct
  11. members:
  12. -
  13. name: ifa-family
  14. type: u8
  15. -
  16. name: ifa-prefixlen
  17. type: u8
  18. -
  19. name: ifa-flags
  20. type: u8
  21. enum: ifa-flags
  22. enum-as-flags: true
  23. -
  24. name: ifa-scope
  25. type: u8
  26. -
  27. name: ifa-index
  28. type: u32
  29. -
  30. name: ifa-cacheinfo
  31. type: struct
  32. members:
  33. -
  34. name: ifa-prefered
  35. type: u32
  36. -
  37. name: ifa-valid
  38. type: u32
  39. -
  40. name: cstamp
  41. type: u32
  42. -
  43. name: tstamp
  44. type: u32
  45. -
  46. name: ifa-flags
  47. type: flags
  48. entries:
  49. -
  50. name: secondary
  51. -
  52. name: nodad
  53. -
  54. name: optimistic
  55. -
  56. name: dadfailed
  57. -
  58. name: homeaddress
  59. -
  60. name: deprecated
  61. -
  62. name: tentative
  63. -
  64. name: permanent
  65. -
  66. name: managetempaddr
  67. -
  68. name: noprefixroute
  69. -
  70. name: mcautojoin
  71. -
  72. name: stable-privacy
  73. attribute-sets:
  74. -
  75. name: addr-attrs
  76. attributes:
  77. -
  78. name: ifa-address
  79. type: binary
  80. display-hint: ipv4
  81. -
  82. name: ifa-local
  83. type: binary
  84. display-hint: ipv4
  85. -
  86. name: ifa-label
  87. type: string
  88. -
  89. name: ifa-broadcast
  90. type: binary
  91. display-hint: ipv4
  92. -
  93. name: ifa-anycast
  94. type: binary
  95. -
  96. name: ifa-cacheinfo
  97. type: binary
  98. struct: ifa-cacheinfo
  99. -
  100. name: ifa-multicast
  101. type: binary
  102. -
  103. name: ifa-flags
  104. type: u32
  105. enum: ifa-flags
  106. enum-as-flags: true
  107. -
  108. name: ifa-rt-priority
  109. type: u32
  110. -
  111. name: ifa-target-netnsid
  112. type: binary
  113. -
  114. name: ifa-proto
  115. type: u8
  116. operations:
  117. fixed-header: ifaddrmsg
  118. enum-model: directional
  119. list:
  120. -
  121. name: newaddr
  122. doc: Add new address
  123. attribute-set: addr-attrs
  124. do:
  125. request:
  126. value: 20
  127. attributes: &ifaddr-all
  128. - ifa-family
  129. - ifa-flags
  130. - ifa-prefixlen
  131. - ifa-scope
  132. - ifa-index
  133. - ifa-address
  134. - ifa-label
  135. - ifa-local
  136. - ifa-cacheinfo
  137. -
  138. name: deladdr
  139. doc: Remove address
  140. attribute-set: addr-attrs
  141. do:
  142. request:
  143. value: 21
  144. attributes:
  145. - ifa-family
  146. - ifa-flags
  147. - ifa-prefixlen
  148. - ifa-scope
  149. - ifa-index
  150. - ifa-address
  151. - ifa-local
  152. -
  153. name: getaddr
  154. doc: Dump address information.
  155. attribute-set: addr-attrs
  156. dump:
  157. request:
  158. value: 22
  159. attributes:
  160. - ifa-index
  161. reply:
  162. value: 20
  163. attributes: *ifaddr-all
  164. mcast-groups:
  165. list:
  166. -
  167. name: rtnlgrp-ipv4-ifaddr
  168. value: 5
  169. -
  170. name: rtnlgrp-ipv6-ifaddr
  171. value: 9