Man page - nflog_open(3)
Packages contains this manual
- nflog_snprintf_xml(3)
- nflog_nlmsg_parse(3)
- nflog_unbind_pf(3)
- nflog_get_physindev(3)
- nflog_unbind_group(3)
- nflog_set_qthresh(3)
- nflog_fd(3)
- nflog_get_uid(3)
- nflog_bind_group(3)
- nflog_set_timeout(3)
- nflog_nlmsg_put_header(3)
- nflog_get_seq_global(3)
- nflog_get_msg_packet_hwhdr(3)
- nflog_get_payload(3)
- nflog_get_hwtype(3)
- nflog_get_gid(3)
- nflog_nlmsg_snprintf(3)
- nflog_get_physoutdev(3)
- nflog_callback_register(3)
- nflog_bind_pf(3)
- nflog_close(3)
- nflog_set_flags(3)
- nflog_get_nfmark(3)
- nflog_set_nlbufsiz(3)
- nflog_get_msg_packet_hdr(3)
- nflog_set_mode(3)
- nflog_get_seq(3)
- nflog_attr_put_cfg_mode(3)
- nflog_get_timestamp(3)
- nflog_get_indev(3)
- nflog_attr_put_cfg_cmd(3)
- nflog_get_prefix(3)
- nflog_get_outdev(3)
- nflog_get_packet_hw(3)
- nflog_get_ctid(3)
- nflog_handle_packet(3)
- nflog_get_msg_packet_hwhdrlen(3)
- nflog_open(3)
apt-get install libnetfilter-log-doc
Manual
LibrarySetup
NAMESYNOPSIS
Detailed Description
Function Documentation
int nflog_bind_pf (struct nflog_handle * h, uint16_t pf)
int nflog_close (struct nflog_handle * h)
struct nflog_handle * nflog_open (void)
int nflog_unbind_pf (struct nflog_handle * h, uint16_t pf)
Author
NAME
nflog_open, nflog_close, nflog_bind_pf, nflog_unbind_pf - LibrarySetup
SYNOPSIS
#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)
Detailed Description
When the program has finished with libnetfilter_log, it has to call the nflog_close() function to release all associated resources.
Function Documentation
int nflog_bind_pf (struct nflog_handle * h, uint16_t pf)
nflog_bind_pf - bind a nflog handler to a given protocol family
Parameters
h
Netfilter log handle
obtained via call to
nflog_open()
pf
protocol family to bind to nflog handler obtained
from
nflog_open()
Binds the given log connection handle to process packets belonging to the given protocol family (ie. PF_INET, PF_INET6, etc).
Returns
0 on success, -1 on failure with errno set.
Errors
EOPNOTSUPP Not running as root
Definition at line 420 of file libnetfilter_log.c .
int nflog_close (struct nflog_handle * h)
nflog_close - close a nflog handler
Parameters
h Netfilter log handle obtained via call to nflog_open()
This function closes the nflog handler and free associated resources.
Returns
0 on success, -1 on failure with errno set.
Errors
as for close (2)
Definition at line 401 of file libnetfilter_log.c .
struct nflog_handle * nflog_open (void)
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
a pointer to a new log handle or NULL on failure with errno set.
Errors
from underlying calls, in exceptional circumstances
Definition at line 304 of file libnetfilter_log.c .
int nflog_unbind_pf (struct nflog_handle * h, uint16_t pf)
nflog_unbind_pf - unbind nflog handler from a protocol family
Parameters
h
Netfilter log handle
obtained via call to
nflog_open()
pf
protocol family to unbind family from
Unbinds the given nflog handle from processing packets belonging to the given protocol family.
Returns
0 on success, -1 on failure with errno set.
Errors
EOPNOTSUPP Not running as root
Definition at line 437 of file libnetfilter_log.c .
Author
Generated automatically by Doxygen for libnetfilter_log from the source code.