| ... | @@ -8064,11 +8064,33 @@ pub const rtattr = extern struct { | ... | @@ -8064,11 +8064,33 @@ pub const rtattr = extern struct { |
| 8064 | len: c_ushort, | 8064 | len: c_ushort, |
| 8065 | | 8065 | |
| 8066 | /// Type of option | 8066 | /// Type of option |
| 8067 | type: IFLA, | 8067 | type: extern union { |
| | 8068 | /// IFLA_* from linux/if_link.h |
| | 8069 | link: IFLA, |
| | 8070 | /// IFA_* from linux/if_addr.h |
| | 8071 | addr: IFA, |
| | 8072 | }, |
| 8068 | | 8073 | |
| 8069 | pub const ALIGNTO = 4; | 8074 | pub const ALIGNTO = 4; |
| 8070 | }; | 8075 | }; |
| 8071 | | 8076 | |
| | 8077 | pub const IFA = enum(c_ushort) { |
| | 8078 | UNSPEC, |
| | 8079 | ADDRESS, |
| | 8080 | LOCAL, |
| | 8081 | LABEL, |
| | 8082 | BROADCAST, |
| | 8083 | ANYCAST, |
| | 8084 | CACHEINFO, |
| | 8085 | MULTICAST, |
| | 8086 | FLAGS, |
| | 8087 | RT_PRIORITY, |
| | 8088 | TARGET_NETNSID, |
| | 8089 | PROTO, |
| | 8090 | |
| | 8091 | _, |
| | 8092 | }; |
| | 8093 | |
| 8072 | pub const IFLA = enum(c_ushort) { | 8094 | pub const IFLA = enum(c_ushort) { |
| 8073 | UNSPEC, | 8095 | UNSPEC, |
| 8074 | ADDRESS, | 8096 | ADDRESS, |