LibrarySetup(3) | Library Functions Manual | LibrarySetup(3) |
nflog_open, nflog_close, nflog_bind_pf, nflog_unbind_pf - LibrarySetup
#include <netinet/in.h> #include <libnetfilter_log/libnetfilter_log.h>
struct nflog_handle * nflog_open (void)
int nflog_close (struct nflog_handle *h)
int nflog_bind_pf (struct nflog_handle *h, uint16_t pf)
int nflog_unbind_pf (struct nflog_handle *h, uint16_t pf)
When the program has finished with libnetfilter_log, it has to call the nflog_close() function to release all associated resources.
nflog_bind_pf - bind a nflog handler to a given protocol family
Parameters
Binds the given log connection handle to process packets belonging to the given protocol family (ie. PF_INET, PF_INET6, etc).
Returns
Errors
Definition at line 420 of file libnetfilter_log.c.
nflog_close - close a nflog handler
Parameters
This function closes the nflog handler and free associated resources.
Returns
Errors
Definition at line 401 of file libnetfilter_log.c.
nflog_open - open a nflog handler
This function obtains a netfilter log connection handle. When you are finished with the handle returned by this function, you should destroy it by calling nflog_close(). A new netlink connection is obtained internally and associated with the log connection handle returned.
Returns
Errors
Definition at line 304 of file libnetfilter_log.c.
nflog_unbind_pf - unbind nflog handler from a protocol family
Parameters
Unbinds the given nflog handle from processing packets belonging to the given protocol family.
Returns
Errors
Definition at line 437 of file libnetfilter_log.c.
Generated automatically by Doxygen for libnetfilter_log from the source code.
Version 1.0.2 | libnetfilter_log |