Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Merged
merged 1 commit into from
Jul 12, 2022

Conversation

jow-
Copy link
Owner

@jow- jow- commented Jul 3, 2022

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

@jow- jow- force-pushed the rtnl-fix-bridge-afspec-rta branch from 45e8738 to dab3ff2 Compare July 3, 2022 19:02
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.

Also add some missing constants while we're at it.

Signed-off-by: Jo-Philipp Wich <jo@mein.io>
@jow- jow- force-pushed the rtnl-fix-bridge-afspec-rta branch from dab3ff2 to 557577a Compare July 3, 2022 21:16
@jow- jow- merged commit 0229aea into master Jul 12, 2022
@jow- jow- deleted the rtnl-fix-bridge-afspec-rta branch July 12, 2022 13:26
@jow- jow- restored the rtnl-fix-bridge-afspec-rta branch July 12, 2022 13:27
@jow- jow- deleted the rtnl-fix-bridge-afspec-rta branch July 12, 2022 13:27
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant