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