FD.io VPP  v17.01.1-3-gc6833f8
Vector Packet Processing
cnat_v4_pptp_alg.h File Reference
+ This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Macros

#define PPTP_DBG(debug, ...)
 
#define PPTP_DUMP_PACKET(ip, len)   pptp_hex_dump(ip, len)
 
#define PPTP_DISABLED   0
 
#define PPTP_ENABLED   1
 
#define PPTP_GRE_TIMEOUT   60 /*sec */
 
#define TCP_PPTP_PORT   1723
 
#define PPTP_PAC   0
 
#define PPTP_PNS   1
 
#define PPTP_MSG_TYPE_CONTROL   1
 
#define PPTP_MSG_TYPE_MGMT   2
 
#define PPTP_START_CC_RQ   1
 
#define PPTP_START_CC_RP   2
 
#define PPTP_STOP_CC_RQ   3
 
#define PPTP_STOP_CC_RP   4
 
#define PPTP_ECHO_RQ   5
 
#define PPTP_ECHO_RP   6
 
#define PPTP_OBOUND_CALL_RQ   7
 
#define PPTP_OBOUND_CALL_RP   8
 
#define PPTP_IBOUND_CALL_RQ   9
 
#define PPTP_IBOUND_CALL_RP   10
 
#define PPTP_IBOUND_CALL_CN   11
 
#define PPTP_CALL_CLEAR_RQ   12
 
#define PPTP_CALL_DISCON_NT   13
 
#define PPTP_WAN_ERR_NT   14
 
#define PPTP_SET_LINK_INF   15
 
#define PPTP_MIN_HDR_LEN   8
 
#define PPTP_CTRL_MGMT_TYPE_OFFSET   0x02
 
#define PPTP_CC_TYPE_OFFSET   0x08
 
#define PPTP_HDR_CALL_ID_OFFSET   0x0c
 
#define PPTP_HDR_PEER_CALL_ID_OFFSET   0x0e
 
#define PPTP_HDR_RESULT_CODE_OFFSET_STCCRP   0x0e
 
#define PPTP_HDR_RESULT_CODE_OFFSET   0x10
 
#define TCP_HEADER_SIZE(tcp)   ((tcp->hdr_len>>4) << 2)
 
#define PPTP_MSG_START_OFFSET(tcp)   ((u8*)tcp + TCP_HEADER_SIZE(tcp))
 
#define PPTP_CC_MSG_TYPE_OFFSET(tcp)
 
#define PPTP_MGMT_MSG_TYPE_OFFSET(tcp)
 
#define PPTP_CALL_ID_OFFSET(tcp)
 
#define PPTP_PEER_CALL_ID_OFFSET(tcp)
 
#define PPTP_RESULT_CODE_OFFSET(tcp)
 
#define PPTP_RESULT_CODE_OFFSET_STCCRP(tcp)
 
#define PPTP_CC_MSG_TYPE(tcp)   (u16*)PPTP_CC_MSG_TYPE_OFFSET(tcp)
 
#define PPTP_MGMT_MSG_TYPE(tcp)   (u16*)PPTP_MGMT_MSG_TYPE_OFFSET(tcp)
 
#define PPTP_CALL_ID(tcp)   (u16*)PPTP_CALL_ID_OFFSET(tcp)
 
#define PPTP_PEER_CALL_ID(tcp)   (u16*)PPTP_PEER_CALL_ID_OFFSET(tcp)
 
#define PPTP_RESULT_CODE(tcp)   *(u8*)PPTP_RESULT_CODE_OFFSET(tcp);
 
#define PPTP_RESULT_CODE_STCCRP(tcp)   *(u8*)PPTP_RESULT_CODE_OFFSET_STCCRP(tcp);
 
#define PPTP_CHAN_SUCCESS   1
 

Variables

u32 cnat_pptp_debug_flag
 

Macro Definition Documentation

#define PPTP_CALL_CLEAR_RQ   12

Definition at line 66 of file cnat_v4_pptp_alg.h.

#define PPTP_CALL_DISCON_NT   13

Definition at line 67 of file cnat_v4_pptp_alg.h.

#define PPTP_CALL_ID (   tcp)    (u16*)PPTP_CALL_ID_OFFSET(tcp)

Definition at line 129 of file cnat_v4_pptp_alg.h.

#define PPTP_CALL_ID_OFFSET (   tcp)
Value:
#define PPTP_MSG_START_OFFSET(tcp)
#define PPTP_HDR_CALL_ID_OFFSET

Definition at line 106 of file cnat_v4_pptp_alg.h.

#define PPTP_CC_MSG_TYPE (   tcp)    (u16*)PPTP_CC_MSG_TYPE_OFFSET(tcp)

Definition at line 123 of file cnat_v4_pptp_alg.h.

#define PPTP_CC_MSG_TYPE_OFFSET (   tcp)
Value:
#define PPTP_CC_TYPE_OFFSET
#define PPTP_MSG_START_OFFSET(tcp)

Definition at line 98 of file cnat_v4_pptp_alg.h.

#define PPTP_CC_TYPE_OFFSET   0x08

Definition at line 79 of file cnat_v4_pptp_alg.h.

#define PPTP_CHAN_SUCCESS   1

Definition at line 143 of file cnat_v4_pptp_alg.h.

#define PPTP_CTRL_MGMT_TYPE_OFFSET   0x02

Definition at line 78 of file cnat_v4_pptp_alg.h.

#define PPTP_DBG (   debug,
  ... 
)
Value:
PLATFORM_DEBUG_PRINT("%s:%s:%d - ", \
__FILE__, __FUNCTION__, __LINE__);\
}
#define PLATFORM_DEBUG_PRINT(...)
#define PREDICT_FALSE(x)
Definition: clib.h:97
u32 cnat_pptp_debug_flag

Definition at line 24 of file cnat_v4_pptp_alg.h.

#define PPTP_DISABLED   0

Definition at line 35 of file cnat_v4_pptp_alg.h.

#define PPTP_DUMP_PACKET (   ip,
  len 
)    pptp_hex_dump(ip, len)

Definition at line 32 of file cnat_v4_pptp_alg.h.

#define PPTP_ECHO_RP   6

Definition at line 58 of file cnat_v4_pptp_alg.h.

#define PPTP_ECHO_RQ   5

Definition at line 57 of file cnat_v4_pptp_alg.h.

#define PPTP_ENABLED   1

Definition at line 36 of file cnat_v4_pptp_alg.h.

#define PPTP_GRE_TIMEOUT   60 /*sec */

Definition at line 38 of file cnat_v4_pptp_alg.h.

#define PPTP_HDR_CALL_ID_OFFSET   0x0c

Definition at line 80 of file cnat_v4_pptp_alg.h.

#define PPTP_HDR_PEER_CALL_ID_OFFSET   0x0e

Definition at line 81 of file cnat_v4_pptp_alg.h.

#define PPTP_HDR_RESULT_CODE_OFFSET   0x10

Definition at line 84 of file cnat_v4_pptp_alg.h.

#define PPTP_HDR_RESULT_CODE_OFFSET_STCCRP   0x0e

Definition at line 83 of file cnat_v4_pptp_alg.h.

#define PPTP_IBOUND_CALL_CN   11

Definition at line 65 of file cnat_v4_pptp_alg.h.

#define PPTP_IBOUND_CALL_RP   10

Definition at line 64 of file cnat_v4_pptp_alg.h.

#define PPTP_IBOUND_CALL_RQ   9

Definition at line 63 of file cnat_v4_pptp_alg.h.

#define PPTP_MGMT_MSG_TYPE (   tcp)    (u16*)PPTP_MGMT_MSG_TYPE_OFFSET(tcp)

Definition at line 126 of file cnat_v4_pptp_alg.h.

#define PPTP_MGMT_MSG_TYPE_OFFSET (   tcp)
Value:
#define PPTP_MSG_START_OFFSET(tcp)
#define PPTP_CTRL_MGMT_TYPE_OFFSET

Definition at line 102 of file cnat_v4_pptp_alg.h.

#define PPTP_MIN_HDR_LEN   8

Definition at line 74 of file cnat_v4_pptp_alg.h.

#define PPTP_MSG_START_OFFSET (   tcp)    ((u8*)tcp + TCP_HEADER_SIZE(tcp))

Definition at line 94 of file cnat_v4_pptp_alg.h.

#define PPTP_MSG_TYPE_CONTROL   1

Definition at line 47 of file cnat_v4_pptp_alg.h.

#define PPTP_MSG_TYPE_MGMT   2

Definition at line 48 of file cnat_v4_pptp_alg.h.

#define PPTP_OBOUND_CALL_RP   8

Definition at line 62 of file cnat_v4_pptp_alg.h.

#define PPTP_OBOUND_CALL_RQ   7

Definition at line 61 of file cnat_v4_pptp_alg.h.

#define PPTP_PAC   0

Definition at line 42 of file cnat_v4_pptp_alg.h.

#define PPTP_PEER_CALL_ID (   tcp)    (u16*)PPTP_PEER_CALL_ID_OFFSET(tcp)

Definition at line 132 of file cnat_v4_pptp_alg.h.

#define PPTP_PEER_CALL_ID_OFFSET (   tcp)
Value:
#define PPTP_HDR_PEER_CALL_ID_OFFSET
#define PPTP_MSG_START_OFFSET(tcp)

Definition at line 110 of file cnat_v4_pptp_alg.h.

#define PPTP_PNS   1

Definition at line 43 of file cnat_v4_pptp_alg.h.

#define PPTP_RESULT_CODE (   tcp)    *(u8*)PPTP_RESULT_CODE_OFFSET(tcp);

Definition at line 135 of file cnat_v4_pptp_alg.h.

#define PPTP_RESULT_CODE_OFFSET (   tcp)
Value:
#define PPTP_HDR_RESULT_CODE_OFFSET
#define PPTP_MSG_START_OFFSET(tcp)

Definition at line 114 of file cnat_v4_pptp_alg.h.

#define PPTP_RESULT_CODE_OFFSET_STCCRP (   tcp)
Value:
#define PPTP_MSG_START_OFFSET(tcp)
#define PPTP_HDR_RESULT_CODE_OFFSET_STCCRP

Definition at line 118 of file cnat_v4_pptp_alg.h.

#define PPTP_RESULT_CODE_STCCRP (   tcp)    *(u8*)PPTP_RESULT_CODE_OFFSET_STCCRP(tcp);

Definition at line 138 of file cnat_v4_pptp_alg.h.

#define PPTP_SET_LINK_INF   15

Definition at line 72 of file cnat_v4_pptp_alg.h.

#define PPTP_START_CC_RP   2

Definition at line 54 of file cnat_v4_pptp_alg.h.

#define PPTP_START_CC_RQ   1

Definition at line 53 of file cnat_v4_pptp_alg.h.

#define PPTP_STOP_CC_RP   4

Definition at line 56 of file cnat_v4_pptp_alg.h.

#define PPTP_STOP_CC_RQ   3

Definition at line 55 of file cnat_v4_pptp_alg.h.

#define PPTP_WAN_ERR_NT   14

Definition at line 71 of file cnat_v4_pptp_alg.h.

#define TCP_HEADER_SIZE (   tcp)    ((tcp->hdr_len>>4) << 2)

Definition at line 90 of file cnat_v4_pptp_alg.h.

#define TCP_PPTP_PORT   1723

Definition at line 40 of file cnat_v4_pptp_alg.h.

Variable Documentation

u32 cnat_pptp_debug_flag