Gao Feng | ab10dcc | 2016-08-09 12:38:24 +0800 | [diff] [blame] | 1 | #ifndef _NET_PPTP_H |
| 2 | #define _NET_PPTP_H |
| 3 | |
| 4 | #define PPP_LCP_ECHOREQ 0x09 |
| 5 | #define PPP_LCP_ECHOREP 0x0A |
| 6 | #define SC_RCV_BITS (SC_RCV_B7_1|SC_RCV_B7_0|SC_RCV_ODDP|SC_RCV_EVNP) |
| 7 | |
| 8 | #define MISSING_WINDOW 20 |
| 9 | #define WRAPPED(curseq, lastseq)\ |
| 10 | ((((curseq) & 0xffffff00) == 0) &&\ |
| 11 | (((lastseq) & 0xffffff00) == 0xffffff00)) |
| 12 | |
Gao Feng | ab10dcc | 2016-08-09 12:38:24 +0800 | [diff] [blame] | 13 | #define PPTP_HEADER_OVERHEAD (2+sizeof(struct pptp_gre_header)) |
| 14 | struct pptp_gre_header { |
Gao Feng | 0345934 | 2016-08-13 00:30:48 +0800 | [diff] [blame] | 15 | struct gre_base_hdr gre_hd; |
Gao Feng | ab10dcc | 2016-08-09 12:38:24 +0800 | [diff] [blame] | 16 | __be16 payload_len; |
| 17 | __be16 call_id; |
| 18 | __be32 seq; |
| 19 | __be32 ack; |
| 20 | } __packed; |
| 21 | |
| 22 | |
| 23 | #endif |