]> git.neil.brown.name Git - history.git/commitdiff
ISDN: header cosmetics
authorKai Germaschewski <kai@tp1.ruhr-uni-bochum.de>
Tue, 29 Oct 2002 14:17:03 +0000 (08:17 -0600)
committerKai Germaschewski <kai@tp1.ruhr-uni-bochum.de>
Tue, 29 Oct 2002 14:17:03 +0000 (08:17 -0600)
Updating copyright lines, deleting the CVS $Id lines, move
PPP CCP reset related declarations into drivers/isdn/i4l/isdn_ppp_ccp.c.

31 files changed:
drivers/isdn/i4l/isdn_audio.c
drivers/isdn/i4l/isdn_audio.h
drivers/isdn/i4l/isdn_ciscohdlck.c
drivers/isdn/i4l/isdn_ciscohdlck.h
drivers/isdn/i4l/isdn_common.c
drivers/isdn/i4l/isdn_common.h
drivers/isdn/i4l/isdn_concap.c
drivers/isdn/i4l/isdn_concap.h
drivers/isdn/i4l/isdn_fsm.c
drivers/isdn/i4l/isdn_fsm.h
drivers/isdn/i4l/isdn_net.c
drivers/isdn/i4l/isdn_net.h
drivers/isdn/i4l/isdn_net_lib.c
drivers/isdn/i4l/isdn_ppp.c
drivers/isdn/i4l/isdn_ppp.h
drivers/isdn/i4l/isdn_ppp_ccp.c
drivers/isdn/i4l/isdn_ppp_ccp.h
drivers/isdn/i4l/isdn_ppp_mp.c
drivers/isdn/i4l/isdn_ppp_mp.h
drivers/isdn/i4l/isdn_ppp_vj.c
drivers/isdn/i4l/isdn_ppp_vj.h
drivers/isdn/i4l/isdn_tty.c
drivers/isdn/i4l/isdn_tty.h
drivers/isdn/i4l/isdn_ttyfax.c
drivers/isdn/i4l/isdn_ttyfax.h
drivers/isdn/i4l/isdn_v110.c
drivers/isdn/i4l/isdn_v110.h
drivers/isdn/i4l/isdn_x25iface.c
drivers/isdn/i4l/isdn_x25iface.h
include/linux/isdn.h
include/linux/isdn_ppp.h

index bdd92d81d13d18a0ed00ff34842f8147d7260fbd..3b2e0fc4d112a7f587845aaac3389eed24a1a731 100644 (file)
@@ -1,14 +1,14 @@
-/* $Id: isdn_audio.c,v 1.21.6.3 2002/08/13 09:45:33 keil Exp $
- *
- * Linux ISDN subsystem, audio conversion and compression (linklevel).
+/* Linux ISDN subsystem, audio conversion and compression
  *
  * Copyright 1994-1999 by Fritz Elfert (fritz@isdn4linux.de)
- * DTMF code (c) 1996 by Christian Mock (cm@tahina.priv.at)
- * Silence detection (c) 1998 by Armin Schindler (mac@gismo.telekom.de)
+ *           1996      by Christian Mock (cm@tahina.priv.at)
+ *           1998      by Armin Schindler (mac@gismo.telekom.de)
  *
  * This software may be used and distributed according to the terms
  * of the GNU General Public License, incorporated herein by reference.
  *
+ * DTMF code         by Christian Mock
+ * Silence detection by Armin Schindler
  */
 
 #include <linux/isdn.h>
index e60c980c953aae4ff0e43fd4814d8bfd51602999..e08d7d2a0700f121fed44c69d195378c5167c128 100644 (file)
@@ -1,6 +1,4 @@
-/* $Id: isdn_audio.h,v 1.9.6.1 2001/09/23 22:24:31 kai Exp $
- *
- * Linux ISDN subsystem, audio conversion and compression (linklevel).
+/* Linux ISDN subsystem, audio conversion and compression
  *
  * Copyright 1994-1999 by Fritz Elfert (fritz@isdn4linux.de)
  *
index cab5b1a2100f88d113891be090b5a761a6eeb8cf..c6c321fbe72b6865495d16b7dc1cff407d2ce13e 100644 (file)
@@ -1,5 +1,4 @@
-/*
- * Linux ISDN subsystem, CISCO HDLC network interfaces
+/* Linux ISDN subsystem, CISCO HDLC network interfaces
  *
  * Copyright 1994-1998  by Fritz Elfert (fritz@isdn4linux.de)
  *           1995,96    by Thinking Objects Software GmbH Wuerzburg
index 24cd87d2f674276715b39723f6867a9fab9f9f20..8eecdcb697b4a9a2b95498d511e81b481bf74889 100644 (file)
@@ -1,5 +1,4 @@
-/*
- * Linux ISDN subsystem, CISCO HDLC network interfaces
+/* Linux ISDN subsystem, CISCO HDLC network interfaces
  *
  * Copyright 1999-2002  by Kai Germaschewski <kai@germaschewski.name>
  *           2001       by Bjoern A. Zeeb <i4l@zabbadoz.net>
index 37a7968aabb70e0ace88cf7dc94ef683a301fcc5..0d02b62263179ab18bbf2844c7e5e7c398980bc0 100644 (file)
@@ -1,6 +1,4 @@
-/* $Id: isdn_common.c,v 1.114.6.16 2001/11/06 20:58:28 kai Exp $
- *
- * Linux ISDN subsystem, common used functions (linklevel).
+/* Linux ISDN subsystem, common used functions
  *
  * Copyright 1994-1999  by Fritz Elfert (fritz@isdn4linux.de)
  * Copyright 1995,96    Thinking Objects Software GmbH Wuerzburg
@@ -8,7 +6,6 @@
  *
  * This software may be used and distributed according to the terms
  * of the GNU General Public License, incorporated herein by reference.
- *
  */
 
 #include <linux/config.h>
index 64e1c1e9c819991b88744fdf6baddda2ae265550..e059ead2cc0c73d72c4c9a23fdfd8df8b65ed4f6 100644 (file)
@@ -1,7 +1,4 @@
-/* $Id: isdn_common.h,v 1.21.6.1 2001/09/23 22:24:31 kai Exp $
- *
- * header for Linux ISDN subsystem
- * common used functions and debugging-switches (linklevel).
+/* Linux ISDN subsystem, common used functions and debugging-switches
  *
  * Copyright 1994-1999  by Fritz Elfert (fritz@isdn4linux.de)
  * Copyright 1995,96    by Thinking Objects Software GmbH Wuerzburg
index 935358fe2bb2ad1d21f41f643d8ebb54da483b30..31e761e6c11c8b6cc79f9bc11fc138aefe400185 100644 (file)
@@ -1,16 +1,12 @@
-/* $Id: isdn_concap.c,v 1.8.6.1 2001/09/23 22:24:31 kai Exp $
- * 
- * Linux ISDN subsystem, protocol encapsulation
+/* Linux ISDN subsystem, protocol encapsulation
  *
  * This software may be used and distributed according to the terms
  * of the GNU General Public License, incorporated herein by reference.
- *
  */
 
 /* Stuff to support the concap_proto by isdn4linux. isdn4linux - specific
  * stuff goes here. Stuff that depends only on the concap protocol goes to
  * another -- protocol specific -- source file.
- *
  */
 
 
index 8150d6f595e03f86f3b9268dbc29f6a8b2b798fd..49ee3cb27101bde66dbac98e21be8850cf54cdaf 100644 (file)
@@ -1,10 +1,7 @@
-/* $Id: isdn_concap.h,v 1.3.6.1 2001/09/23 22:24:31 kai Exp $
- *
- * Linux ISDN subsystem, protocol encapsulation
+/* Linux ISDN subsystem, protocol encapsulation
  *
  * This software may be used and distributed according to the terms
  * of the GNU General Public License, incorporated herein by reference.
- *
  */
 
 extern struct concap_device_ops isdn_concap_reliable_dl_dops;
index 52de59763fe8000ca5a5469e478f349c11b0fba5..5e453f1edd6222dedb2f2644cb2e93fa34085ee4 100644 (file)
@@ -1,17 +1,14 @@
-/* $Id: fsm.c,v 1.14.6.4 2001/09/23 22:24:47 kai Exp $
- *
- * Finite state machine
+/* Linux ISDN subsystem, finite state machine
  *
  * Author       Karsten Keil
- * Copyright    by Karsten Keil      <keil@isdn4linux.de>
- *              by Kai Germaschewski <kai.germaschewski@gmx.de>
+ * Copyright              by Karsten Keil      <keil@isdn4linux.de>
+ *              2001-2002 by Kai Germaschewski <kai@germaschewski.name>
  * 
  * This software may be used and distributed according to the terms
  * of the GNU General Public License, incorporated herein by reference.
  *
  * Thanks to    Jan den Ouden
  *              Fritz Elfert
- *
  */
 
 #include <linux/kernel.h>
index 4a48a401da457210890948980d40e661be350a76..95beb142b3924e866946cd6e8e62bf9d0d5d8878 100644 (file)
@@ -1,14 +1,11 @@
-/* $Id: fsm.h,v 1.3.2.2 2001/09/23 22:24:47 kai Exp $
- *
- * Finite state machine
+/* Linux ISDN subsystem, finite state machine
  *
  * Author       Karsten Keil
- * Copyright    by Karsten Keil      <keil@isdn4linux.de>
- *              by Kai Germaschewski <kai.germaschewski@gmx.de>
+ * Copyright              by Karsten Keil      <keil@isdn4linux.de>
+ *              2001-2002 by Kai Germaschewski <kai@germaschewski.name>
  * 
  * This software may be used and distributed according to the terms
  * of the GNU General Public License, incorporated herein by reference.
- *
  */
 
 #ifndef __ISDN_FSM_H__
index 26668600867c162a239b336b6b0009e9dc81ab9f..c41f6e0ef850aa1697486fdea23a9f5e4c0aec4c 100644 (file)
@@ -1,6 +1,4 @@
-/* $Id: isdn_net.c,v 1.140.6.11 2001/11/06 20:58:28 kai Exp $
- *
- * Linux ISDN subsystem, network interfaces and related functions (linklevel).
+/* Linux ISDN subsystem, network interfaces and related functions (linklevel).
  *
  * Copyright 1994-1998  by Fritz Elfert (fritz@isdn4linux.de)
  *           1995,96    by Thinking Objects Software GmbH Wuerzburg
@@ -9,7 +7,9 @@
  *
  * This software may be used and distributed according to the terms
  * of the GNU General Public License, incorporated herein by reference.
- *
+ */
+
+/*
  * Data Over Voice (DOV) support added - Guy Ellis 23-Mar-02 
  *                                       guy@traverse.com.au
  * Outgoing calls - looks for a 'V' in first char of dialed number
index 01ad56c3e92602ff784b272ec27980b8c97f41d8..1f4933dd0f7ad606a230395708526f08f9b55caf 100644 (file)
@@ -1,14 +1,12 @@
-/* $Id: isdn_net.h,v 1.19.6.4 2001/09/28 08:05:29 kai Exp $
- *
- * header for Linux ISDN subsystem, network related functions (linklevel).
+/* Linux ISDN subsystem, network related functions
  *
  * Copyright 1994-1999  by Fritz Elfert (fritz@isdn4linux.de)
- * Copyright 1995,96    by Thinking Objects Software GmbH Wuerzburg
- * Copyright 1995,96    by Michael Hipp (Michael.Hipp@student.uni-tuebingen.de)
+ *           1995,96    by Thinking Objects Software GmbH Wuerzburg
+ *           1995,96    by Michael Hipp (Michael.Hipp@student.uni-tuebingen.de)
+ *           1999-2002  by Kai Germaschewski <kai@germaschewski.name>
  *
  * This software may be used and distributed according to the terms
  * of the GNU General Public License, incorporated herein by reference.
- *
  */
 
 #include <linux/kernel.h>
@@ -39,6 +37,8 @@ int  isdn_net_autodial(struct sk_buff *skb, struct net_device *ndev);
 isdn_net_dev *isdn_net_get_xmit_dev(isdn_net_local *mlp);
 void isdn_netif_rx(isdn_net_dev *idev, struct sk_buff *skb, u16 protocol);
 
+/* ====================================================================== */
+
 static inline int
 put_u8(unsigned char *p, u8 x)
 {
index dd311872747c39ac320e47ad1e6f17c3bc83ed93..2684ba648e724128f44ba347ab1791e9f5dd6ce1 100644 (file)
@@ -1,5 +1,4 @@
-/*
- * Linux ISDN subsystem, Network interface configuration
+/* Linux ISDN subsystem, Network interface configuration
  *
  * Copyright 1994-1998  by Fritz Elfert (fritz@isdn4linux.de)
  *           1995,96    by Thinking Objects Software GmbH Wuerzburg
index b50fd57a1707cd511c6d48d417438072ee739460..4d2b0a137dc94f9a5d9edc8bbea4cb1ea1e6d8f8 100644 (file)
@@ -1,12 +1,10 @@
-/* $Id: isdn_ppp.c,v 1.85.6.9 2001/11/06 20:58:28 kai Exp $
+/* Linux ISDN subsystem, functions for synchronous PPP (linklevel).
  *
- * Linux ISDN subsystem, functions for synchronous PPP (linklevel).
- *
- * Copyright 1995,96 by Michael Hipp (Michael.Hipp@student.uni-tuebingen.de)
+ * Copyright 1995,96    by Michael Hipp (Michael.Hipp@student.uni-tuebingen.de)
+ *           1999-2002  by Kai Germaschewski <kai@germaschewski.name>
  *
  * This software may be used and distributed according to the terms
  * of the GNU General Public License, incorporated herein by reference.
- *
  */
 
 #include <linux/module.h>
 #include "isdn_ppp_mp.h"
 #include "isdn_net.h"
 
+/* ====================================================================== */
+
+#define IPPP_MAX_RQ_LEN 8 /* max #frames queued for ipppd to read */
+
 static int
 isdn_ppp_set_compressor(isdn_net_dev *idev, struct isdn_ppp_comp_data *);
 
index 136077ec8bbafd1d7824c8b7e5a049ccb6bd5c8f..fc74cada051a3a90b51f925bfc6d76fc715eece2 100644 (file)
@@ -1,12 +1,10 @@
-/* $Id: isdn_ppp.h,v 1.17.6.1 2001/09/23 22:24:32 kai Exp $
- *
- * header for Linux ISDN subsystem, functions for synchronous PPP (linklevel).
+/* Linux ISDN subsystem, functions for synchronous PPP (linklevel).
  *
  * Copyright 1995,96 by Michael Hipp (Michael.Hipp@student.uni-tuebingen.de)
+ *           1999-2002  by Kai Germaschewski <kai@germaschewski.name>
  *
  * This software may be used and distributed according to the terms
  * of the GNU General Public License, incorporated herein by reference.
- *
  */
 
 #include <linux/ppp_defs.h>     /* for PPP_PROTOCOL */
index f62cf38f831f6e2873d8acb9abdfab916f45699a..3e4e24379aba6bd91ea22bf1f8c265fcc31e5d54 100644 (file)
@@ -1,3 +1,13 @@
+/* Linux ISDN subsystem, PPP CCP support
+ *
+ * Copyright 1994-1998  by Fritz Elfert (fritz@isdn4linux.de)
+ *           1995,96    by Thinking Objects Software GmbH Wuerzburg
+ *           1995,96    by Michael Hipp (Michael.Hipp@student.uni-tuebingen.de)
+ *           1999-2002  by Kai Germaschewski <kai@germaschewski.name>
+ *
+ * This software may be used and distributed according to the terms
+ * of the GNU General Public License, incorporated herein by reference.
+ */
 
 #include "isdn_ppp_ccp.h"
 #include "isdn_common.h"
@@ -5,6 +15,36 @@
 #include "isdn_ppp.h"
 #include <linux/ppp-comp.h>
 
+/* ====================================================================== */                                                                       
+enum ippp_ccp_reset_states {
+       CCPResetIdle,
+       CCPResetSentReq,
+       CCPResetRcvdReq,
+       CCPResetSentAck,
+       CCPResetRcvdAck
+};
+
+struct ippp_ccp_reset_state {
+       enum ippp_ccp_reset_states state;/* State of this transaction */
+       struct ippp_ccp *ccp;            /* Backlink */
+       unsigned char id;                /* id index */
+       unsigned char ta:1;              /* The timer is active (flag) */
+       unsigned char expra:1;           /* We expect a ResetAck at all */
+       int dlen;                        /* Databytes stored in data */
+       struct timer_list timer;         /* For timeouts/retries */
+       /* This is a hack but seems sufficient for the moment. We do not want
+          to have this be yet another allocation for some bytes, it is more
+          memory management overhead than the whole mess is worth. */
+       unsigned char data[IPPP_RESET_MAXDATABYTES];
+};
+
+/* The data structure keeping track of the currently outstanding CCP Reset
+   transactions. */
+struct ippp_ccp_reset {
+       struct ippp_ccp_reset_state *rs[256];   /* One per possible id */
+       unsigned char lastid;                   /* Last id allocated */
+};
+
 /* In-kernel handling of CCP Reset-Request and Reset-Ack is necessary,
    but absolutely nontrivial. The most abstruse problem we are facing is
    that the generation, reception and all the handling of timeouts and
index 35d7e75dc34345fad2838c211299a65d3ca864c1..6d3ec7c9f8ded3291d3d51a40bc21a949a05b92c 100644 (file)
@@ -1,3 +1,13 @@
+/* Linux ISDN subsystem, PPP CCP support
+ *
+ * Copyright 1994-1998  by Fritz Elfert (fritz@isdn4linux.de)
+ *           1995,96    by Thinking Objects Software GmbH Wuerzburg
+ *           1995,96    by Michael Hipp (Michael.Hipp@student.uni-tuebingen.de)
+ *           1999-2002  by Kai Germaschewski <kai@germaschewski.name>
+ *
+ * This software may be used and distributed according to the terms
+ * of the GNU General Public License, incorporated herein by reference.
+ */
 
 #include <linux/kernel.h>
 #include <linux/isdn_ppp.h>
index 06545577de7bd3d0c3dedf2b8f00a3e957f65da5..3f2345f9197d66c1e9654a53231064f9b3519dc5 100644 (file)
@@ -1,3 +1,13 @@
+/* Linux ISDN subsystem, PPP CCP support
+ *
+ * Copyright 1994-1998  by Fritz Elfert (fritz@isdn4linux.de)
+ *           1995,96    by Thinking Objects Software GmbH Wuerzburg
+ *           1995,96    by Michael Hipp (Michael.Hipp@student.uni-tuebingen.de)
+ *           1999-2002  by Kai Germaschewski <kai@germaschewski.name>
+ *
+ * This software may be used and distributed according to the terms
+ * of the GNU General Public License, incorporated herein by reference.
+ */
 
 #include "isdn_ppp_mp.h"
 #include "isdn_ppp_ccp.h"
@@ -5,6 +15,15 @@
 #include "isdn_net.h"
 #include "isdn_ppp.h"
 
+/* ====================================================================== */
+
+#define MP_END_FRAG             0x40
+#define MP_BEGIN_FRAG           0x80
+
+#define MP_MAX_QUEUE_LEN       16
+
+/* ====================================================================== */
+
 int
 ippp_mp_bind(isdn_net_dev *idev)
 {
index 3ae3c9c59354afa3cebb505053f86bf989b8fded..4eacffc728ef94083e20ae7fe9dccbd1867e8829 100644 (file)
@@ -1,3 +1,13 @@
+/* Linux ISDN subsystem, PPP CCP support
+ *
+ * Copyright 1994-1998  by Fritz Elfert (fritz@isdn4linux.de)
+ *           1995,96    by Thinking Objects Software GmbH Wuerzburg
+ *           1995,96    by Michael Hipp (Michael.Hipp@student.uni-tuebingen.de)
+ *           1999-2002  by Kai Germaschewski <kai@germaschewski.name>
+ *
+ * This software may be used and distributed according to the terms
+ * of the GNU General Public License, incorporated herein by reference.
+ */
 
 #ifndef __ISDN_PPP_MP_H__
 #define __ISDN_PPP_MP_H__
@@ -5,7 +15,6 @@
 #include <linux/kernel.h>
 #include <linux/isdn.h>
 
-
 #ifdef CONFIG_ISDN_MPP
 
 int  ippp_mp_bind(isdn_net_dev *idev);
index 4e2bb3af7c51971f3a7aef69186d220d5bc3ab82..ef97182b580049a58b513b5835ba412509d0ca6b 100644 (file)
@@ -1,13 +1,17 @@
+/* Linux ISDN subsystem, PPP VJ header compression
+ *
+ * Copyright 1995,96    by Michael Hipp (Michael.Hipp@student.uni-tuebingen.de)
+ *           1999-2002  by Kai Germaschewski <kai@germaschewski.name>
+ *
+ * This software may be used and distributed according to the terms
+ * of the GNU General Public License, incorporated herein by reference.
+ */
 
 #include "isdn_ppp_vj.h"
 #include "isdn_common.h"
 #include "isdn_net.h"
 #include "isdn_ppp.h"
 
-/* ====================================================================== */
-/* VJ header compression                                                  */
-/* ====================================================================== */
-
 struct slcompress *
 ippp_vj_alloc(void)
 {
index 7197a1f363fea21ddf0522941554eefc2dd55735..1af3ca9049e2a4c3fdfb86495f538ed9705b0547 100644 (file)
@@ -1,3 +1,11 @@
+/* Linux ISDN subsystem, PPP VJ header compression
+ *
+ * Copyright 1995,96    by Michael Hipp (Michael.Hipp@student.uni-tuebingen.de)
+ *           1999-2002  by Kai Germaschewski <kai@germaschewski.name>
+ *
+ * This software may be used and distributed according to the terms
+ * of the GNU General Public License, incorporated herein by reference.
+ */
 
 #ifndef __ISDN_PPP_VJ_H__
 #define __ISDN_PPP_VJ_H__
index c7b3f8ce4c717bc97faf566ae6a5e91a7ed9caaa..eb79e21a5aeb0f2a7727949a9872d79d247477f2 100644 (file)
@@ -1,14 +1,12 @@
-/* $Id: isdn_tty.c,v 1.94.6.9 2001/11/06 20:58:29 kai Exp $
- *
- * Linux ISDN subsystem, tty functions and AT-command emulator (linklevel).
+/* Linux ISDN subsystem, tty functions and AT-command emulator
  *
  * Copyright 1994-1999  by Fritz Elfert (fritz@isdn4linux.de)
  * Copyright 1995,96    by Thinking Objects Software GmbH Wuerzburg
  *
  * This software may be used and distributed according to the terms
  * of the GNU General Public License, incorporated herein by reference.
- *
  */
+
 #undef ISDN_TTY_STAT_DEBUG
 
 #include <linux/config.h>
index 8cad26a3714af480fb36e486be9440e375ae251d..9863a7577f16fdf8ab81abfadf6b5c306b6021e7 100644 (file)
@@ -1,13 +1,10 @@
-/* $Id: isdn_tty.h,v 1.22.6.2 2001/09/23 22:24:32 kai Exp $
- *
- * header for Linux ISDN subsystem, tty related functions (linklevel).
+/* Linux ISDN subsystem, tty related functions
  *
  * Copyright 1994-1999  by Fritz Elfert (fritz@isdn4linux.de)
  * Copyright 1995,96    by Thinking Objects Software GmbH Wuerzburg
  *
  * This software may be used and distributed according to the terms
  * of the GNU General Public License, incorporated herein by reference.
- *
  */
 
 #include <linux/config.h>
index 2f7a5a0f2b482e70c27fa84b2c313b37a97d0a82..14f7122d098a170ae9ddc877e16e05cdeecb5792 100644 (file)
@@ -1,6 +1,4 @@
-/* $Id: isdn_ttyfax.c,v 1.7.6.2 2001/09/23 22:24:32 kai Exp $
- *
- * Linux ISDN subsystem, tty_fax AT-command emulator (linklevel).
+/* Linux ISDN subsystem, tty_fax AT-command emulator
  *
  * Copyright 1999    by Armin Schindler (mac@melware.de)
  * Copyright 1999    by Ralf Spachmann (mel@melware.de)
@@ -8,7 +6,6 @@
  *
  * This software may be used and distributed according to the terms
  * of the GNU General Public License, incorporated herein by reference.
- *
  */
 
 #undef ISDN_TTY_FAX_STAT_DEBUG
index 244ada3ca1271b25568f8ff7c226b2e36144dff3..3567899e4e88fd8a78a37936aa446385f6c0aba2 100644 (file)
@@ -1,6 +1,4 @@
-/* $Id: isdn_ttyfax.h,v 1.2.6.1 2001/09/23 22:24:32 kai Exp $
- *
- * header for Linux ISDN subsystem, tty_fax related functions (linklevel).
+/* Linux ISDN subsystem, tty_fax related functions
  *
  * Copyright 1999   by Armin Schindler (mac@melware.de)
  * Copyright 1999   by Ralf Spachmann (mel@melware.de)
@@ -8,7 +6,6 @@
  *
  * This software may be used and distributed according to the terms
  * of the GNU General Public License, incorporated herein by reference.
- *
  */
 
 
index 1676de4975ccca22b3ee7346c69fe2f0c64dbf75..421764a272894e544f19db7e9c5c0c5a1a5d676f 100644 (file)
@@ -1,12 +1,9 @@
-/* $Id: isdn_v110.c,v 1.5.6.4 2001/09/23 22:24:32 kai Exp $
- *
- * Linux ISDN subsystem, V.110 related functions (linklevel).
+/* Linux ISDN subsystem, V.110
  *
  * Copyright by Thomas Pfeiffer (pfeiffer@pds.de)
  *
  * This software may be used and distributed according to the terms
  * of the GNU General Public License, incorporated herein by reference.
- *
  */
 
 #include <linux/string.h>
index b6563c259e44c4dc46da2264f80f093b43041f06..ba0bf9d38286a9566bb3d1951920395282f357e6 100644 (file)
@@ -1,12 +1,9 @@
-/* $Id: isdn_v110.h,v 1.4.6.1 2001/09/23 22:24:32 kai Exp $
- *
- * Linux ISDN subsystem, V.110 related functions (linklevel).
+/* Linux ISDN subsystem, V.110 related functions
  *
  * Copyright by Thomas Pfeiffer (pfeiffer@pds.de)
  *
  * This software may be used and distributed according to the terms
  * of the GNU General Public License, incorporated herein by reference.
- *
  */
 
 #ifndef ISDN_V110_H
index edbf4eed016d5f0dcde4c97aab7cb54adc4147de..d394b4a39bd4776f92f7c97058a91af8b39840fc 100644 (file)
@@ -1,10 +1,10 @@
-/* $Id: isdn_x25iface.c,v 1.9.6.1 2001/09/23 22:24:32 kai Exp $
- *
- * Linux ISDN subsystem, X.25 related functions
+/* * Linux ISDN subsystem, X.25 related functions
  *
  * This software may be used and distributed according to the terms
  * of the GNU General Public License, incorporated herein by reference.
- *
+ */
+
+/*
  * stuff needed to support the Linux X.25 PLP code on top of devices that
  * can provide a lab_b service using the concap_proto mechanism.
  * This module supports a network interface wich provides lapb_sematics
@@ -17,7 +17,6 @@
  *
  */
 
-/* #include <linux/isdn.h> */
 #include <linux/netdevice.h>
 #include <linux/concap.h>
 #include <linux/wanrouter.h>
index ef69d3af9628880c7f9799de97653a5ee4215884..12fc46c471af599852236a56d928e412a39e1ce8 100644 (file)
@@ -1,17 +1,16 @@
-/* $Id: isdn_x25iface.h,v 1.3.6.1 2001/09/23 22:24:32 kai Exp $
- *
- * header for Linux ISDN subsystem, x.25 related functions
+/* Linux ISDN subsystem, x.25 related functions
  *
  * This software may be used and distributed according to the terms
  * of the GNU General Public License, incorporated herein by reference.
- *
  */
 
 #ifndef _LINUX_ISDN_X25IFACE_H
 #define _LINUX_ISDN_X25IFACE_H
 
 #define ISDN_X25IFACE_MAGIC 0x1e75a2b9
-/* #define DEBUG_ISDN_X25 if you want isdn_x25 debugging messages */
+
+#undef DEBUG_ISDN_X25
+
 #ifdef DEBUG_ISDN_X25
 #   define IX25DEBUG(fmt,args...) printk(KERN_DEBUG fmt , ## args)
 #else
@@ -26,8 +25,6 @@
 extern struct concap_proto_ops * isdn_x25iface_concap_proto_ops_pt;
 extern struct concap_proto     * isdn_x25iface_proto_new(void);
 
-
-
 #endif
 
 
index 362161a2ef76a5e9de1d21571221d453a81ee5b4..42baf99a835ad0756fda33ac460f103b12b28503 100644 (file)
@@ -1,10 +1,9 @@
-/* $Id: isdn.h,v 1.111.6.9 2001/09/23 22:25:05 kai Exp $
- *
- * Main header for the Linux ISDN subsystem (linklevel).
+/* Linux ISDN subsystem, main header
  *
  * Copyright 1994,95,96 by Fritz Elfert (fritz@isdn4linux.de)
  * Copyright 1995,96    by Thinking Objects Software GmbH Wuerzburg
  * Copyright 1995,96    by Michael Hipp (Michael.Hipp@student.uni-tuebingen.de)
+ * Copyright 2000-2002  by Kai Germaschewski (kai@germaschewski.name)
  * 
  * This software may be used and distributed according to the terms
  * of the GNU General Public License, incorporated herein by reference.
@@ -441,9 +440,6 @@ typedef struct isdn_net_dev_s {
   u32                    mp_rxseq;     /* last seq no seen on this channel */
   struct ippp_ccp        *ccp;
   unsigned long          debug;
-
-  ippp_bundle * pb;            /* pointer to the common bundle structure
-                                * with the per-bundle data */
 #endif
 #ifdef CONFIG_ISDN_X25
   struct concap_proto  *cprot; /* connection oriented encapsulation protocol */
index b53107c1b1b42f0dfd12496f035255a9a35a4fe8..669822e2868aa8fcadeaea007fc6d2baac227b33 100644 (file)
@@ -1,10 +1,15 @@
-/*
+/* Linux ISDN subsystem, sync PPP, interface to ipppd
+ *
+ * Copyright 1994-1999  by Fritz Elfert (fritz@isdn4linux.de)
+ * Copyright 1995,96    Thinking Objects Software GmbH Wuerzburg
+ * Copyright 1995,96    by Michael Hipp (Michael.Hipp@student.uni-tuebingen.de)
+ * Copyright 2000-2002  by Kai Germaschewski (kai@germaschewski.name)
+ *
  * This software may be used and distributed according to the terms
  * of the GNU General Public License, incorporated herein by reference.
  *
  */
 
-
 #ifndef _LINUX_ISDN_PPP_H
 #define _LINUX_ISDN_PPP_H
 
 
 struct pppcallinfo
 {
-  int calltype;
-  unsigned char local_num[64];
-  unsigned char remote_num[64];
-  int charge_units;
+       int calltype;
+       unsigned char local_num[64];
+       unsigned char remote_num[64];
+       int charge_units;
 };
 
-#define PPPIOCGCALLINFO _IOWR('t',128,struct pppcallinfo)
-#define PPPIOCBUNDLE   _IOW('t',129,int)
-#define PPPIOCGMPFLAGS _IOR('t',130,int)
-#define PPPIOCSMPFLAGS _IOW('t',131,int)
-#define PPPIOCSMPMTU   _IOW('t',132,int)
-#define PPPIOCSMPMRU   _IOW('t',133,int)
-#define PPPIOCGCOMPRESSORS _IOR('t',134,unsigned long [8])
-#define PPPIOCSCOMPRESSOR _IOW('t',135,int)
-#define PPPIOCGIFNAME      _IOR('t',136, char [IFNAMSIZ] )
-
+#define PPPIOCGCALLINFO    _IOWR('t',128,struct pppcallinfo)
+#define PPPIOCBUNDLE       _IOW('t',129,int)
+#define PPPIOCGMPFLAGS     _IOR('t',130,int)
+#define PPPIOCSMPFLAGS     _IOW('t',131,int)
+#define PPPIOCSMPMTU       _IOW('t',132,int)
+#define PPPIOCSMPMRU       _IOW('t',133,int)
+#define PPPIOCGCOMPRESSORS _IOR('t',134,unsigned long[8])
+#define PPPIOCSCOMPRESSOR  _IOW('t',135,int)
+#define PPPIOCGIFNAME      _IOR('t',136,char[IFNAMSIZ])
 
 #define SC_MP_PROT       0x00000200
 #define SC_REJ_MP_PROT   0x00000400
@@ -44,26 +48,19 @@ struct pppcallinfo
 #define IPPP_COMP_FLAG_LINK 0x2
 
 struct isdn_ppp_comp_data {
-  int num;
-  unsigned char options[ISDN_PPP_COMP_MAX_OPTIONS];
-  int optlen;
-  int flags;
+       int num;
+       unsigned char options[ISDN_PPP_COMP_MAX_OPTIONS];
+       int optlen;
+       int flags;
 };
 
 #ifdef __KERNEL__
 
-
-#include <linux/config.h>
 #include <linux/skbuff.h>
 #include <linux/ppp_defs.h>
 
 #define DECOMP_ERR_NOMEM       (-10)
 
-#define MP_END_FRAG    0x40
-#define MP_BEGIN_FRAG  0x80
-
-#define MP_MAX_QUEUE_LEN       16
-
 /*
  * We need a way for the decompressor to influence the generation of CCP
  * Reset-Requests in a variety of ways. The decompressor is already returning
@@ -82,15 +79,15 @@ struct isdn_ppp_comp_data {
 #define IPPP_RESET_MAXDATABYTES        32
 
 struct isdn_ppp_resetparams {
-  unsigned char valid:1;       /* rw Is this structure filled at all ? */
-  unsigned char rsend:1;       /* rw Should we send one at all ? */
-  unsigned char idval:1;       /* rw Is the id field valid ? */
-  unsigned char dtval:1;       /* rw Is the data field valid ? */
-  unsigned char expra:1;       /* rw Is an Ack expected for this Req ? */
-  unsigned char id;            /* wo Send CCP ResetReq with this id */
-  unsigned short maxdlen;      /* ro Max bytes to be stored in data field */
-  unsigned short dlen;         /* rw Bytes stored in data field */
-  unsigned char *data;         /* wo Data for ResetReq info field */
+       unsigned char valid:1;  /* rw Is this structure filled at all ? */
+       unsigned char rsend:1;  /* rw Should we send one at all ? */
+       unsigned char idval:1;  /* rw Is the id field valid ? */
+       unsigned char dtval:1;  /* rw Is the data field valid ? */
+       unsigned char expra:1;  /* rw Is an Ack expected for this Req ? */
+       unsigned char id;               /* wo Send CCP ResetReq with this id */
+       unsigned short maxdlen; /* ro Max bytes to be stored in data field */
+       unsigned short dlen;            /* rw Bytes stored in data field */
+       unsigned char *data;            /* wo Data for ResetReq info field */
 };
 
 /*
@@ -98,73 +95,37 @@ struct isdn_ppp_resetparams {
  * check the original include for more information
  */
 struct isdn_ppp_compressor {
-  struct isdn_ppp_compressor *next, *prev;
-  int num; /* CCP compression protocol number */
+       struct isdn_ppp_compressor *next, *prev;
+       int num; /* CCP compression protocol number */
   
-  void *(*alloc) (struct isdn_ppp_comp_data *);
-  void (*free) (void *state);
-  int  (*init) (void *state, struct isdn_ppp_comp_data *,
-               int unit,int debug);
+       void *(*alloc) (struct isdn_ppp_comp_data *);
+       void (*free) (void *state);
+       int  (*init) (void *state, struct isdn_ppp_comp_data *,
+                     int unit,int debug);
   
-  /* The reset entry needs to get more exact information about the
-     ResetReq or ResetAck it was called with. The parameters are
-     obvious. If reset is called without a Req or Ack frame which
-     could be handed into it, code MUST be set to 0. Using rsparm,
-     the reset entry can control if and how a ResetAck is returned. */
+       /* The reset entry needs to get more exact information about the
+          ResetReq or ResetAck it was called with. The parameters are
+          obvious. If reset is called without a Req or Ack frame which
+          could be handed into it, code MUST be set to 0. Using rsparm,
+          the reset entry can control if and how a ResetAck is returned. */
   
-  void (*reset) (void *state, unsigned char code, unsigned char id,
-                unsigned char *data, unsigned len,
-                struct isdn_ppp_resetparams *rsparm);
+       void (*reset) (void *state, unsigned char code, unsigned char id,
+                      unsigned char *data, unsigned len,
+                      struct isdn_ppp_resetparams *rsparm);
   
-  int  (*compress) (void *state, struct sk_buff *in,
-                   struct sk_buff *skb_out, int proto);
+       int  (*compress) (void *state, struct sk_buff *in,
+                         struct sk_buff *skb_out, int proto);
   
        int  (*decompress) (void *state,struct sk_buff *in,
                            struct sk_buff *skb_out,
                            struct isdn_ppp_resetparams *rsparm);
   
-  void (*incomp) (void *state, struct sk_buff *in,int proto);
-  void (*stat) (void *state, struct compstat *stats);
+       void (*incomp) (void *state, struct sk_buff *in,int proto);
+       void (*stat) (void *state, struct compstat *stats);
 };
 
 extern int isdn_ppp_register_compressor(struct isdn_ppp_compressor *);
 extern int isdn_ppp_unregister_compressor(struct isdn_ppp_compressor *);
 
-typedef struct {
-  int mp_mrru;                        /* unused                             */
-} ippp_bundle;
-
-#define IPPP_MAX_RQ_LEN     8
-
-/* The data structure for one CCP reset transaction */
-enum ippp_ccp_reset_states {
-  CCPResetIdle,
-  CCPResetSentReq,
-  CCPResetRcvdReq,
-  CCPResetSentAck,
-  CCPResetRcvdAck
-};
-
-struct ippp_ccp_reset_state {
-  enum ippp_ccp_reset_states state;    /* State of this transaction */
-  struct ippp_ccp *ccp;                 /* Backlink */
-  unsigned char id;                    /* id index */
-  unsigned char ta:1;                  /* The timer is active (flag) */
-  unsigned char expra:1;               /* We expect a ResetAck at all */
-  int dlen;                            /* Databytes stored in data */
-  struct timer_list timer;             /* For timeouts/retries */
-  /* This is a hack but seems sufficient for the moment. We do not want
-     to have this be yet another allocation for some bytes, it is more
-     memory management overhead than the whole mess is worth. */
-  unsigned char data[IPPP_RESET_MAXDATABYTES];
-};
-
-/* The data structure keeping track of the currently outstanding CCP Reset
-   transactions. */
-struct ippp_ccp_reset {
-  struct ippp_ccp_reset_state *rs[256];        /* One per possible id */
-  unsigned char lastid;                        /* Last id allocated by the engine */
-};
-
 #endif /* __KERNEL__ */
 #endif /* _LINUX_ISDN_PPP_H */