pptp.h 557 B

12345678910111213141516171819202122232425
  1. /* SPDX-License-Identifier: GPL-2.0 */
  2. #ifndef _NET_PPTP_H
  3. #define _NET_PPTP_H
  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. #define MISSING_WINDOW 20
  8. #define WRAPPED(curseq, lastseq)\
  9. ((((curseq) & 0xffffff00) == 0) &&\
  10. (((lastseq) & 0xffffff00) == 0xffffff00))
  11. #define PPTP_HEADER_OVERHEAD (2+sizeof(struct pptp_gre_header))
  12. struct pptp_gre_header {
  13. struct gre_base_hdr gre_hd;
  14. __be16 payload_len;
  15. __be16 call_id;
  16. __be32 seq;
  17. __be32 ack;
  18. } __packed;
  19. #endif