netlink_packet_route/
lib.rs1pub mod address;
26pub mod link;
27pub mod neighbour;
28pub mod neighbour_table;
29pub mod nsid;
30pub mod prefix;
31pub mod route;
32pub mod rule;
33pub mod tc;
34
35mod message;
36#[cfg(test)]
37mod tests;
38
39pub(crate) mod ip;
40
41#[cfg(any(target_os = "linux", target_os = "fuchsia"))]
42mod address_family_linux;
43#[cfg(any(target_os = "linux", target_os = "fuchsia"))]
44pub use self::address_family_linux::AddressFamily;
45
46#[cfg(target_os = "freebsd")]
47mod address_family_freebsd;
48#[cfg(target_os = "freebsd")]
49pub use self::address_family_freebsd::AddressFamily;
50
51#[cfg(not(any(
52 target_os = "linux",
53 target_os = "fuchsia",
54 target_os = "freebsd",
55)))]
56mod address_family_fallback;
57#[cfg(not(any(
58 target_os = "linux",
59 target_os = "fuchsia",
60 target_os = "freebsd",
61)))]
62pub use self::address_family_fallback::AddressFamily;
63
64pub use self::ip::IpProtocol;
65pub use self::message::{RouteNetlinkMessage, RouteNetlinkMessageBuffer};
66
67#[macro_use]
68extern crate netlink_packet_utils;
69
70#[cfg(test)]
71#[macro_use]
72extern crate pretty_assertions;
73
74#[macro_use]
75extern crate bitflags;