Functions | |
| int | nfct_query (struct nfct_handle *h, const enum nf_conntrack_query qt, const void *data) |
| int | nfct_send (struct nfct_handle *h, const enum nf_conntrack_query qt, const void *data) |
| int | nfct_catch (struct nfct_handle *h) |
| int | nfexp_query (struct nfct_handle *h, const enum nf_conntrack_query qt, const void *data) |
| int | nfexp_catch (struct nfct_handle *h) |
| int nfct_catch | ( | struct nfct_handle * | h | ) |
nfct_catch - catch events
| h | library handler |
On error, -1 is returned and errno is set appropiately. On success, a value greater or equal to 0 is returned indicating the callback verdict: NFCT_CB_STOP, NFCT_CB_CONTINUE or NFCT_CB_STOLEN
Definition at line 936 of file conntrack/api.c.
| int nfct_query | ( | struct nfct_handle * | h, | |
| const enum nf_conntrack_query | qt, | |||
| const void * | data | |||
| ) |
nfct_query - send a query to ctnetlink and handle the reply
| h | library handler | |
| qt | query type | |
| data | data required to send the query |
On error, -1 is returned and errno is explicitely set. On success, 0 is returned.
Definition at line 876 of file conntrack/api.c.
| int nfct_send | ( | struct nfct_handle * | h, | |
| const enum nf_conntrack_query | qt, | |||
| const void * | data | |||
| ) |
nfct_send - send a query to ctnetlink
| h | library handler | |
| qt | query type | |
| data | data required to send the query |
Like nfct_query but we do not wait for the reply from ctnetlink. You can use nfct_send() and nfct_catch() to emulate nfct_query(). This is particularly useful when the socket is non-blocking.
On error, -1 is returned and errno is explicitely set. On success, 0 is returned.
Definition at line 908 of file conntrack/api.c.
| int nfexp_catch | ( | struct nfct_handle * | h | ) |
nfexp_catch - catch events
| h | library handler |
On error, -1 is returned and errno is set appropiately. On success, a value greater or equal to 0 is returned indicating the callback verdiexp: NFEXP_CB_STOP, NFEXP_CB_CONTINUE or NFEXP_CB_STOLEN
Definition at line 648 of file expect/api.c.
| int nfexp_query | ( | struct nfct_handle * | h, | |
| const enum nf_conntrack_query | qt, | |||
| const void * | data | |||
| ) |
nfexp_query - send a query to ctnetlink
| h | library handler | |
| qt | query type | |
| data | data required to send the query |
On error, -1 is returned and errno is explicitely set. On success, 0 is returned.
Definition at line 621 of file expect/api.c.
1.7.1