isdn_ppp.h 1.9 KB

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