#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"
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_socket * | nfct_mnl_open (void) |
int main | ( | int | argc, |
char * | argv[] | ||
) |
References mnl_socket_close(), nfct_mnl_open(), nfct_perror(), NFCT_SUBSYS_HELP, NFCT_SUBSYS_HELPER, NFCT_SUBSYS_NONE, NFCT_SUBSYS_TIMEOUT, NFCT_SUBSYS_VERSION, NULL, and nfct_extension::parse_params.
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().
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.
void nfct_perror | ( | const char * | msg | ) |