Changeset View
Changeset View
Standalone View
Standalone View
sbin/ipf/libipf/interror.c
| Show All 11 Lines | |||||
| typedef struct { | typedef struct { | ||||
| int iee_number; | int iee_number; | ||||
| char *iee_text; | char *iee_text; | ||||
| } ipf_error_entry_t; | } ipf_error_entry_t; | ||||
| static ipf_error_entry_t *find_error(int); | static ipf_error_entry_t *find_error(int); | ||||
| #define IPF_NUM_ERRORS 477 | #define IPF_NUM_ERRORS sizeof(ipf_errors) / sizeof(ipf_error_entry_t) | ||||
| /* | /* | ||||
| * NO REUSE OF NUMBERS! | * NO REUSE OF NUMBERS! | ||||
| * | * | ||||
| * IF YOU WANT TO ADD AN ERROR TO THIS TABLE, _ADD_ A NEW NUMBER. | * IF YOU WANT TO ADD AN ERROR TO THIS TABLE, _ADD_ A NEW NUMBER. | ||||
| * DO _NOT_ USE AN EMPTY NUMBER OR FILL IN A GAP. | * DO _NOT_ USE AN EMPTY NUMBER OR FILL IN A GAP. | ||||
| */ | */ | ||||
| static ipf_error_entry_t ipf_errors[IPF_NUM_ERRORS] = { | static ipf_error_entry_t ipf_errors[] = { | ||||
| { 1, "auth table locked/full" }, | { 1, "auth table locked/full" }, | ||||
| { 2, "" }, | { 2, "" }, | ||||
| { 3, "copyinptr received bad address" }, | { 3, "copyinptr received bad address" }, | ||||
| { 4, "copyoutptr received bad address" }, | { 4, "copyoutptr received bad address" }, | ||||
| { 5, "" }, | { 5, "" }, | ||||
| { 6, "cannot load a rule with FR_T_BUILTIN flag set" }, | { 6, "cannot load a rule with FR_T_BUILTIN flag set" }, | ||||
| { 7, "internal rule without FR_T_BUILDINT flag set" }, | { 7, "internal rule without FR_T_BUILDINT flag set" }, | ||||
| { 8, "no data provided with filter rule" }, | { 8, "no data provided with filter rule" }, | ||||
| ▲ Show 20 Lines • Show All 544 Lines • Show Last 20 Lines | |||||