Crate xfrmnetlink

Source
Expand description

This crate provides methods to manipulate IPsec tunnel resources (policies, SAs) via the netlink protocol.

Re-exports§

pub use crate::constants::*;

Modules§

constants

Macros§

try_nl
try_xfrmnl

Structs§

Handle
PolicyDeleteRequest
A request to delete xfrm policies. This is equivalent to the ip xfrm policy delete command.
PolicyFlushRequest
A request to flush xfrm policies. This is equivalent to the ip xfrm policy flush command.
PolicyGetDefaultRequest
A request to get the default xfrm action for input, output, forward policies. This is equivalent to the ip xfrm policy getdefault command.
PolicyGetRequest
A request to get xfrm policies. This is equivalent to the ip xfrm policy get command.
PolicyGetSpdInfoRequest
A request to get xfrm policy statistics. This is equivalent to the ip xfrm policy count command.
PolicyHandle
PolicyModifyRequest
A request to add or update xfrm policies. This is equivalent to the ip xfrm policy add|update commands.
PolicySetDefaultRequest
A request to set the default xfrm action for input, output, forward policies. This is equivalent to the ip xfrm policy setdefault command.
PolicySetSpdInfoRequest
A request to set xfrm policy statistics. This is equivalent to the ip xfrm policy set command.
StateAllocSpiRequest
A request to allocate a SPI for an xfrm state. This is equivalent to the ip xfrm state allocspi command.
StateDeleteRequest
A request to delete xfrm state. This is equivalent to the ip xfrm state delete command.
StateFlushRequest
A request to flush xfrm policies. This is equivalent to the ip xfrm policy flush command.
StateGetDumpRequest
A request to dump xfrm states. This is equivalent to the ip xfrm state list command.
StateGetRequest
A request to get xfrm state. This is equivalent to the ip xfrm state get command.
StateGetSadInfoRequest
A request to get xfrm state statistics. This is equivalent to the ip xfrm state count command.
StateHandle
StateModifyRequest
A request to add or update xfrm state. This is equivalent to the ip xfrm state add|update commands.

Enums§

Error

Functions§

new_connection
new_connection_with_socket