This module provides utility functions for the handling of signalling
messages to the NgATM modules.
packs a message into one or several
.Vt mbuf Ns s
optionally prepending a header.
The header is given by its address
equals 0, no header is prepended.
but not both.
returns a pointer to the allocated
in the case of an error.
allocates a new message with space for at least
In the case of an error
function constructs a message from pieces.
Each piece is given by a pair of
arguments, the first of type
.Vt void *
and the second a
.Vt size_t .
The list of pieces must be terminated by
(Vt void *NULL).
destroys the messages and frees all the messagess memory.
chain info a
.Vt uni_msg .
A pointer to the newly allocated message is stored in
and 0 is returned.
In the case of an error (either when no packet header is found
in the first mbuf or memory cannot be allocated) the function
returns an appropriate error code.