netfilter
firewalling, NAT, and packet mangling for linux
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros Modules Pages
Timeout policy object output

Functions

int nfct_timeout_snprintf (char *buf, size_t size, const struct nfct_timeout *t, unsigned int type, unsigned int flags)
 nfct_timeout_snprintf - print conntrack timeout object into one buffer More...
 
 EXPORT_SYMBOL (nfct_timeout_snprintf)
 

Detailed Description

Function Documentation

EXPORT_SYMBOL ( nfct_timeout_snprintf  )
int nfct_timeout_snprintf ( char *  buf,
size_t  size,
const struct nfct_timeout t,
unsigned int  type,
unsigned int  flags 
)

nfct_timeout_snprintf - print conntrack timeout object into one buffer

Parameters
bufpointer to buffer that is used to print the object
sizesize of the buffer (or remaining room in it).
tpointer to a valid conntrack timeout object.
typeoutput type (see NFCT_TIMEOUT_O_*)
flagsoutput flags (always set this to zero).

This function returns -1 in case that some mandatory attributes are missing. On sucess, it returns 0.

References NFCT_TIMEOUT_O_DEFAULT.