Merge tag 'mfd-next-6.4' of git://git.kernel.org/pub/scm/linux/kernel/git/lee/mfd
[linux-block.git] / include / net / pptp.h
CommitLineData
b2441318 1/* SPDX-License-Identifier: GPL-2.0 */
ab10dccb
GF
2#ifndef _NET_PPTP_H
3#define _NET_PPTP_H
4
949d6b40
JK
5#include <linux/types.h>
6#include <net/gre.h>
7
ab10dccb
GF
8#define PPP_LCP_ECHOREQ 0x09
9#define PPP_LCP_ECHOREP 0x0A
10#define SC_RCV_BITS (SC_RCV_B7_1|SC_RCV_B7_0|SC_RCV_ODDP|SC_RCV_EVNP)
11
12#define MISSING_WINDOW 20
13#define WRAPPED(curseq, lastseq)\
14 ((((curseq) & 0xffffff00) == 0) &&\
15 (((lastseq) & 0xffffff00) == 0xffffff00))
16
ab10dccb
GF
17#define PPTP_HEADER_OVERHEAD (2+sizeof(struct pptp_gre_header))
18struct pptp_gre_header {
03459345 19 struct gre_base_hdr gre_hd;
ab10dccb
GF
20 __be16 payload_len;
21 __be16 call_id;
22 __be32 seq;
23 __be32 ack;
24} __packed;
25
26
27#endif