netfilter
firewalling, NAT, and packet mangling for linux
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros Modules Pages
netlink.h File Reference
#include <stdio.h>
#include <stdint.h>
#include <string.h>
#include <stdlib.h>
#include <sys/poll.h>
#include <sys/socket.h>
#include <sys/types.h>
#include <sys/time.h>
#include <netdb.h>
#include <netlink/netlink-compat.h>
#include <linux/netlink.h>
#include <linux/rtnetlink.h>
#include <linux/genetlink.h>
#include <linux/netfilter/nfnetlink.h>
#include <netlink/version.h>
#include <netlink/errno.h>
#include <netlink/types.h>
#include <netlink/handlers.h>
#include <netlink/socket.h>
Include dependency graph for netlink.h:

Functions

int nl_connect (struct nl_sock *, int)
 Create and connect netlink socket. More...
 
void nl_close (struct nl_sock *)
 Close/Disconnect netlink socket. More...
 
int nl_sendto (struct nl_sock *, void *, size_t)
 Send raw data over netlink socket. More...
 
int nl_sendmsg (struct nl_sock *, struct nl_msg *, struct msghdr *)
 Send netlink message with control over sendmsg() message header. More...
 
int nl_send (struct nl_sock *, struct nl_msg *)
 Send netlink message. More...
 
int nl_send_iovec (struct nl_sock *, struct nl_msg *, const struct iovec *, unsigned)
 Send netlink message. More...
 
void nl_auto_complete (struct nl_sock *, struct nl_msg *)
 
int nl_send_auto_complete (struct nl_sock *, struct nl_msg *)
 Send netlink message and check & extend header values as needed. More...
 
int nl_send_simple (struct nl_sock *, int, int, void *, size_t)
 Send simple netlink message using nl_send_auto_complete() More...
 
int nl_recv (struct nl_sock *, struct sockaddr_nl *, unsigned char **, struct ucred **)
 Receive data from netlink socket. More...
 
int nl_recvmsgs (struct nl_sock *, struct nl_cb *)
 Receive a set of messages from a netlink socket. More...
 
int nl_recvmsgs_default (struct nl_sock *)
 Receive a set of message from a netlink socket using handlers in nl_sock. More...
 
int nl_wait_for_ack (struct nl_sock *)
 Wait for ACK. More...
 
char * nl_nlfamily2str (int, char *, size_t)
 
int nl_str2nlfamily (const char *)
 

Variables

int nl_debug
 Debug level. More...
 
struct nl_dump_params nl_debug_dp