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