netfilter
firewalling, NAT, and packet mangling for linux
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros Modules Pages
error.c File Reference
#include <netlink-local.h>
#include <netlink/netlink.h>
Include dependency graph for error.c:

Functions

const char * nl_geterror (int error)
 Return error message for an error code. More...
 
void nl_perror (int error, const char *s)
 Print a libnl error message. More...
 
int nl_syserr2nlerr (int error)
 

Function Documentation

void nl_perror ( int  error,
const char *  s 
)

Print a libnl error message.

  • s error message prefix

Prints the error message of the call that failed last.

If s is not NULL and *s is not a null byte the argument string is printed, followed by a colon and a blank. Then the error message and a new-line.

References nl_geterror().

Here is the call graph for this function: