|
Electroneum
|
Go to the source code of this file.
Macros | |
| #define | PCP_OPCODE_ANNOUNCE 0 |
| #define | PCP_OPCODE_MAP 1 |
| #define | PCP_OPCODE_PEER 2 |
| #define | PCP_SUCCESS 0 |
| #define | PCP_ERR_UNSUPP_VERSION 1 |
| #define | PCP_ERR_NOT_AUTHORIZED 2 |
| #define | PCP_ERR_MALFORMED_REQUEST 3 |
| #define | PCP_ERR_UNSUPP_OPCODE 4 |
| #define | PCP_ERR_UNSUPP_OPTION 5 |
| #define | PCP_ERR_MALFORMED_OPTION 6 |
| #define | PCP_ERR_NETWORK_FAILURE 7 |
| #define | PCP_ERR_NO_RESOURCES 8 |
| #define | PCP_ERR_UNSUPP_PROTOCOL 9 |
| #define | PCP_ERR_USER_EX_QUOTA 10 |
| #define | PCP_ERR_CANNOT_PROVIDE_EXTERNAL 11 |
| #define | PCP_ERR_ADDRESS_MISMATCH 12 |
| #define | PCP_ERR_EXCESSIVE_REMOTE_PEERS 13 |
| #define | PCP_COMMON_REQUEST_SIZE (24) |
| #define | PCP_COMMON_RESPONSE_SIZE (24) |
| #define | PCP_OPTION_HDR_SIZE (4) |
| #define | PCP_MAP_V2_SIZE (36) |
| #define | PCP_MAP_V1_SIZE (24) |
| #define | PCP_PEER_V1_SIZE (44) |
| #define | PCP_PEER_V2_SIZE (56) |
| #define | PCP_PREFER_FAIL_OPTION_SIZE (4) |
| #define | PCP_3RD_PARTY_OPTION_SIZE (20) |
| #define | PCP_FILTER_OPTION_SIZE (24) |
Typedefs | |
| typedef enum pcp_options | pcp_options_t |
Enumerations | |
| enum | pcp_options { PCP_OPTION_3RD_PARTY = 1, PCP_OPTION_PREF_FAIL = 2, PCP_OPTION_FILTER = 3 } |
| #define PCP_3RD_PARTY_OPTION_SIZE (20) |
Definition at line 286 of file pcp_msg_struct.h.
| #define PCP_COMMON_REQUEST_SIZE (24) |
Definition at line 152 of file pcp_msg_struct.h.
| #define PCP_COMMON_RESPONSE_SIZE (24) |
Definition at line 169 of file pcp_msg_struct.h.
| #define PCP_ERR_ADDRESS_MISMATCH 12 |
The suggested external port and/or external address cannot be provided. This error MUST only be returned for:
Definition at line 116 of file pcp_msg_struct.h.
| #define PCP_ERR_CANNOT_PROVIDE_EXTERNAL 11 |
This attempt to create a new mapping would exceed this subscriber's port quota. This is a short lifetime error.
Definition at line 106 of file pcp_msg_struct.h.
| #define PCP_ERR_EXCESSIVE_REMOTE_PEERS 13 |
The source IP address of the request packet does not match the contents of the PCP Client's IP Address field, due to an unexpected NAT on the path between the PCP client and the PCP-controlled NAT or firewall. This is a long lifetime error.
Definition at line 123 of file pcp_msg_struct.h.
| #define PCP_ERR_MALFORMED_OPTION 6 |
Unsupported Option. This error only occurs if the Option is in the mandatory-to-process range. This is a long lifetime error.
Definition at line 73 of file pcp_msg_struct.h.
| #define PCP_ERR_MALFORMED_REQUEST 3 |
The requested operation is disabled for this PCP client, or the PCP client requested an operation that cannot be fulfilled by the PCP server's security policy. This is a long lifetime error.
Definition at line 58 of file pcp_msg_struct.h.
| #define PCP_ERR_NETWORK_FAILURE 7 |
Malformed Option (e.g., appears too many times, invalid length). This is a long lifetime error.
Definition at line 78 of file pcp_msg_struct.h.
| #define PCP_ERR_NO_RESOURCES 8 |
The PCP server or the device it controls are experiencing a network failure of some sort (e.g., has not obtained an External IP address). This is a short lifetime error.
Definition at line 84 of file pcp_msg_struct.h.
| #define PCP_ERR_NOT_AUTHORIZED 2 |
The version number at the start of the PCP Request header is not recognized by this PCP server. This is a long lifetime error. This document describes PCP version 2.
Definition at line 51 of file pcp_msg_struct.h.
| #define PCP_ERR_UNSUPP_OPCODE 4 |
The request could not be successfully parsed. This is a long lifetime error.
Definition at line 63 of file pcp_msg_struct.h.
| #define PCP_ERR_UNSUPP_OPTION 5 |
Unsupported Opcode. This is a long lifetime error.
Definition at line 67 of file pcp_msg_struct.h.
| #define PCP_ERR_UNSUPP_PROTOCOL 9 |
Request is well-formed and valid, but the server has insufficient resources to complete the requested operation at this time. For example, the NAT device cannot create more mappings at this time, is short of CPU cycles or memory, or is unable to handle the request due to some other temporary condition. The same request may succeed in the future. This is a system-wide error, different from USER_EX_QUOTA. This can be used as a catch- all error, should no other error message be suitable. This is a short lifetime error.
Definition at line 96 of file pcp_msg_struct.h.
| #define PCP_ERR_UNSUPP_VERSION 1 |
Definition at line 45 of file pcp_msg_struct.h.
| #define PCP_ERR_USER_EX_QUOTA 10 |
Unsupported transport protocol, e.g. SCTP in a NAT that handles only UDP and TCP. This is a long lifetime error.
Definition at line 101 of file pcp_msg_struct.h.
| #define PCP_FILTER_OPTION_SIZE (24) |
Definition at line 317 of file pcp_msg_struct.h.
| #define PCP_MAP_V1_SIZE (24) |
Definition at line 209 of file pcp_msg_struct.h.
| #define PCP_MAP_V2_SIZE (36) |
Definition at line 195 of file pcp_msg_struct.h.
| #define PCP_OPCODE_ANNOUNCE 0 |
Definition at line 35 of file pcp_msg_struct.h.
| #define PCP_OPCODE_MAP 1 |
Definition at line 36 of file pcp_msg_struct.h.
| #define PCP_OPCODE_PEER 2 |
Definition at line 37 of file pcp_msg_struct.h.
| #define PCP_OPTION_HDR_SIZE (4) |
Definition at line 180 of file pcp_msg_struct.h.
| #define PCP_PEER_V1_SIZE (44) |
Definition at line 226 of file pcp_msg_struct.h.
| #define PCP_PEER_V2_SIZE (56) |
Definition at line 244 of file pcp_msg_struct.h.
| #define PCP_PREFER_FAIL_OPTION_SIZE (4) |
Definition at line 275 of file pcp_msg_struct.h.
| #define PCP_SUCCESS 0 |
Definition at line 43 of file pcp_msg_struct.h.
| typedef enum pcp_options pcp_options_t |
The PCP server was not able to create the filters in this request. This result code MUST only be returned if the MAP request contained the FILTER Option. See Section 13.3 for processing information. This is a long lifetime error.
| enum pcp_options |
The PCP server was not able to create the filters in this request. This result code MUST only be returned if the MAP request contained the FILTER Option. See Section 13.3 for processing information. This is a long lifetime error.
| Enumerator | |
|---|---|
| PCP_OPTION_3RD_PARTY | |
| PCP_OPTION_PREF_FAIL | |
| PCP_OPTION_FILTER | |
Definition at line 130 of file pcp_msg_struct.h.