netfilter
firewalling, NAT, and packet mangling for linux
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros Modules Pages
data.c File Reference
#include <netlink-local.h>
#include <netlink/netlink.h>
#include <netlink/utils.h>
#include <linux/socket.h>
Include dependency graph for data.c:

Functions

General
struct nl_datanl_data_alloc (const void *buf, size_t size)
 Allocate a new abstract data object. More...
 
struct nl_datanl_data_alloc_attr (const struct nlattr *nla)
 Allocate abstract data object based on netlink attribute. More...
 
struct nl_datanl_data_clone (const struct nl_data *src)
 Clone an abstract data object. More...
 
int nl_data_append (struct nl_data *data, void *buf, size_t size)
 Append data to an abstract data object. More...
 
void nl_data_free (struct nl_data *data)
 Free an abstract data object. More...
 
Attribute Access
void * nl_data_get (const struct nl_data *data)
 Get data buffer of abstract data object. More...
 
size_t nl_data_get_size (const struct nl_data *data)
 Get size of data buffer of abstract data object. More...
 
Misc
int nl_data_cmp (const struct nl_data *a, const struct nl_data *b)
 Compare two abstract data objects. More...