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

Data Structures

struct  error_record
 struct error_record More...
 

Macros

#define EREC_MSGBUFSIZE   1024
 
#define EREC_LOCATIONS_MAX   3
 
#define error(loc, fmt, args...)   erec_create(EREC_ERROR, (loc), (fmt), ## args)
 
#define warning(loc, fmt, args...)   erec_create(EREC_WARNING, (loc), (fmt), ## args)
 

Enumerations

enum  error_record_types {
  EREC_INFORMATIONAL,
  EREC_WARNING,
  EREC_ERROR
}
 enum error_record_types More...
 

Functions

struct error_recorderec_vcreate (enum error_record_types type, const struct location *loc, const char *fmt, va_list ap) __gmp_fmtstring(3
 
struct error_record struct
error_record
erec_create (enum error_record_types type, const struct location *loc, const char *fmt,...) __gmp_fmtstring(3
 
struct error_record struct
error_record void 
erec_add_location (struct error_record *erec, const struct location *loc)
 
void erec_print (FILE *f, const struct error_record *erec)
 
void erec_print_list (FILE *f, struct list_head *list)
 

Macro Definition Documentation

#define EREC_LOCATIONS_MAX   3

Referenced by erec_add_location().

#define EREC_MSGBUFSIZE   1024
#define warning (   loc,
  fmt,
  args... 
)    erec_create(EREC_WARNING, (loc), (fmt), ## args)

Enumeration Type Documentation

enum error_record_types

: informational message : warning message : error message

Enumerator
EREC_INFORMATIONAL 
EREC_WARNING 
EREC_ERROR 

Function Documentation

struct error_record struct error_record void erec_add_location ( struct error_record erec,
const struct location loc 
)

References EREC_LOCATIONS_MAX, error_record::locations, and error_record::num_locations.

Referenced by __attribute__(), and __fmtstring().

Here is the caller graph for this function:

struct error_record struct error_record* erec_create ( enum error_record_types  type,
const struct location loc,
const char *  fmt,
  ... 
)

Referenced by cmd_evaluate(), and stmt_evaluate().

Here is the caller graph for this function:

void erec_print_list ( FILE *  f,
struct list_head list 
)

References erec_print(), error_record::list, and list_for_each_entry_safe.

Referenced by main().

Here is the call graph for this function:

Here is the caller graph for this function:

struct error_record* erec_vcreate ( enum error_record_types  type,
const struct location loc,
const char *  fmt,
va_list  ap 
)

Referenced by __attribute__(), __fmtstring(), and netlink_io_error().

Here is the caller graph for this function: