1 /* 2 * Copyright (c) 2018 The TCPDUMP project 3 * All rights reserved. 4 * 5 * Redistribution and use in source and binary forms, with or without 6 * modification, are permitted provided that: (1) source code 7 * distributions retain the above copyright notice and this paragraph 8 * in its entirety, and (2) distributions including binary code include 9 * the above copyright notice and this paragraph in its entirety in 10 * the documentation or other materials provided with the distribution. 11 * THIS SOFTWARE IS PROVIDED ``AS IS'' AND 12 * WITHOUT ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, WITHOUT 13 * LIMITATION, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS 14 * FOR A PARTICULAR PURPOSE. 15 */ 16 17 #ifndef status_exit_codes_h 18 #define status_exit_codes_h 19 20 /* S_ERR_ND_* are libnetdissect status */ 21 22 typedef enum { 23 S_SUCCESS = 0, /* not a libnetdissect status */ 24 S_ERR_HOST_PROGRAM = 1, /* not a libnetdissect status */ 25 S_ERR_ND_MEM_ALLOC = 12, 26 S_ERR_ND_OPEN_FILE = 13, 27 S_ERR_ND_WRITE_FILE = 14, 28 S_ERR_ND_ESP_SECRET = 15 29 } status_exit_codes_t; 30 31 #endif /* status_exit_codes_h */ 32