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", target_os = "android"))]
42mod address_family_linux;
43#[cfg(any(
44 target_os = "linux",
45 target_os = "fuchsia",
46 target_os = "android"
47))]
48pub use self::address_family_linux::AddressFamily;
49
50#[cfg(target_os = "freebsd")]
51mod address_family_freebsd;
52#[cfg(target_os = "freebsd")]
53pub use self::address_family_freebsd::AddressFamily;
54
55#[cfg(not(any(
56 target_os = "linux",
57 target_os = "fuchsia",
58 target_os = "freebsd",
59 target_os = "android",
60)))]
61mod address_family_fallback;
62#[cfg(not(any(
63 target_os = "linux",
64 target_os = "fuchsia",
65 target_os = "freebsd",
66 target_os = "android",
67)))]
68pub use self::address_family_fallback::AddressFamily;
69
70pub use self::ip::IpProtocol;
71pub use self::message::{RouteNetlinkMessage, RouteNetlinkMessageBuffer};
72
73#[macro_use]
74extern crate netlink_packet_utils;
75
76#[cfg(test)]
77#[macro_use]
78extern crate pretty_assertions;
79
80#[macro_use]
81extern crate bitflags;