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
// SPDX-License-Identifier: MIT

#[macro_use]
extern crate log;

pub(crate) extern crate netlink_packet_utils as utils;
pub use self::utils::{traits, DecodeError};
pub use netlink_packet_core::{
    ErrorMessage,
    NetlinkBuffer,
    NetlinkHeader,
    NetlinkMessage,
    NetlinkPayload,
};
pub(crate) use netlink_packet_core::{NetlinkDeserializable, NetlinkSerializable};

use core::ops::Range;
/// Represent a multi-bytes field with a fixed size in a packet
pub(crate) type Field = Range<usize>;

mod codec;
pub use codec::NetlinkAuditCodec;

pub mod status;
pub use self::status::*;

pub mod rules;
pub use self::rules::*;

mod message;
pub use self::message::*;

mod buffer;
pub use self::buffer::*;

pub mod constants;
pub use self::constants::*;

#[cfg(test)]
#[macro_use]
extern crate lazy_static;