1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
// SPDX-License-Identifier: MIT

//! This crate provides methods to manipulate networking resources (links, addresses, arp tables,
//! route tables) via the netlink protocol.

#![allow(clippy::module_inception)]

mod handle;
pub use crate::handle::*;

mod ns;
pub use crate::ns::*;

mod errors;
pub use crate::errors::*;

mod link;
pub use crate::link::*;

mod addr;
pub use crate::addr::*;

mod route;
pub use crate::route::*;

mod rule;
pub use crate::rule::*;

mod connection;
pub use crate::connection::*;

mod traffic_control;
pub use crate::traffic_control::*;

mod neighbour;
pub use crate::neighbour::*;

pub mod constants;

pub use netlink_packet_route as packet;
pub mod proto {
    pub use netlink_proto::{
        packet::{NetlinkMessage, NetlinkPayload},
        Connection,
        ConnectionHandle,
        Error,
    };
}
pub use netlink_proto::sys;

mod macros;