netfilter
firewalling, NAT, and packet mangling for linux
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros Modules Pages
object.h File Reference
#include <netlink/netlink.h>
#include <netlink/utils.h>
Include dependency graph for object.h:
This graph shows which files directly or indirectly include this file:

Macros

#define OBJ_CAST(ptr)   ((struct nl_object *) (ptr))
 

Functions

struct nl_objectnl_object_alloc (struct nl_object_ops *)
 Allocate a new object of kind specified by the operations handle. More...
 
int nl_object_alloc_name (const char *, struct nl_object **)
 Allocate a new object of kind specified by the name. More...
 
void nl_object_free (struct nl_object *)
 Free a cacheable object. More...
 
struct nl_objectnl_object_clone (struct nl_object *obj)
 Allocate a new object and copy all data from an existing object. More...
 
void nl_object_get (struct nl_object *)
 Acquire a reference on a object. More...
 
void nl_object_put (struct nl_object *)
 Release a reference from an object. More...
 
int nl_object_shared (struct nl_object *)
 Check whether this object is used by multiple users. More...
 
void nl_object_dump (struct nl_object *, struct nl_dump_params *)
 Dump this object according to the specified parameters. More...
 
int nl_object_identical (struct nl_object *, struct nl_object *)
 Check if the identifiers of two objects are identical. More...
 
uint32_t nl_object_diff (struct nl_object *, struct nl_object *)
 Compute bitmask representing difference in attribute values. More...
 
int nl_object_match_filter (struct nl_object *, struct nl_object *)
 Match a filter against an object. More...
 
char * nl_object_attrs2str (struct nl_object *, uint32_t attrs, char *buf, size_t)
 Convert bitmask of attributes to a character string. More...
 
char * nl_object_attr_list (struct nl_object *, char *, size_t)
 Return list of attributes present in an object. More...
 
void nl_object_mark (struct nl_object *)
 Add mark to object. More...
 
void nl_object_unmark (struct nl_object *)
 Remove mark from object. More...
 
int nl_object_is_marked (struct nl_object *)
 Return true if object is marked. More...
 
int nl_object_get_refcnt (struct nl_object *)
 
struct nl_cachenl_object_get_cache (struct nl_object *)
 

Macro Definition Documentation

#define OBJ_CAST (   ptr)    ((struct nl_object *) (ptr))

Referenced by main().