- added encoding_type_t_mappings
[strongswan.git] / Source / charon / payloads / encodings.c
1 /**
2 * @file encodings.c
3 *
4 * @brief Type definitions for parser and generator,
5 * also payload types are defined here.
6 *
7 */
8
9 /*
10 * Copyright (C) 2005 Jan Hutter, Martin Willi
11 * Hochschule fuer Technik Rapperswil
12 *
13 * This program is free software; you can redistribute it and/or modify it
14 * under the terms of the GNU General Public License as published by the
15 * Free Software Foundation; either version 2 of the License, or (at your
16 * option) any later version. See <http://www.fsf.org/copyleft/gpl.txt>.
17 *
18 * This program is distributed in the hope that it will be useful, but
19 * WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY
20 * or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License
21 * for more details.
22 */
23
24
25 #include "encodings.h"
26
27
28 mapping_t encoding_type_t_mappings[] = {
29 {U_INT_4, "U_INT_4"},
30 {U_INT_8, "U_INT_8"},
31 {U_INT_16, "U_INT_16"},
32 {U_INT_32, "U_INT_32"},
33 {U_INT_64, "U_INT_64"},
34 {RESERVED_BIT, "RESERVED_BIT"},
35 {RESERVED_BYTE, "RESERVED_BYTE"},
36 {FLAG, "FLAG"},
37 {PAYLOAD_LENGTH, "PAYLOAD_LENGTH"},
38 {HEADER_LENGTH, "HEADER_LENGTH"},
39 {SPI_SIZE, "SPI_SIZE"},
40 {PROPOSALS, "PROPOSALS"}
41 };