mirror of
https://github.com/opnsense/src.git
synced 2026-02-20 08:21:05 -05:00
When a nvlist(9) is converted into a binary buffer by nvlist_pack(9),
the host endianness is encoded in the nvlist_header of the binary
buffer. The nvlist_unpack(9) function converts a given binary buffer
to an nvlist. In the conversion process the endianness encoded in the
nvlist_header is evaluated and -- should the encoded endianness differ
from the endianess of the decoding host -- endianness conversion is
applied to nvlist_header and nvpair_header elements as well as
to some nvpair values.
In 2015 @oshogbo extended libnv with array support (in
|
||
|---|---|---|
| .. | ||
| bsd_nvpair.c | ||
| cnvlist.c | ||
| dnvlist.c | ||
| nv_impl.h | ||
| nvlist.c | ||
| nvlist_impl.h | ||
| nvpair_impl.h | ||