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

Functions

void nfct_perror (const char *msg)
 
void nfct_extension_register (struct nfct_extension *ext)
 
int main (int argc, char *argv[])
 
int nfct_mnl_talk (struct mnl_socket *nl, struct nlmsghdr *nlh, uint32_t seq, uint32_t portid, int(*cb)(const struct nlmsghdr *nlh, void *data), void *data)
 
struct mnl_socketnfct_mnl_open (void)
 

Function Documentation

int main ( int  argc,
char *  argv[] 
)
void nfct_extension_register ( struct nfct_extension ext)

References nfct_extension::head.

struct mnl_socket* nfct_mnl_open ( void  )

References MNL_SOCKET_AUTOPID, mnl_socket_bind(), mnl_socket_open(), NETLINK_NETFILTER, and NULL.

Referenced by main().

Here is the call graph for this function:

Here is the caller graph for this function:

int nfct_mnl_talk ( struct mnl_socket nl,
struct nlmsghdr nlh,
uint32_t  seq,
uint32_t  portid,
int(*)(const struct nlmsghdr *nlh, void *data cb,
void *  data 
)

References buf, mnl_cb_run(), MNL_SOCKET_BUFFER_SIZE, mnl_socket_recvfrom(), mnl_socket_sendto(), and nlmsghdr::nlmsg_len.

Here is the call graph for this function:

void nfct_perror ( const char *  msg)

Referenced by main().

Here is the caller graph for this function: