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