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