isdn_ppp.h 1.8 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667
  1. /* Linux ISDN subsystem, sync PPP, interface to ipppd
  2. *
  3. * Copyright 1994-1999 by Fritz Elfert (fritz@isdn4linux.de)
  4. * Copyright 1995,96 Thinking Objects Software GmbH Wuerzburg
  5. * Copyright 1995,96 by Michael Hipp (Michael.Hipp@student.uni-tuebingen.de)
  6. * Copyright 2000-2002 by Kai Germaschewski (kai@germaschewski.name)
  7. *
  8. * This software may be used and distributed according to the terms
  9. * of the GNU General Public License, incorporated herein by reference.
  10. *
  11. */
  12. #ifndef _UAPI_LINUX_ISDN_PPP_H
  13. #define _UAPI_LINUX_ISDN_PPP_H
  14. #define CALLTYPE_INCOMING 0x1
  15. #define CALLTYPE_OUTGOING 0x2
  16. #define CALLTYPE_CALLBACK 0x4
  17. #define IPPP_VERSION "2.2.0"
  18. struct pppcallinfo
  19. {
  20. int calltype;
  21. unsigned char local_num[64];
  22. unsigned char remote_num[64];
  23. int charge_units;
  24. };
  25. #define PPPIOCGCALLINFO _IOWR('t',128,struct pppcallinfo)
  26. #define PPPIOCBUNDLE _IOW('t',129,int)
  27. #define PPPIOCGMPFLAGS _IOR('t',130,int)
  28. #define PPPIOCSMPFLAGS _IOW('t',131,int)
  29. #define PPPIOCSMPMTU _IOW('t',132,int)
  30. #define PPPIOCSMPMRU _IOW('t',133,int)
  31. #define PPPIOCGCOMPRESSORS _IOR('t',134,unsigned long [8])
  32. #define PPPIOCSCOMPRESSOR _IOW('t',135,int)
  33. #define PPPIOCGIFNAME _IOR('t',136, char [IFNAMSIZ] )
  34. #define SC_MP_PROT 0x00000200
  35. #define SC_REJ_MP_PROT 0x00000400
  36. #define SC_OUT_SHORT_SEQ 0x00000800
  37. #define SC_IN_SHORT_SEQ 0x00004000
  38. #define SC_DECOMP_ON 0x01
  39. #define SC_COMP_ON 0x02
  40. #define SC_DECOMP_DISCARD 0x04
  41. #define SC_COMP_DISCARD 0x08
  42. #define SC_LINK_DECOMP_ON 0x10
  43. #define SC_LINK_COMP_ON 0x20
  44. #define SC_LINK_DECOMP_DISCARD 0x40
  45. #define SC_LINK_COMP_DISCARD 0x80
  46. #define ISDN_PPP_COMP_MAX_OPTIONS 16
  47. #define IPPP_COMP_FLAG_XMIT 0x1
  48. #define IPPP_COMP_FLAG_LINK 0x2
  49. struct isdn_ppp_comp_data {
  50. int num;
  51. unsigned char options[ISDN_PPP_COMP_MAX_OPTIONS];
  52. int optlen;
  53. int flags;
  54. };
  55. #endif /* _UAPI_LINUX_ISDN_PPP_H */