epan/dissectors/pidl/samr/samr.cnf cnf_dissect_lsa_BinaryString => lsarpc_dissect_str...
[wireshark-sm.git] / epan / dissectors / cond_ace_token_enum.h
blob88143605663e68e71d1537134348cd866d2fdeeb
1 /* cond_ace_token_enum.h
2 * Token Type definitions from [MS-DTYP] v20180912 section 2.4.4.17
4 * John Bankier <opensource.jbankier[AT]gmail.com>
6 * Expects DEF_COND_ACE_TOKEN and DEF_COND_ACE_TOKEN_WITH_DATA macros to
7 * be defined prior to including this file. Each macro expects the
8 * following parameters: value, variable, string, e.g.:
10 * const char *foo(int bar) {
11 * switch (bar) {
12 * #define DEF_COND_ACE_TOKEN(VAL, VAR, STR) case VAL: return STR;
13 * #define DEF_COND_ACE_TOKEN_WITH_DATA(VAL, VAR, STR) case VAL: return STR;
14 * #include "cond_ace_token_enum.h"
15 * }
16 * return NULL;
17 * }
19 * Do not add #ifndef guards to this header file as it designed to be
20 * included multiple times (if required).
22 * Wireshark - Network traffic analyzer
23 * By Gerald Combs <gerald@wireshark.org>
24 * Copyright 1998 Gerald Combs
26 * SPDX-License-Identifier: GPL-2.0-or-later
28 DEF_COND_ACE_TOKEN(0x00, PAD, "PAD")
29 DEF_COND_ACE_TOKEN_WITH_DATA(0x01, INT8, "INT8")
30 DEF_COND_ACE_TOKEN_WITH_DATA(0x02, INT16, "INT16")
31 DEF_COND_ACE_TOKEN_WITH_DATA(0x03, INT32, "INT32")
32 DEF_COND_ACE_TOKEN_WITH_DATA(0x04, INT64, "INT64")
33 DEF_COND_ACE_TOKEN_WITH_DATA(0x10, UNICODE_STRING, "UNICODE_STRING")
34 DEF_COND_ACE_TOKEN_WITH_DATA(0x18, OCTET_STRING, "OCTET_STRING")
35 DEF_COND_ACE_TOKEN_WITH_DATA(0x50, COMPOSITE, "COMPOSITE")
36 DEF_COND_ACE_TOKEN_WITH_DATA(0x51, SID, "SID")
37 DEF_COND_ACE_TOKEN(0x80, EQUAL, "==")
38 DEF_COND_ACE_TOKEN(0x81, NOT_EQUAL, "!=")
39 DEF_COND_ACE_TOKEN(0x82, LESS_THAN, "<")
40 DEF_COND_ACE_TOKEN(0x83, LESS_THAN_OR_EQUAL, "<=")
41 DEF_COND_ACE_TOKEN(0x84, GREATER_THAN, ">")
42 DEF_COND_ACE_TOKEN(0x85, GREATER_THAN_OR_EQUAL, ">=")
43 DEF_COND_ACE_TOKEN(0x86, CONTAINS, "CONTAINS")
44 DEF_COND_ACE_TOKEN(0x87, EXISTS, "EXISTS")
45 DEF_COND_ACE_TOKEN(0x88, ANY_OF, "ANY_OF")
46 DEF_COND_ACE_TOKEN(0x89, MEMBER_OF, "MEMBER_OF")
47 DEF_COND_ACE_TOKEN(0x8a, DEVICE_MEMBER_OF, "DEVICE_MEMBER_OF")
48 DEF_COND_ACE_TOKEN(0x8b, MEMBER_OF_ANY, "MEMBER_OF_ANY" )
49 DEF_COND_ACE_TOKEN(0x8c, DEVICE_MEMBER_OF_ANY, "DEVICE_MEMBER_OF_ANY")
50 DEF_COND_ACE_TOKEN(0x8d, NOT_EXISTS, "NOT_EXISTS")
51 DEF_COND_ACE_TOKEN(0x8e, NOT_CONTAINS, "NOT_CONTAINS")
52 DEF_COND_ACE_TOKEN(0x8f, NOT_ANY_OF, "NOT_ANY_OF")
53 DEF_COND_ACE_TOKEN(0x90, NOT_MEMBER_OF, "NOT_MEMBER_OF")
54 DEF_COND_ACE_TOKEN(0x91, NOT_DEVICE_MEMBER_OF, "NOT_DEVICE_MEMBER_OF")
55 DEF_COND_ACE_TOKEN(0x92, NOT_MEMBER_OF_ANY, "NOT_MEMBER_OF_ANY")
56 DEF_COND_ACE_TOKEN(0x93, NOT_DEVICE_MEMBER_OF_ANY, "NOT_DEVICE_MEMBER_OF_ANY" )
57 DEF_COND_ACE_TOKEN(0xa0, AND, "AND")
58 DEF_COND_ACE_TOKEN(0xa1, OR, "OR")
59 DEF_COND_ACE_TOKEN(0xa2, NOT, "NOT")
60 DEF_COND_ACE_TOKEN_WITH_DATA(0xf8, LOCAL_ATTRIBUTE, "LOCAL_ATTRIBUTE")
61 DEF_COND_ACE_TOKEN_WITH_DATA(0xf9, USER_ATTRIBUTE, "USER_ATTRIBUTE")
62 DEF_COND_ACE_TOKEN_WITH_DATA(0xfa, RESOURCE_ATTRIBUTE, "RESOURCE_ATTRIBUTE")
63 DEF_COND_ACE_TOKEN_WITH_DATA(0xfb, DEVICE_ATTRIBUTE, "DEVICE_ATTRIBUTE")
65 #undef DEF_COND_ACE_TOKEN
66 #undef DEF_COND_ACE_TOKEN_WITH_DATA