1 //--------------------------------------------------------------------------
2 // Copyright (C) 2014-2021 Cisco and/or its affiliates. All rights reserved.
3 // Copyright (C) 2007-2013 Sourcefire, Inc.
4 //
5 // This program is free software; you can redistribute it and/or modify it
6 // under the terms of the GNU General Public License Version 2 as published
7 // by the Free Software Foundation.  You may not use, modify or distribute
8 // this program under any other version of the GNU General Public License.
9 //
10 // This program is distributed in the hope that it will be useful, but
11 // WITHOUT ANY WARRANTY; without even the implied warranty of
12 // MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
13 // General Public License for more details.
14 //
15 // You should have received a copy of the GNU General Public License along
16 // with this program; if not, write to the Free Software Foundation, Inc.,
17 // 51 Franklin Street, Fifth Floor, Boston, MA  02110-1301, USA.
18 //--------------------------------------------------------------------------
19 
20 #ifndef SF_RETURNS_H
21 #define SF_RETURNS_H
22 
23 enum SfIpRet
24 {
25     SFIP_SUCCESS=0,
26     SFIP_FAILURE,
27     SFIP_LESSER,
28     SFIP_GREATER,
29     SFIP_EQUAL,
30     SFIP_ARG_ERR,
31     SFIP_CIDR_ERR,
32     SFIP_INET_PARSE_ERR,
33     SFIP_INVALID_MASK,
34     SFIP_ALLOC_ERR,
35     SFIP_CONTAINS,
36     SFIP_NOT_CONTAINS,
37     SFIP_DUPLICATE,         /* Tried to add a duplicate variable name to table */
38     SFIP_LOOKUP_FAILURE,    /* Failed to lookup a variable from the table */
39     SFIP_UNMATCHED_BRACKET, /* IP lists that are missing a closing bracket */
40     SFIP_NOT_ANY,           /* For !any */
41     SFIP_CONFLICT,          /* For IP conflicts in IP lists */
42     SFIP_LOOKUP_UNAVAILABLE /* var table unavailable */
43 };
44 
45 #endif
46 
47