isdn4linux-web/workshop/linklevel/isdn_ppp.h.shtml

124 lines
7.4 KiB
Plaintext

<HTML>
<!-- Generated by c2html-1.0, Copyright 1998 by Dave Whittington -->
<HEAD>
<TITLE>isdn_ppp.h</TITLE>
<!--#include virtual="/ssi/js.shtml" -->
<!--#include virtual="/ssi/buttondefs.shtml" -->
</HEAD>
<BODY BGCOLOR="#FFFFFF">
<TABLE WIDTH="100%">
<TR>
<TD ALIGN=LEFT WIDTH="90"><!--#include virtual="/ssi/b_home.shtml" --></TD>
<TD ALIGN=RIGHT WIDTH="90"><!--#include virtual="/ssi/b_index.shtml" --></TD>
</TR>
</TABLE>
<CENTER><H1>isdn_ppp.h</H1></CENTER>
<HR>
<PRE>
<FONT COLOR=#0000FF>/* $Id$
* header for Linux ISDN subsystem, functions for synchronous PPP (linklevel).
*
* Copyright 1995,96 by Michael Hipp (Michael.Hipp@student.uni-tuebingen.de)
*
* This program is free software; you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
* the Free Software Foundation; either version 2, or (at your option)
* any later version.
*
* This program is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* GNU General Public License for more details.
*
* You should have received a copy of the GNU General Public License
* along with this program; if not, write to the Free Software
* Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
*
* $Log$
* Revision 1.13 1998/03/22 18:50:50 hipp
* Added BSD Compression for syncPPP .. UNTESTED at the moment
*
* Revision 1.12 1998/01/31 22:07:48 keil
* changes for newer kernels
*
* Revision 1.11 1997/10/01 09:20:44 fritz
* Removed old compatibility stuff for 2.0.X kernels.
* From now on, this code is for 2.1.X ONLY!
* Old stuff is still in the separate branch.
*
* Revision 1.10 1997/06/17 13:06:00 hipp
* Applied Eric's underflow-patches (slightly modified)
* more compression changes (but disabled at the moment)
* changed one copy_to_user() to run with enabled IRQs
* a few MP changes
* changed 'proto' handling in the isdn_ppp receive code
*
* Revision 1.9 1997/02/11 18:32:59 fritz
* Bugfix in isdn_ppp_free_mpqueue().
*
* Revision 1.8 1997/02/10 10:11:33 fritz
* More changes for Kernel 2.1.X compatibility.
*
* Revision 1.7 1997/02/03 23:18:57 fritz
* Removed isdn_ppp_free_sqqueue prototype
* and ippp_table (both static in isdn_ppp.c).
*
* Revision 1.6 1996/09/23 01:58:11 fritz
* Fix: With syncPPP encapsulation, discard LCP packets
* when calculating hangup timeout.
*
* Revision 1.5 1996/09/07 12:51:34 hipp
* *** empty log message ***
*
* Revision 1.4 1996/05/06 11:34:56 hipp
* fixed a few bugs
*
* Revision 1.3 1996/04/30 09:33:10 fritz
* Removed compatibility-macros.
*
* Revision 1.2 1996/04/20 16:35:11 fritz
* Changed isdn_ppp_receive to use sk_buff as parameter.
* Added definition of isdn_ppp_dial_slave and ippp_table.
*
* Revision 1.1 1996/01/10 21:39:10 fritz
* Initial revision
*
*/</FONT>
<FONT COLOR=#A521F7>#include</FONT> &lt;linux/ppp_defs.h&gt; <FONT COLOR=#0000FF>/* for PPP_PROTOCOL */</FONT>
<FONT COLOR="#298C52">extern</FONT> <FONT COLOR="#298C52">void</FONT> <A HREF="isdn_ppp.c.shtml#isdn_ppp_timer_timeout">isdn_ppp_timer_timeout</A>(<FONT COLOR="#298C52">void</FONT>);
<FONT COLOR="#298C52">extern</FONT> <FONT COLOR="#298C52">int</FONT> <A HREF="isdn_ppp.c.shtml#isdn_ppp_read">isdn_ppp_read</A>(<FONT COLOR="#298C52">int</FONT>, <FONT COLOR="#298C52">struct</FONT> file *, <FONT COLOR="#298C52">char</FONT> *, <FONT COLOR="#298C52">int</FONT>);
<FONT COLOR="#298C52">extern</FONT> <FONT COLOR="#298C52">int</FONT> <A HREF="isdn_ppp.c.shtml#isdn_ppp_write">isdn_ppp_write</A>(<FONT COLOR="#298C52">int</FONT>, <FONT COLOR="#298C52">struct</FONT> file *, <FONT COLOR="#298C52">const</FONT> <FONT COLOR="#298C52">char</FONT> *, <FONT COLOR="#298C52">int</FONT>);
<FONT COLOR="#298C52">extern</FONT> <FONT COLOR="#298C52">int</FONT> <A HREF="isdn_ppp.c.shtml#isdn_ppp_open">isdn_ppp_open</A>(<FONT COLOR="#298C52">int</FONT>, <FONT COLOR="#298C52">struct</FONT> file *);
<FONT COLOR="#298C52">extern</FONT> <FONT COLOR="#298C52">int</FONT> <A HREF="isdn_ppp.c.shtml#isdn_ppp_init">isdn_ppp_init</A>(<FONT COLOR="#298C52">void</FONT>);
<FONT COLOR="#298C52">extern</FONT> <FONT COLOR="#298C52">void</FONT> <A HREF="isdn_ppp.c.shtml#isdn_ppp_cleanup">isdn_ppp_cleanup</A>(<FONT COLOR="#298C52">void</FONT>);
<FONT COLOR="#298C52">extern</FONT> <FONT COLOR="#298C52">int</FONT> <A HREF="isdn_ppp.c.shtml#isdn_ppp_free">isdn_ppp_free</A>(isdn_net_local *);
<FONT COLOR="#298C52">extern</FONT> <FONT COLOR="#298C52">int</FONT> <A HREF="isdn_ppp.c.shtml#isdn_ppp_bind">isdn_ppp_bind</A>(isdn_net_local *);
<FONT COLOR="#298C52">extern</FONT> <FONT COLOR="#298C52">int</FONT> <A HREF="isdn_ppp.c.shtml#isdn_ppp_xmit">isdn_ppp_xmit</A>(<FONT COLOR="#298C52">struct</FONT> sk_buff *, <FONT COLOR="#298C52">struct</FONT> device *);
<FONT COLOR="#298C52">extern</FONT> <FONT COLOR="#298C52">void</FONT> <A HREF="isdn_ppp.c.shtml#isdn_ppp_receive">isdn_ppp_receive</A>(<A HREF="../includes/isdn.h.shtml#isdn_net_dev">isdn_net_dev</A> *, isdn_net_local *, <FONT COLOR="#298C52">struct</FONT> sk_buff *);
<FONT COLOR="#298C52">extern</FONT> <FONT COLOR="#298C52">int</FONT> <A HREF="isdn_ppp.c.shtml#isdn_ppp_dev_ioctl">isdn_ppp_dev_ioctl</A>(<FONT COLOR="#298C52">struct</FONT> device *, <FONT COLOR="#298C52">struct</FONT> ifreq *, <FONT COLOR="#298C52">int</FONT>);
<FONT COLOR="#298C52">extern</FONT> <FONT COLOR="#298C52">unsigned</FONT> <FONT COLOR="#298C52">int</FONT> <A HREF="isdn_ppp.c.shtml#isdn_ppp_poll">isdn_ppp_poll</A>(<FONT COLOR="#298C52">struct</FONT> file *, <FONT COLOR="#298C52">struct</FONT> poll_table_struct *);
<FONT COLOR="#298C52">extern</FONT> <FONT COLOR="#298C52">int</FONT> <A HREF="isdn_ppp.c.shtml#isdn_ppp_ioctl">isdn_ppp_ioctl</A>(<FONT COLOR="#298C52">int</FONT>, <FONT COLOR="#298C52">struct</FONT> file *, <FONT COLOR="#298C52">unsigned</FONT> <FONT COLOR="#298C52">int</FONT>, <FONT COLOR="#298C52">unsigned</FONT> <FONT COLOR="#298C52">long</FONT>);
<FONT COLOR="#298C52">extern</FONT> <FONT COLOR="#298C52">void</FONT> <A HREF="isdn_ppp.c.shtml#isdn_ppp_release">isdn_ppp_release</A>(<FONT COLOR="#298C52">int</FONT>, <FONT COLOR="#298C52">struct</FONT> file *);
<FONT COLOR="#298C52">extern</FONT> <FONT COLOR="#298C52">int</FONT> <A HREF="isdn_ppp.c.shtml#isdn_ppp_dial_slave">isdn_ppp_dial_slave</A>(<FONT COLOR="#298C52">char</FONT> *);
<FONT COLOR="#298C52">extern</FONT> <FONT COLOR="#298C52">void</FONT> <A HREF="isdn_ppp.c.shtml#isdn_ppp_wakeup_daemon">isdn_ppp_wakeup_daemon</A>(isdn_net_local *);
<FONT COLOR="#298C52">extern</FONT> <FONT COLOR="#298C52">int</FONT> <A HREF="isdn_ppp.c.shtml#isdn_ppp_register_compressor">isdn_ppp_register_compressor</A>(<FONT COLOR="#298C52">struct</FONT> isdn_ppp_compressor *ipc);
<FONT COLOR="#298C52">extern</FONT> <FONT COLOR="#298C52">int</FONT> <A HREF="isdn_ppp.c.shtml#isdn_ppp_unregister_compressor">isdn_ppp_unregister_compressor</A>(<FONT COLOR="#298C52">struct</FONT> isdn_ppp_compressor *ipc);
<FONT COLOR=#A521F7>#define</FONT> <A NAME="IPPP_OPEN">IPPP_OPEN</A> 0x01
<FONT COLOR=#A521F7>#define</FONT> <A NAME="IPPP_CONNECT">IPPP_CONNECT</A> 0x02
<FONT COLOR=#A521F7>#define</FONT> <A NAME="IPPP_CLOSEWAIT">IPPP_CLOSEWAIT</A> 0x04
<FONT COLOR=#A521F7>#define</FONT> <A NAME="IPPP_NOBLOCK">IPPP_NOBLOCK</A> 0x08
<FONT COLOR=#A521F7>#define</FONT> <A NAME="IPPP_ASSIGNED">IPPP_ASSIGNED</A> 0x10
<FONT COLOR=#A521F7>#define</FONT> <A NAME="IPPP_MAX_HEADER">IPPP_MAX_HEADER</A> 10
</BODY>
</HTML>