1 /* packet-asap+enrp-common.c
3 * Aggregate Server Access Protocol (ASAP) and
4 * Endpoint Handlespace Redundancy Protocol (ENRP)
5 * It is hopefully (needs testing) compliant to
9 * https://tools.ietf.org/html/draft-dreibholz-rserpool-asap-hropt-27
10 * https://tools.ietf.org/html/draft-dreibholz-rserpool-delay-26
11 * https://tools.ietf.org/html/draft-dreibholz-rserpool-enrp-takeover-21
13 * Copyright 2008-2021 Thomas Dreibholz <dreibh [AT] iem.uni-due.de>
14 * Copyright 2004-2007 Michael Tüxen <tuexen [AT] fh-muenster.de>
16 * Wireshark - Network traffic analyzer
17 * By Gerald Combs <gerald@wireshark.org>
18 * Copyright 1998 Gerald Combs
20 * Copied from README.developer
22 * SPDX-License-Identifier: GPL-2.0-or-later
26 #include "packet-asap+enrp-common.h"
28 const value_string cause_code_values
[] = {
29 { UNRECOGNIZED_PARAMETER_CAUSE_CODE
, "Unrecognized parameter" },
30 { UNRECONGNIZED_MESSAGE_CAUSE_CODE
, "Unrecognized message" },
31 { INVALID_VALUES
, "Invalid values" },
32 { NON_UNIQUE_PE_IDENTIFIER
, "Non-unique PE identifier" },
33 { POOLING_POLICY_INCONSISTENT_CAUSE_CODE
, "Pooling policy inconsistent" },
34 { LACK_OF_RESOURCES_CAUSE_CODE
, "Lack of resources" },
35 { INCONSISTENT_TRANSPORT_TYPE_CAUSE_CODE
, "Inconsistent transport type" },
36 { INCONSISTENT_DATA_CONTROL_CONFIGURATION_CAUSE_CODE
, "Inconsistent data/control type" },
37 { UNKNOWN_POOL_HANDLE
, "Unknown pool handle" },
38 { REJECTION_DUE_TO_SECURITY_CAUSE_CODE
, "Rejected due to security considerations" },
41 const value_string policy_type_values
[] = {
42 { ROUND_ROBIN_POLICY
, "Round Robin (RR)" },
43 { WEIGHTED_ROUND_ROBIN_POLICY
, "Weighted Round Robin (WRR)" },
44 { RANDOM_POLICY
, "Random (RAND)"},
45 { WEIGHTED_RANDOM_POLICY
, "Weighted Random (WRAND)" },
46 { PRIORITY_POLICY
, "Priority (PRI)" },
47 { LEAST_USED_POLICY
, "Least Used (LU)" },
48 { LEAST_USED_WITH_DEG_POLICY
, "Least Used with Degradation (LUD)" },
49 { PRIORITY_LEAST_USED_POLICY
, "Priority Least Used (PLU)" },
50 { PRIORITY_LEAST_USED_DEG_POLICY
, "Priority Least Used with Degradation (PLUD)" },
51 { RANDOMIZED_LEAST_USED_POLICY
, "Randomized Least Used (RLU)" },
52 { LEAST_USED_DPF_POLICY
, "Least Used with Delay Penalty Factor (LU-DPF)" },
53 { WEIGHTED_RANDOM_DPF_POLICY
, "Weighted Random with Delay Penalty Factor (WRAND-DPF)" },
56 const value_string transport_use_values
[] = {
57 { TRANSPORT_USE_DATA_ONLY
, "Data only" },
58 { TRANSPORT_USE_DATA_PLUS_CONTROL
, "Data plus control" },
61 const value_string parameter_type_values
[] = {
62 { IPV4_ADDRESS_PARAMETER_TYPE
, "IPv4 Address Parameter" },
63 { IPV6_ADDRESS_PARAMETER_TYPE
, "IPv6 Address Parameter" },
64 { DCCP_TRANSPORT_PARAMETER_TYPE
, "DCCP Transport Address Parameter" },
65 { SCTP_TRANSPORT_PARAMETER_TYPE
, "SCTP Transport Address Parameter" },
66 { TCP_TRANSPORT_PARAMETER_TYPE
, "TCP Transport Address Parameter" },
67 { UDP_TRANSPORT_PARAMETER_TYPE
, "UDP Transport Address Parameter" },
68 { UDP_LITE_TRANSPORT_PARAMETER_TYPE
, "UDP-Lite Transport Address Parameter" },
69 { POOL_MEMBER_SELECTION_POLICY_PARAMETER_TYPE
, "Pool Member Selection Policy Parameter" },
70 { POOL_HANDLE_PARAMETER_TYPE
, "Pool Handle Parameter" },
71 { POOL_ELEMENT_PARAMETER_TYPE
, "Pool Element Parameter" },
72 { SERVER_INFORMATION_PARAMETER_TYPE
, "Server Information Parameter" },
73 { OPERATION_ERROR_PARAMETER_TYPE
, "Operation Error Parameter" },
74 { COOKIE_PARAMETER_TYPE
, "Cookie Parameter" },
75 { PE_IDENTIFIER_PARAMETER_TYPE
, "Pool Element Identifier Parameter" },
76 { PE_CHECKSUM_PARAMETER_TYPE
, "PE Checksum Parameter" },
77 { HANDLE_RESOLUTION_OPTION_PARAMETER_TYPE
, "Handle Resolution Option Parameter" },
81 * Editor modelines - https://www.wireshark.org/tools/modelines.html
86 * indent-tabs-mode: nil
89 * ex: set shiftwidth=2 tabstop=8 expandtab:
90 * :indentSize=2:tabSize=8:noTabs=true: