Wireshark 4.5.0
The Wireshark network protocol analyzer
Loading...
Searching...
No Matches
cond_ace_token_enum.h
1/* cond_ace_token_enum.h
2 * Token Type definitions from [MS-DTYP] v20180912 section 2.4.4.17
3 *
4 * John Bankier <opensource.jbankier[AT]gmail.com>
5 *
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.:
9 *
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 * }
18 *
19 * Do not add #ifndef guards to this header file as it designed to be
20 * included multiple times (if required).
21 *
22 * Wireshark - Network traffic analyzer
23 * By Gerald Combs <[email protected]>
24 * Copyright 1998 Gerald Combs
25 *
26 * SPDX-License-Identifier: GPL-2.0-or-later
27 */
28DEF_COND_ACE_TOKEN(0x00, PAD, "PAD")
29DEF_COND_ACE_TOKEN_WITH_DATA(0x01, INT8, "INT8")
30DEF_COND_ACE_TOKEN_WITH_DATA(0x02, INT16, "INT16")
31DEF_COND_ACE_TOKEN_WITH_DATA(0x03, INT32, "INT32")
32DEF_COND_ACE_TOKEN_WITH_DATA(0x04, INT64, "INT64")
33DEF_COND_ACE_TOKEN_WITH_DATA(0x10, UNICODE_STRING, "UNICODE_STRING")
34DEF_COND_ACE_TOKEN_WITH_DATA(0x18, OCTET_STRING, "OCTET_STRING")
35DEF_COND_ACE_TOKEN_WITH_DATA(0x50, COMPOSITE, "COMPOSITE")
36DEF_COND_ACE_TOKEN_WITH_DATA(0x51, SID, "SID")
37DEF_COND_ACE_TOKEN(0x80, EQUAL, "==")
38DEF_COND_ACE_TOKEN(0x81, NOT_EQUAL, "!=")
39DEF_COND_ACE_TOKEN(0x82, LESS_THAN, "<")
40DEF_COND_ACE_TOKEN(0x83, LESS_THAN_OR_EQUAL, "<=")
41DEF_COND_ACE_TOKEN(0x84, GREATER_THAN, ">")
42DEF_COND_ACE_TOKEN(0x85, GREATER_THAN_OR_EQUAL, ">=")
43DEF_COND_ACE_TOKEN(0x86, CONTAINS, "CONTAINS")
44DEF_COND_ACE_TOKEN(0x87, EXISTS, "EXISTS")
45DEF_COND_ACE_TOKEN(0x88, ANY_OF, "ANY_OF")
46DEF_COND_ACE_TOKEN(0x89, MEMBER_OF, "MEMBER_OF")
47DEF_COND_ACE_TOKEN(0x8a, DEVICE_MEMBER_OF, "DEVICE_MEMBER_OF")
48DEF_COND_ACE_TOKEN(0x8b, MEMBER_OF_ANY, "MEMBER_OF_ANY" )
49DEF_COND_ACE_TOKEN(0x8c, DEVICE_MEMBER_OF_ANY, "DEVICE_MEMBER_OF_ANY")
50DEF_COND_ACE_TOKEN(0x8d, NOT_EXISTS, "NOT_EXISTS")
51DEF_COND_ACE_TOKEN(0x8e, NOT_CONTAINS, "NOT_CONTAINS")
52DEF_COND_ACE_TOKEN(0x8f, NOT_ANY_OF, "NOT_ANY_OF")
53DEF_COND_ACE_TOKEN(0x90, NOT_MEMBER_OF, "NOT_MEMBER_OF")
54DEF_COND_ACE_TOKEN(0x91, NOT_DEVICE_MEMBER_OF, "NOT_DEVICE_MEMBER_OF")
55DEF_COND_ACE_TOKEN(0x92, NOT_MEMBER_OF_ANY, "NOT_MEMBER_OF_ANY")
56DEF_COND_ACE_TOKEN(0x93, NOT_DEVICE_MEMBER_OF_ANY, "NOT_DEVICE_MEMBER_OF_ANY" )
57DEF_COND_ACE_TOKEN(0xa0, AND, "AND")
58DEF_COND_ACE_TOKEN(0xa1, OR, "OR")
59DEF_COND_ACE_TOKEN(0xa2, NOT, "NOT")
60DEF_COND_ACE_TOKEN_WITH_DATA(0xf8, LOCAL_ATTRIBUTE, "LOCAL_ATTRIBUTE")
61DEF_COND_ACE_TOKEN_WITH_DATA(0xf9, USER_ATTRIBUTE, "USER_ATTRIBUTE")
62DEF_COND_ACE_TOKEN_WITH_DATA(0xfa, RESOURCE_ATTRIBUTE, "RESOURCE_ATTRIBUTE")
63DEF_COND_ACE_TOKEN_WITH_DATA(0xfb, DEVICE_ATTRIBUTE, "DEVICE_ATTRIBUTE")
64
65#undef DEF_COND_ACE_TOKEN
66#undef DEF_COND_ACE_TOKEN_WITH_DATA