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

ip append (ignore dup / os error 22 file exists) #26

Open
journaux opened this issue Jun 27, 2023 · 3 comments
Open

ip append (ignore dup / os error 22 file exists) #26

journaux opened this issue Jun 27, 2023 · 3 comments

Comments

@journaux
Copy link

rtnetlink does not have documentation on supporting ip route append ... cmdlet, which enables two default routes specified for any table (without using a metric) - hoping there might be a missing flag / feature for this lib that enables the same capability

@cathay4t
Copy link
Member

cathay4t commented Feb 1, 2024

I guess RouteAddRequest::message_mut().header.flags |= NLM_F_APPEND should works.

@cathay4t
Copy link
Member

cathay4t commented Feb 1, 2024

My bad. Above line will not work. This flag is for NetlinkMessage, not RouteNetlinkMesage

@cathay4t
Copy link
Member

cathay4t commented Feb 1, 2024

@journaux Can you try #52 ?

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

No branches or pull requests

2 participants