3 ** WIMAXASNCP Dictionary Import Routines
5 ** (c) 2007, Stephen Croll <stephen.d.croll@gmail.com>
7 ** SPDX-License-Identifier: LGPL-2.0-or-later
10 #ifndef _WIMAXASNCP_DICT_H_
11 #define _WIMAXASNCP_DICT_H_
13 /* -------------------------------------------------------------------------
15 * ------------------------------------------------------------------------- */
17 #define WIMAXASNCP_NWGVER_R10_V100 0
18 #define WIMAXASNCP_NWGVER_R10_V120 1
19 #define WIMAXASNCP_NWGVER_R10_V121 2
20 #define WIMAXASNCP_NWGVER_NUM 3
22 /* -------------------------------------------------------------------------
24 * ------------------------------------------------------------------------- */
28 WIMAXASNCP_TLV_UNKNOWN
,
30 WIMAXASNCP_TLV_COMPOUND
,
33 WIMAXASNCP_TLV_ENUM16
,
34 WIMAXASNCP_TLV_ENUM32
,
36 WIMAXASNCP_TLV_ASCII_STRING
,
38 WIMAXASNCP_TLV_BITFLAGS8
,
39 WIMAXASNCP_TLV_BITFLAGS16
,
40 WIMAXASNCP_TLV_BITFLAGS32
,
48 WIMAXASNCP_TLV_IP_ADDRESS
, /* Note: IPv4 or IPv6, determined by length */
49 WIMAXASNCP_TLV_IPV4_ADDRESS
,
50 WIMAXASNCP_TLV_PROTOCOL_LIST
,
51 WIMAXASNCP_TLV_PORT_RANGE_LIST
,
52 WIMAXASNCP_TLV_IP_ADDRESS_MASK_LIST
,
54 WIMAXASNCP_TLV_VENDOR_SPECIFIC
57 /* -------------------------------------------------------------------------
58 * structures and functions
59 * ------------------------------------------------------------------------- */
61 struct _wimaxasncp_dict_namecode_t
{
64 struct _wimaxasncp_dict_namecode_t
*next
;
67 typedef struct _wimaxasncp_dict_namecode_t wimaxasncp_dict_enum_t
;
69 typedef struct _wimaxasncp_dict_tlv_t
{
86 int hf_vendor_rest_of_info
;
87 value_string
*enum_vs
;
88 wimaxasncp_dict_enum_t
*enums
;
89 struct _wimaxasncp_dict_tlv_t
*next
;
90 } wimaxasncp_dict_tlv_t
;
92 typedef struct _wimaxasncp_dict_xmlpi_t
{
96 struct _wimaxasncp_dict_xmlpi_t
*next
;
97 } wimaxasncp_dict_xmlpi_t
;
99 typedef struct _wimaxasncp_dict_t
{
100 wimaxasncp_dict_tlv_t
*tlvs
;
101 wimaxasncp_dict_xmlpi_t
*xmlpis
;
104 extern void wimaxasncp_dict_print(
105 FILE *fh
, wimaxasncp_dict_t
*d
);
107 extern wimaxasncp_dict_t
*wimaxasncp_dict_scan(
108 const char *system_directory
, const char *filename
, int dbg
,
111 extern void wimaxasncp_dict_free(
112 wimaxasncp_dict_t
*d
);