Back to home page

OSCL-LXR

 
 

    


0001 /* SPDX-License-Identifier: GPL-2.0 */
0002 #ifndef _NET_PPTP_H
0003 #define _NET_PPTP_H
0004 
0005 #include <linux/types.h>
0006 #include <net/gre.h>
0007 
0008 #define PPP_LCP_ECHOREQ 0x09
0009 #define PPP_LCP_ECHOREP 0x0A
0010 #define SC_RCV_BITS     (SC_RCV_B7_1|SC_RCV_B7_0|SC_RCV_ODDP|SC_RCV_EVNP)
0011 
0012 #define MISSING_WINDOW 20
0013 #define WRAPPED(curseq, lastseq)\
0014     ((((curseq) & 0xffffff00) == 0) &&\
0015     (((lastseq) & 0xffffff00) == 0xffffff00))
0016 
0017 #define PPTP_HEADER_OVERHEAD (2+sizeof(struct pptp_gre_header))
0018 struct pptp_gre_header {
0019     struct gre_base_hdr gre_hd;
0020     __be16 payload_len;
0021     __be16 call_id;
0022     __be32 seq;
0023     __be32 ack;
0024 } __packed;
0025 
0026 
0027 #endif