jow- / ucode

JavaScript-like language with optional templating
ISC License
90 stars 30 forks source link

rtnl: fix parsing/creation of IFLA_AF_SPEC RTA for the AF_BRIDGE family #94

Closed jow- closed 2 years ago

jow- commented 2 years ago

Some pecularities in the encoding of the IFLA_AF_SPEC attribute make it unsuitable for table driven parsing/generation.

To solve this issue, introduce specific datatype handling for IFLA_AF_SPEC and parse/generate the RTA depending on the address family of the containing netlink message.

Signed-off-by: Jo-Philipp Wich jo@mein.io