18c2ecf20Sopenharmony_ci/* SPDX-License-Identifier: GPL-2.0 */ 28c2ecf20Sopenharmony_ci#ifndef _NET_PPTP_H 38c2ecf20Sopenharmony_ci#define _NET_PPTP_H 48c2ecf20Sopenharmony_ci 58c2ecf20Sopenharmony_ci#define PPP_LCP_ECHOREQ 0x09 68c2ecf20Sopenharmony_ci#define PPP_LCP_ECHOREP 0x0A 78c2ecf20Sopenharmony_ci#define SC_RCV_BITS (SC_RCV_B7_1|SC_RCV_B7_0|SC_RCV_ODDP|SC_RCV_EVNP) 88c2ecf20Sopenharmony_ci 98c2ecf20Sopenharmony_ci#define MISSING_WINDOW 20 108c2ecf20Sopenharmony_ci#define WRAPPED(curseq, lastseq)\ 118c2ecf20Sopenharmony_ci ((((curseq) & 0xffffff00) == 0) &&\ 128c2ecf20Sopenharmony_ci (((lastseq) & 0xffffff00) == 0xffffff00)) 138c2ecf20Sopenharmony_ci 148c2ecf20Sopenharmony_ci#define PPTP_HEADER_OVERHEAD (2+sizeof(struct pptp_gre_header)) 158c2ecf20Sopenharmony_cistruct pptp_gre_header { 168c2ecf20Sopenharmony_ci struct gre_base_hdr gre_hd; 178c2ecf20Sopenharmony_ci __be16 payload_len; 188c2ecf20Sopenharmony_ci __be16 call_id; 198c2ecf20Sopenharmony_ci __be32 seq; 208c2ecf20Sopenharmony_ci __be32 ack; 218c2ecf20Sopenharmony_ci} __packed; 228c2ecf20Sopenharmony_ci 238c2ecf20Sopenharmony_ci 248c2ecf20Sopenharmony_ci#endif 25