Hybrid ICN (hICN) plugin  v21.06-rc0-4-g18fa668
Macros | Enumerations | Variables
error.h File Reference

Error management functions. More...

This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Macros

#define foreach_libhicn_error
 
#define _(a, b, c)   HICN_LIB_ERROR_##a = (-b),
 
#define hicn_strerror(errno)   (char *)(HICN_LIB_ERROR_STRING[-errno])
 

Enumerations

enum  hicn_lib_error_t { HICN_LIB_N_ERROR, HICN_LIB_N_ERROR }
 

Variables

const char * HICN_LIB_ERROR_STRING []
 

Detailed Description

Error management functions.

Macro Definition Documentation

◆ foreach_libhicn_error

#define foreach_libhicn_error
Value:
_(NONE, 0, "OK") \
_(UNSPECIFIED, 128, "Unspecified Error") \
_(NOT_IMPLEMENTED, 180, "Function not yet implemented") \
_(NOT_HICN, 202, "Non hICN packet") \
_(UNKNOWN_ADDRESS, 210, "Unknown address") \
_(INVALID_PARAMETER, 220, "Invalid parameter") \
_(INVALID_IP_ADDRESS, 221, "Invalid IP address") \
_(CORRUPTED_PACKET, 222, "Corrupted packet ") \
_(REWRITE_CKSUM_REQUIRED, 223, "Incremental csum calculation error: cksum required.") \
_(UNEXPECTED, 298, "Unexpected error")