pptp.h 518 B

123456789101112131415161718192021222324
  1. #ifndef _NET_PPTP_H
  2. #define _NET_PPTP_H
  3. #define PPP_LCP_ECHOREQ 0x09
  4. #define PPP_LCP_ECHOREP 0x0A
  5. #define SC_RCV_BITS (SC_RCV_B7_1|SC_RCV_B7_0|SC_RCV_ODDP|SC_RCV_EVNP)
  6. #define MISSING_WINDOW 20
  7. #define WRAPPED(curseq, lastseq)\
  8. ((((curseq) & 0xffffff00) == 0) &&\
  9. (((lastseq) & 0xffffff00) == 0xffffff00))
  10. #define PPTP_HEADER_OVERHEAD (2+sizeof(struct pptp_gre_header))
  11. struct pptp_gre_header {
  12. struct gre_base_hdr gre_hd;
  13. __be16 payload_len;
  14. __be16 call_id;
  15. __be32 seq;
  16. __be32 ack;
  17. } __packed;
  18. #endif