Commit a274edfa authored by Kai Germaschewski's avatar Kai Germaschewski

ISDN: header cosmetics

Updating copyright lines, deleting the CVS $Id lines, move
PPP CCP reset related declarations into drivers/isdn/i4l/isdn_ppp_ccp.c.
parent d3051c1a
/* $Id: isdn_audio.c,v 1.21.6.3 2002/08/13 09:45:33 keil Exp $ /* Linux ISDN subsystem, audio conversion and compression
*
* Linux ISDN subsystem, audio conversion and compression (linklevel).
* *
* Copyright 1994-1999 by Fritz Elfert (fritz@isdn4linux.de) * Copyright 1994-1999 by Fritz Elfert (fritz@isdn4linux.de)
* DTMF code (c) 1996 by Christian Mock (cm@tahina.priv.at) * 1996 by Christian Mock (cm@tahina.priv.at)
* Silence detection (c) 1998 by Armin Schindler (mac@gismo.telekom.de) * 1998 by Armin Schindler (mac@gismo.telekom.de)
* *
* This software may be used and distributed according to the terms * This software may be used and distributed according to the terms
* of the GNU General Public License, incorporated herein by reference. * of the GNU General Public License, incorporated herein by reference.
* *
* DTMF code by Christian Mock
* Silence detection by Armin Schindler
*/ */
#include <linux/isdn.h> #include <linux/isdn.h>
......
/* $Id: isdn_audio.h,v 1.9.6.1 2001/09/23 22:24:31 kai Exp $ /* Linux ISDN subsystem, audio conversion and compression
*
* Linux ISDN subsystem, audio conversion and compression (linklevel).
* *
* Copyright 1994-1999 by Fritz Elfert (fritz@isdn4linux.de) * Copyright 1994-1999 by Fritz Elfert (fritz@isdn4linux.de)
* *
......
/* /* Linux ISDN subsystem, CISCO HDLC network interfaces
* Linux ISDN subsystem, CISCO HDLC network interfaces
* *
* Copyright 1994-1998 by Fritz Elfert (fritz@isdn4linux.de) * Copyright 1994-1998 by Fritz Elfert (fritz@isdn4linux.de)
* 1995,96 by Thinking Objects Software GmbH Wuerzburg * 1995,96 by Thinking Objects Software GmbH Wuerzburg
......
/* /* Linux ISDN subsystem, CISCO HDLC network interfaces
* Linux ISDN subsystem, CISCO HDLC network interfaces
* *
* Copyright 1999-2002 by Kai Germaschewski <kai@germaschewski.name> * Copyright 1999-2002 by Kai Germaschewski <kai@germaschewski.name>
* 2001 by Bjoern A. Zeeb <i4l@zabbadoz.net> * 2001 by Bjoern A. Zeeb <i4l@zabbadoz.net>
......
/* $Id: isdn_common.c,v 1.114.6.16 2001/11/06 20:58:28 kai Exp $ /* Linux ISDN subsystem, common used functions
*
* Linux ISDN subsystem, common used functions (linklevel).
* *
* Copyright 1994-1999 by Fritz Elfert (fritz@isdn4linux.de) * Copyright 1994-1999 by Fritz Elfert (fritz@isdn4linux.de)
* Copyright 1995,96 Thinking Objects Software GmbH Wuerzburg * Copyright 1995,96 Thinking Objects Software GmbH Wuerzburg
...@@ -8,7 +6,6 @@ ...@@ -8,7 +6,6 @@
* *
* This software may be used and distributed according to the terms * This software may be used and distributed according to the terms
* of the GNU General Public License, incorporated herein by reference. * of the GNU General Public License, incorporated herein by reference.
*
*/ */
#include <linux/config.h> #include <linux/config.h>
......
/* $Id: isdn_common.h,v 1.21.6.1 2001/09/23 22:24:31 kai Exp $ /* Linux ISDN subsystem, common used functions and debugging-switches
*
* header for Linux ISDN subsystem
* common used functions and debugging-switches (linklevel).
* *
* Copyright 1994-1999 by Fritz Elfert (fritz@isdn4linux.de) * Copyright 1994-1999 by Fritz Elfert (fritz@isdn4linux.de)
* Copyright 1995,96 by Thinking Objects Software GmbH Wuerzburg * Copyright 1995,96 by Thinking Objects Software GmbH Wuerzburg
......
/* $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 * This software may be used and distributed according to the terms
* of the GNU General Public License, incorporated herein by reference. * of the GNU General Public License, incorporated herein by reference.
*
*/ */
/* Stuff to support the concap_proto by isdn4linux. isdn4linux - specific /* Stuff to support the concap_proto by isdn4linux. isdn4linux - specific
* stuff goes here. Stuff that depends only on the concap protocol goes to * stuff goes here. Stuff that depends only on the concap protocol goes to
* another -- protocol specific -- source file. * another -- protocol specific -- source file.
*
*/ */
......
/* $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 * This software may be used and distributed according to the terms
* of the GNU General Public License, incorporated herein by reference. * of the GNU General Public License, incorporated herein by reference.
*
*/ */
extern struct concap_device_ops isdn_concap_reliable_dl_dops; extern struct concap_device_ops isdn_concap_reliable_dl_dops;
......
/* $Id: fsm.c,v 1.14.6.4 2001/09/23 22:24:47 kai Exp $ /* Linux ISDN subsystem, finite state machine
*
* Finite state machine
* *
* Author Karsten Keil * Author Karsten Keil
* Copyright by Karsten Keil <keil@isdn4linux.de> * Copyright by Karsten Keil <keil@isdn4linux.de>
* by Kai Germaschewski <kai.germaschewski@gmx.de> * 2001-2002 by Kai Germaschewski <kai@germaschewski.name>
* *
* This software may be used and distributed according to the terms * This software may be used and distributed according to the terms
* of the GNU General Public License, incorporated herein by reference. * of the GNU General Public License, incorporated herein by reference.
* *
* Thanks to Jan den Ouden * Thanks to Jan den Ouden
* Fritz Elfert * Fritz Elfert
*
*/ */
#include <linux/kernel.h> #include <linux/kernel.h>
......
/* $Id: fsm.h,v 1.3.2.2 2001/09/23 22:24:47 kai Exp $ /* Linux ISDN subsystem, finite state machine
*
* Finite state machine
* *
* Author Karsten Keil * Author Karsten Keil
* Copyright by Karsten Keil <keil@isdn4linux.de> * Copyright by Karsten Keil <keil@isdn4linux.de>
* by Kai Germaschewski <kai.germaschewski@gmx.de> * 2001-2002 by Kai Germaschewski <kai@germaschewski.name>
* *
* This software may be used and distributed according to the terms * This software may be used and distributed according to the terms
* of the GNU General Public License, incorporated herein by reference. * of the GNU General Public License, incorporated herein by reference.
*
*/ */
#ifndef __ISDN_FSM_H__ #ifndef __ISDN_FSM_H__
......
/* $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) * Copyright 1994-1998 by Fritz Elfert (fritz@isdn4linux.de)
* 1995,96 by Thinking Objects Software GmbH Wuerzburg * 1995,96 by Thinking Objects Software GmbH Wuerzburg
...@@ -9,7 +7,9 @@ ...@@ -9,7 +7,9 @@
* *
* This software may be used and distributed according to the terms * This software may be used and distributed according to the terms
* of the GNU General Public License, incorporated herein by reference. * of the GNU General Public License, incorporated herein by reference.
* */
/*
* Data Over Voice (DOV) support added - Guy Ellis 23-Mar-02 * Data Over Voice (DOV) support added - Guy Ellis 23-Mar-02
* guy@traverse.com.au * guy@traverse.com.au
* Outgoing calls - looks for a 'V' in first char of dialed number * Outgoing calls - looks for a 'V' in first char of dialed number
......
/* $Id: isdn_net.h,v 1.19.6.4 2001/09/28 08:05:29 kai Exp $ /* Linux ISDN subsystem, network related functions
*
* header for Linux ISDN subsystem, network related functions (linklevel).
* *
* Copyright 1994-1999 by Fritz Elfert (fritz@isdn4linux.de) * Copyright 1994-1999 by Fritz Elfert (fritz@isdn4linux.de)
* Copyright 1995,96 by Thinking Objects Software GmbH Wuerzburg * 1995,96 by Thinking Objects Software GmbH Wuerzburg
* Copyright 1995,96 by Michael Hipp (Michael.Hipp@student.uni-tuebingen.de) * 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 * This software may be used and distributed according to the terms
* of the GNU General Public License, incorporated herein by reference. * of the GNU General Public License, incorporated herein by reference.
*
*/ */
#include <linux/kernel.h> #include <linux/kernel.h>
...@@ -39,6 +37,8 @@ int isdn_net_autodial(struct sk_buff *skb, struct net_device *ndev); ...@@ -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); 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); void isdn_netif_rx(isdn_net_dev *idev, struct sk_buff *skb, u16 protocol);
/* ====================================================================== */
static inline int static inline int
put_u8(unsigned char *p, u8 x) put_u8(unsigned char *p, u8 x)
{ {
......
/* /* Linux ISDN subsystem, Network interface configuration
* Linux ISDN subsystem, Network interface configuration
* *
* Copyright 1994-1998 by Fritz Elfert (fritz@isdn4linux.de) * Copyright 1994-1998 by Fritz Elfert (fritz@isdn4linux.de)
* 1995,96 by Thinking Objects Software GmbH Wuerzburg * 1995,96 by Thinking Objects Software GmbH Wuerzburg
......
/* $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 * This software may be used and distributed according to the terms
* of the GNU General Public License, incorporated herein by reference. * of the GNU General Public License, incorporated herein by reference.
*
*/ */
#include <linux/module.h> #include <linux/module.h>
...@@ -23,6 +21,10 @@ ...@@ -23,6 +21,10 @@
#include "isdn_ppp_mp.h" #include "isdn_ppp_mp.h"
#include "isdn_net.h" #include "isdn_net.h"
/* ====================================================================== */
#define IPPP_MAX_RQ_LEN 8 /* max #frames queued for ipppd to read */
static int static int
isdn_ppp_set_compressor(isdn_net_dev *idev, struct isdn_ppp_comp_data *); isdn_ppp_set_compressor(isdn_net_dev *idev, struct isdn_ppp_comp_data *);
......
/* $Id: isdn_ppp.h,v 1.17.6.1 2001/09/23 22:24:32 kai Exp $ /* Linux ISDN subsystem, functions for synchronous PPP (linklevel).
*
* header for 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 * This software may be used and distributed according to the terms
* of the GNU General Public License, incorporated herein by reference. * of the GNU General Public License, incorporated herein by reference.
*
*/ */
#include <linux/ppp_defs.h> /* for PPP_PROTOCOL */ #include <linux/ppp_defs.h> /* for PPP_PROTOCOL */
......
/* 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_ppp_ccp.h"
#include "isdn_common.h" #include "isdn_common.h"
...@@ -5,6 +15,36 @@ ...@@ -5,6 +15,36 @@
#include "isdn_ppp.h" #include "isdn_ppp.h"
#include <linux/ppp-comp.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, /* In-kernel handling of CCP Reset-Request and Reset-Ack is necessary,
but absolutely nontrivial. The most abstruse problem we are facing is but absolutely nontrivial. The most abstruse problem we are facing is
that the generation, reception and all the handling of timeouts and that the generation, reception and all the handling of timeouts and
......
/* 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/kernel.h>
#include <linux/isdn_ppp.h> #include <linux/isdn_ppp.h>
......
/* 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_mp.h"
#include "isdn_ppp_ccp.h" #include "isdn_ppp_ccp.h"
...@@ -5,6 +15,15 @@ ...@@ -5,6 +15,15 @@
#include "isdn_net.h" #include "isdn_net.h"
#include "isdn_ppp.h" #include "isdn_ppp.h"
/* ====================================================================== */
#define MP_END_FRAG 0x40
#define MP_BEGIN_FRAG 0x80
#define MP_MAX_QUEUE_LEN 16
/* ====================================================================== */
int int
ippp_mp_bind(isdn_net_dev *idev) ippp_mp_bind(isdn_net_dev *idev)
{ {
......
/* 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__ #ifndef __ISDN_PPP_MP_H__
#define __ISDN_PPP_MP_H__ #define __ISDN_PPP_MP_H__
...@@ -5,7 +15,6 @@ ...@@ -5,7 +15,6 @@
#include <linux/kernel.h> #include <linux/kernel.h>
#include <linux/isdn.h> #include <linux/isdn.h>
#ifdef CONFIG_ISDN_MPP #ifdef CONFIG_ISDN_MPP
int ippp_mp_bind(isdn_net_dev *idev); int ippp_mp_bind(isdn_net_dev *idev);
......
/* 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_ppp_vj.h"
#include "isdn_common.h" #include "isdn_common.h"
#include "isdn_net.h" #include "isdn_net.h"
#include "isdn_ppp.h" #include "isdn_ppp.h"
/* ====================================================================== */
/* VJ header compression */
/* ====================================================================== */
struct slcompress * struct slcompress *
ippp_vj_alloc(void) ippp_vj_alloc(void)
{ {
......
/* 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__ #ifndef __ISDN_PPP_VJ_H__
#define __ISDN_PPP_VJ_H__ #define __ISDN_PPP_VJ_H__
......
/* $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
*
* Linux ISDN subsystem, tty functions and AT-command emulator (linklevel).
* *
* Copyright 1994-1999 by Fritz Elfert (fritz@isdn4linux.de) * Copyright 1994-1999 by Fritz Elfert (fritz@isdn4linux.de)
* Copyright 1995,96 by Thinking Objects Software GmbH Wuerzburg * Copyright 1995,96 by Thinking Objects Software GmbH Wuerzburg
* *
* This software may be used and distributed according to the terms * This software may be used and distributed according to the terms
* of the GNU General Public License, incorporated herein by reference. * of the GNU General Public License, incorporated herein by reference.
*
*/ */
#undef ISDN_TTY_STAT_DEBUG #undef ISDN_TTY_STAT_DEBUG
#include <linux/config.h> #include <linux/config.h>
......
/* $Id: isdn_tty.h,v 1.22.6.2 2001/09/23 22:24:32 kai Exp $ /* Linux ISDN subsystem, tty related functions
*
* header for Linux ISDN subsystem, tty related functions (linklevel).
* *
* Copyright 1994-1999 by Fritz Elfert (fritz@isdn4linux.de) * Copyright 1994-1999 by Fritz Elfert (fritz@isdn4linux.de)
* Copyright 1995,96 by Thinking Objects Software GmbH Wuerzburg * Copyright 1995,96 by Thinking Objects Software GmbH Wuerzburg
* *
* This software may be used and distributed according to the terms * This software may be used and distributed according to the terms
* of the GNU General Public License, incorporated herein by reference. * of the GNU General Public License, incorporated herein by reference.
*
*/ */
#include <linux/config.h> #include <linux/config.h>
......
/* $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
*
* Linux ISDN subsystem, tty_fax AT-command emulator (linklevel).
* *
* Copyright 1999 by Armin Schindler (mac@melware.de) * Copyright 1999 by Armin Schindler (mac@melware.de)
* Copyright 1999 by Ralf Spachmann (mel@melware.de) * Copyright 1999 by Ralf Spachmann (mel@melware.de)
...@@ -8,7 +6,6 @@ ...@@ -8,7 +6,6 @@
* *
* This software may be used and distributed according to the terms * This software may be used and distributed according to the terms
* of the GNU General Public License, incorporated herein by reference. * of the GNU General Public License, incorporated herein by reference.
*
*/ */
#undef ISDN_TTY_FAX_STAT_DEBUG #undef ISDN_TTY_FAX_STAT_DEBUG
......
/* $Id: isdn_ttyfax.h,v 1.2.6.1 2001/09/23 22:24:32 kai Exp $ /* Linux ISDN subsystem, tty_fax related functions
*
* header for Linux ISDN subsystem, tty_fax related functions (linklevel).
* *
* Copyright 1999 by Armin Schindler (mac@melware.de) * Copyright 1999 by Armin Schindler (mac@melware.de)
* Copyright 1999 by Ralf Spachmann (mel@melware.de) * Copyright 1999 by Ralf Spachmann (mel@melware.de)
...@@ -8,7 +6,6 @@ ...@@ -8,7 +6,6 @@
* *
* This software may be used and distributed according to the terms * This software may be used and distributed according to the terms
* of the GNU General Public License, incorporated herein by reference. * of the GNU General Public License, incorporated herein by reference.
*
*/ */
......
/* $Id: isdn_v110.c,v 1.5.6.4 2001/09/23 22:24:32 kai Exp $ /* Linux ISDN subsystem, V.110
*
* Linux ISDN subsystem, V.110 related functions (linklevel).
* *
* Copyright by Thomas Pfeiffer (pfeiffer@pds.de) * Copyright by Thomas Pfeiffer (pfeiffer@pds.de)
* *
* This software may be used and distributed according to the terms * This software may be used and distributed according to the terms
* of the GNU General Public License, incorporated herein by reference. * of the GNU General Public License, incorporated herein by reference.
*
*/ */
#include <linux/string.h> #include <linux/string.h>
......
/* $Id: isdn_v110.h,v 1.4.6.1 2001/09/23 22:24:32 kai Exp $ /* Linux ISDN subsystem, V.110 related functions
*
* Linux ISDN subsystem, V.110 related functions (linklevel).
* *
* Copyright by Thomas Pfeiffer (pfeiffer@pds.de) * Copyright by Thomas Pfeiffer (pfeiffer@pds.de)
* *
* This software may be used and distributed according to the terms * This software may be used and distributed according to the terms
* of the GNU General Public License, incorporated herein by reference. * of the GNU General Public License, incorporated herein by reference.
*
*/ */
#ifndef ISDN_V110_H #ifndef ISDN_V110_H
......
/* $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 * This software may be used and distributed according to the terms
* of the GNU General Public License, incorporated herein by reference. * 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 * 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. * can provide a lab_b service using the concap_proto mechanism.
* This module supports a network interface wich provides lapb_sematics * This module supports a network interface wich provides lapb_sematics
...@@ -17,7 +17,6 @@ ...@@ -17,7 +17,6 @@
* *
*/ */
/* #include <linux/isdn.h> */
#include <linux/netdevice.h> #include <linux/netdevice.h>
#include <linux/concap.h> #include <linux/concap.h>
#include <linux/wanrouter.h> #include <linux/wanrouter.h>
......
/* $Id: isdn_x25iface.h,v 1.3.6.1 2001/09/23 22:24:32 kai Exp $ /* Linux ISDN subsystem, x.25 related functions
*
* header for Linux ISDN subsystem, x.25 related functions
* *
* This software may be used and distributed according to the terms * This software may be used and distributed according to the terms
* of the GNU General Public License, incorporated herein by reference. * of the GNU General Public License, incorporated herein by reference.
*
*/ */
#ifndef _LINUX_ISDN_X25IFACE_H #ifndef _LINUX_ISDN_X25IFACE_H
#define _LINUX_ISDN_X25IFACE_H #define _LINUX_ISDN_X25IFACE_H
#define ISDN_X25IFACE_MAGIC 0x1e75a2b9 #define ISDN_X25IFACE_MAGIC 0x1e75a2b9
/* #define DEBUG_ISDN_X25 if you want isdn_x25 debugging messages */
#undef DEBUG_ISDN_X25
#ifdef DEBUG_ISDN_X25 #ifdef DEBUG_ISDN_X25
# define IX25DEBUG(fmt,args...) printk(KERN_DEBUG fmt , ## args) # define IX25DEBUG(fmt,args...) printk(KERN_DEBUG fmt , ## args)
#else #else
...@@ -26,8 +25,6 @@ ...@@ -26,8 +25,6 @@
extern struct concap_proto_ops * isdn_x25iface_concap_proto_ops_pt; extern struct concap_proto_ops * isdn_x25iface_concap_proto_ops_pt;
extern struct concap_proto * isdn_x25iface_proto_new(void); extern struct concap_proto * isdn_x25iface_proto_new(void);
#endif #endif
......
/* $Id: isdn.h,v 1.111.6.9 2001/09/23 22:25:05 kai Exp $ /* Linux ISDN subsystem, main header
*
* Main header for the Linux ISDN subsystem (linklevel).
* *
* Copyright 1994,95,96 by Fritz Elfert (fritz@isdn4linux.de) * Copyright 1994,95,96 by Fritz Elfert (fritz@isdn4linux.de)
* Copyright 1995,96 by Thinking Objects Software GmbH Wuerzburg * Copyright 1995,96 by Thinking Objects Software GmbH Wuerzburg
* Copyright 1995,96 by Michael Hipp (Michael.Hipp@student.uni-tuebingen.de) * 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 * This software may be used and distributed according to the terms
* of the GNU General Public License, incorporated herein by reference. * of the GNU General Public License, incorporated herein by reference.
...@@ -441,9 +440,6 @@ typedef struct isdn_net_dev_s { ...@@ -441,9 +440,6 @@ typedef struct isdn_net_dev_s {
u32 mp_rxseq; /* last seq no seen on this channel */ u32 mp_rxseq; /* last seq no seen on this channel */
struct ippp_ccp *ccp; struct ippp_ccp *ccp;
unsigned long debug; unsigned long debug;
ippp_bundle * pb; /* pointer to the common bundle structure
* with the per-bundle data */
#endif #endif
#ifdef CONFIG_ISDN_X25 #ifdef CONFIG_ISDN_X25
struct concap_proto *cprot; /* connection oriented encapsulation protocol */ struct concap_proto *cprot; /* connection oriented encapsulation protocol */
......
/* /* 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 * This software may be used and distributed according to the terms
* of the GNU General Public License, incorporated herein by reference. * of the GNU General Public License, incorporated herein by reference.
* *
*/ */
#ifndef _LINUX_ISDN_PPP_H #ifndef _LINUX_ISDN_PPP_H
#define _LINUX_ISDN_PPP_H #define _LINUX_ISDN_PPP_H
...@@ -28,10 +33,9 @@ struct pppcallinfo ...@@ -28,10 +33,9 @@ struct pppcallinfo
#define PPPIOCSMPFLAGS _IOW('t',131,int) #define PPPIOCSMPFLAGS _IOW('t',131,int)
#define PPPIOCSMPMTU _IOW('t',132,int) #define PPPIOCSMPMTU _IOW('t',132,int)
#define PPPIOCSMPMRU _IOW('t',133,int) #define PPPIOCSMPMRU _IOW('t',133,int)
#define PPPIOCGCOMPRESSORS _IOR('t',134,unsigned long [8]) #define PPPIOCGCOMPRESSORS _IOR('t',134,unsigned long[8])
#define PPPIOCSCOMPRESSOR _IOW('t',135,int) #define PPPIOCSCOMPRESSOR _IOW('t',135,int)
#define PPPIOCGIFNAME _IOR('t',136, char [IFNAMSIZ] ) #define PPPIOCGIFNAME _IOR('t',136,char[IFNAMSIZ])
#define SC_MP_PROT 0x00000200 #define SC_MP_PROT 0x00000200
#define SC_REJ_MP_PROT 0x00000400 #define SC_REJ_MP_PROT 0x00000400
...@@ -52,18 +56,11 @@ struct isdn_ppp_comp_data { ...@@ -52,18 +56,11 @@ struct isdn_ppp_comp_data {
#ifdef __KERNEL__ #ifdef __KERNEL__
#include <linux/config.h>
#include <linux/skbuff.h> #include <linux/skbuff.h>
#include <linux/ppp_defs.h> #include <linux/ppp_defs.h>
#define DECOMP_ERR_NOMEM (-10) #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 * 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 * Reset-Requests in a variety of ways. The decompressor is already returning
...@@ -130,41 +127,5 @@ struct isdn_ppp_compressor { ...@@ -130,41 +127,5 @@ struct isdn_ppp_compressor {
extern int isdn_ppp_register_compressor(struct isdn_ppp_compressor *); extern int isdn_ppp_register_compressor(struct isdn_ppp_compressor *);
extern int isdn_ppp_unregister_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 /* __KERNEL__ */
#endif /* _LINUX_ISDN_PPP_H */ #endif /* _LINUX_ISDN_PPP_H */
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment