Skip to content
This repository has been archived by the owner on Oct 26, 2022. It is now read-only.

Add XFRM support #298

Open
wants to merge 6 commits into
base: master
Choose a base branch
from
Open

Add XFRM support #298

wants to merge 6 commits into from

Conversation

zooknotic
Copy link

I've added some code to support the netlink xfrm API, primarily to support management of IPsec tunnels. Similar to the other protocols, I've split it up into netlink-packet-xfrm for message parse/emit, and xfrmnetlink for request/response handling. Feel free to add to your project if desired, or let me know if there's anything that should be changed to make it more suitable for inclusion. Thx.

zooknotic and others added 5 commits July 28, 2022 21:07
(the kernel allows up to 6).
* Added a message GetDumpMessage to dump xfrm states with an address
filter attribute.
* Fix typo for IPSEC_PROTO_ANY constant, added constants for ESP
encapsulation types.
* Added default implementations for LifetimeConfig, SecurityCtx and UserTemplate.
interface to all of the messages/structs in netlink-packet-xfrm.
Mimics most of the functionality provided by iproute2 xfrm
policy/state/monitor which is primarily used for setting up IPsec
tunnels.
futures = "0.3.11"
log = "0.4.8"
thiserror = "1"
netlink-packet-core = { path = "../netlink-packet-core" }
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I feel that a version field is meeded.

Copy link
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Yes, I missed that. I also removed two dependencies that weren't being used (I originally copied the Cargo.toml from rtnetlink).

@wllenyj
Copy link
Contributor

wllenyj commented Oct 24, 2022

Can you move this pr to https://github.com/rust-netlink?

@JohnTitor
Copy link
Collaborator

@wllenyj We have to create a repo first.

@cathay4t I'm not sure how we use https://github.com/rust-netlink/new-crate-review, could you clarify its usecase?

Removed unused dependencies on log and nix.
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants