netfilter
firewalling, NAT, and packet mangling for linux
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros Modules Pages
errcode.h File Reference
Include dependency graph for errcode.h:
This graph shows which files directly or indirectly include this file:

Data Structures

struct  ipset_errcode_table
 

Functions

int ipset_errcode (struct ipset_session *session, enum ipset_cmd cmd, int errcode)
 ipset_errcode - interpret a kernel error code : session structure : errcode More...
 

Function Documentation

int ipset_errcode ( struct ipset_session session,
enum ipset_cmd  cmd,
int  errcode 
)

ipset_errcode - interpret a kernel error code : session structure : errcode

Find the error code and print the appropriate error message into the error buffer.

Returns -1.

References ipset_errcode_table::errcode, ipset_err, IPSET_ERR_PRIVATE, IPSET_ERR_TYPE_SPECIFIC, ipset_saved_type(), MATCH_TYPENAME, ipset_errcode_table::message, ipset_type::name, and type.

Here is the call graph for this function: