rtnetlink/
lib.rs

1// SPDX-License-Identifier: MIT
2
3//! This crate provides methods to manipulate networking resources (links, addresses, arp tables,
4//! route tables) via the netlink protocol.
5
6#![allow(clippy::module_inception)]
7
8mod handle;
9pub use crate::handle::*;
10
11mod ns;
12pub use crate::ns::*;
13
14mod errors;
15pub use crate::errors::*;
16
17mod link;
18pub use crate::link::*;
19
20mod addr;
21pub use crate::addr::*;
22
23mod route;
24pub use crate::route::*;
25
26mod rule;
27pub use crate::rule::*;
28
29mod connection;
30pub use crate::connection::*;
31
32mod traffic_control;
33pub use crate::traffic_control::*;
34
35mod neighbour;
36pub use crate::neighbour::*;
37
38pub mod constants;
39
40pub use netlink_packet_route as packet;
41pub mod proto {
42    pub use netlink_proto::{
43        packet::{NetlinkMessage, NetlinkPayload},
44        Connection,
45        ConnectionHandle,
46        Error,
47    };
48}
49pub use netlink_proto::sys;
50
51mod macros;