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
52
53
54
55
56
57
58
59
60
/// Attribute handling and TLV format operations
/// CAN bus protocol support
/// Callback handling for netlink message processing
/// Connection tracking (conntrack) definitions and types
/// Core netlink protocol constants and structures
/// Netlink message structure and operations
/// Socket abstraction and operations
use crateHeader;
use size_of;
/// System constant for page size retrieval
pub const _SC_PAGESIZE: i32 = 30;
/// Alignment boundary for netlink data structures
pub const ALIGNTO: usize = 4;
/// Aligns a length to the netlink alignment boundary
///
/// # Parameters
/// * `len` - Length to align
///
/// # Returns
/// The aligned length
pub const
/// Size of a netlink message header, aligned
pub const MNL_NLMSG_HDRLEN: usize = ALIGN;
/// Return code from callbacks indicating an error occurred
pub const MNL_CB_ERROR: i32 = -1;
/// Return code from callbacks indicating processing should stop
pub const MNL_CB_STOP: i32 = 0;
/// Return code from callbacks indicating successful processing
pub const MNL_CB_OK: i32 = 1;
/// Socket option level for netlink-specific socket options
pub const SOL_NETLINK: u32 = 270;
/// Calculate the number of elements in an array
///
/// # Parameters
/// * `a` - Reference to the array
///
/// # Returns
/// The number of elements in the array
pub const