Object allowing efficient construction of an attribute stream.
Length of generic netlink headers
Length of netlink headers
Round the passed length up to align it
Encodes a Generic Netlink header
Header data
Serialized header
Encodes a Netlink header
Header data
Serialized header
Like padding but returns a zero-filled buffer of that length
Append necessary padding to data. THIS MODIFIES THE ORIGINAL ARRAY
Get the amount of padding (in bytes) to add after length
Calls parseMessage repeatedly, supplying each result to the passed callback and ignoring padding, until there's no data left (other than padding).
Parses a Generic Netlink header
Parsed header
Parses a Netlink header
Parsed header
Calls parseMessage repeatedly, ignoring padding between messages, until there's no data left (other than padding).
Generated using TypeDoc
This module implements parsing / formatting routines for Netlink and Generic Netlink structures.
Important: These structures use the host endianness. This module will serialize messages differently depending on that.