netfilter
firewalling, NAT, and packet mangling for linux
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros Modules Pages
socket.c File Reference
#include <libmnl/libmnl.h>
#include <sys/types.h>
#include <sys/socket.h>
#include <stdlib.h>
#include <unistd.h>
#include <time.h>
#include <errno.h>
#include "internal.h"
Include dependency graph for socket.c:

Data Structures

struct  mnl_socket
 

Functions

int mnl_socket_get_fd (const struct mnl_socket *nl)
 mnl_socket_get_fd - obtain file descriptor from netlink socket More...
 
 EXPORT_SYMBOL (mnl_socket_get_fd)
 
unsigned int mnl_socket_get_portid (const struct mnl_socket *nl)
 mnl_socket_get_portid - obtain Netlink PortID from netlink socket More...
 
 EXPORT_SYMBOL (mnl_socket_get_portid)
 
struct mnl_socketmnl_socket_open (int bus)
 mnl_socket_open - open a netlink socket More...
 
 EXPORT_SYMBOL (mnl_socket_open)
 
struct mnl_socketmnl_socket_fdopen (int fd)
 mnl_socket_fdopen - associates a mnl_socket object with pre-existing socket. More...
 
 EXPORT_SYMBOL (mnl_socket_fdopen)
 
int mnl_socket_bind (struct mnl_socket *nl, unsigned int groups, pid_t pid)
 mnl_socket_bind - bind netlink socket More...
 
 EXPORT_SYMBOL (mnl_socket_bind)
 
ssize_t mnl_socket_sendto (const struct mnl_socket *nl, const void *buf, size_t len)
 mnl_socket_sendto - send a netlink message of a certain size More...
 
 EXPORT_SYMBOL (mnl_socket_sendto)
 
ssize_t mnl_socket_recvfrom (const struct mnl_socket *nl, void *buf, size_t bufsiz)
 mnl_socket_recvfrom - receive a netlink message More...
 
 EXPORT_SYMBOL (mnl_socket_recvfrom)
 
int mnl_socket_close (struct mnl_socket *nl)
 mnl_socket_close - close a given netlink socket More...
 
 EXPORT_SYMBOL (mnl_socket_close)
 
int mnl_socket_setsockopt (const struct mnl_socket *nl, int type, void *buf, socklen_t len)
 mnl_socket_setsockopt - set Netlink socket option More...
 
 EXPORT_SYMBOL (mnl_socket_setsockopt)
 
int mnl_socket_getsockopt (const struct mnl_socket *nl, int type, void *buf, socklen_t *len)
 mnl_socket_getsockopt - get a Netlink socket option More...
 
 EXPORT_SYMBOL (mnl_socket_getsockopt)