isdn_ppp.h 1.7 KB

1234567891011121314151617181920212223242526272829303132333435363738394041
  1. /* $Id: isdn_ppp.h,v 1.1.2.2 2004/01/12 22:37:19 keil Exp $
  2. *
  3. * header for Linux ISDN subsystem, functions for synchronous PPP (linklevel).
  4. *
  5. * Copyright 1995,96 by Michael Hipp (Michael.Hipp@student.uni-tuebingen.de)
  6. *
  7. * This software may be used and distributed according to the terms
  8. * of the GNU General Public License, incorporated herein by reference.
  9. *
  10. */
  11. #include <linux/ppp_defs.h> /* for PPP_PROTOCOL */
  12. #include <linux/isdn_ppp.h> /* for isdn_ppp info */
  13. extern int isdn_ppp_read(int, struct file *, char __user *, int);
  14. extern int isdn_ppp_write(int, struct file *, const char __user *, int);
  15. extern int isdn_ppp_open(int, struct file *);
  16. extern int isdn_ppp_init(void);
  17. extern void isdn_ppp_cleanup(void);
  18. extern int isdn_ppp_free(isdn_net_local *);
  19. extern int isdn_ppp_bind(isdn_net_local *);
  20. extern int isdn_ppp_autodial_filter(struct sk_buff *, isdn_net_local *);
  21. extern int isdn_ppp_xmit(struct sk_buff *, struct net_device *);
  22. extern void isdn_ppp_receive(isdn_net_dev *, isdn_net_local *, struct sk_buff *);
  23. extern int isdn_ppp_dev_ioctl(struct net_device *, struct ifreq *, int);
  24. extern unsigned int isdn_ppp_poll(struct file *, struct poll_table_struct *);
  25. extern int isdn_ppp_ioctl(int, struct file *, unsigned int, unsigned long);
  26. extern void isdn_ppp_release(int, struct file *);
  27. extern int isdn_ppp_dial_slave(char *);
  28. extern void isdn_ppp_wakeup_daemon(isdn_net_local *);
  29. extern int isdn_ppp_register_compressor(struct isdn_ppp_compressor *ipc);
  30. extern int isdn_ppp_unregister_compressor(struct isdn_ppp_compressor *ipc);
  31. #define IPPP_OPEN 0x01
  32. #define IPPP_CONNECT 0x02
  33. #define IPPP_CLOSEWAIT 0x04
  34. #define IPPP_NOBLOCK 0x08
  35. #define IPPP_ASSIGNED 0x10
  36. #define IPPP_MAX_HEADER 10