isdn_ppp.h
上传用户:jlfgdled
上传日期:2013-04-10
资源大小:33168k
文件大小:2k
源码类别:

Linux/Unix编程

开发平台:

Unix_Linux

  1. /* $Id: isdn_ppp.h,v 1.1.4.1 2001/11/20 14:19:34 kai 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 *, int);
  14. extern int isdn_ppp_write(int, struct file *, const char *, 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_xmit(struct sk_buff *, struct net_device *);
  21. extern void isdn_ppp_receive(isdn_net_dev *, isdn_net_local *, struct sk_buff *);
  22. extern int isdn_ppp_dev_ioctl(struct net_device *, struct ifreq *, int);
  23. extern unsigned int isdn_ppp_poll(struct file *, struct poll_table_struct *);
  24. extern int isdn_ppp_ioctl(int, struct file *, unsigned int, unsigned long);
  25. extern void isdn_ppp_release(int, struct file *);
  26. extern int isdn_ppp_dial_slave(char *);
  27. extern void isdn_ppp_wakeup_daemon(isdn_net_local *);
  28. extern int isdn_ppp_register_compressor(struct isdn_ppp_compressor *ipc);
  29. extern int isdn_ppp_unregister_compressor(struct isdn_ppp_compressor *ipc);
  30. #define IPPP_OPEN 0x01
  31. #define IPPP_CONNECT 0x02
  32. #define IPPP_CLOSEWAIT 0x04
  33. #define IPPP_NOBLOCK 0x08
  34. #define IPPP_ASSIGNED 0x10
  35. #define IPPP_MAX_HEADER 10