diff options
author | hm <hm@FreeBSD.org> | 2002-03-17 09:33:15 +0000 |
---|---|---|
committer | hm <hm@FreeBSD.org> | 2002-03-17 09:33:15 +0000 |
commit | 3e7af4a9665cdd7b30f61045cc0ae4c494d0c7a8 (patch) | |
tree | 9694b7441ca7325a9386dc72ccc1f07e0faad12d /sys/i4b/layer3 | |
parent | e86597e456382f7bf7d244ea3d1d3f90cdbfa171 (diff) | |
download | FreeBSD-src-3e7af4a9665cdd7b30f61045cc0ae4c494d0c7a8.zip FreeBSD-src-3e7af4a9665cdd7b30f61045cc0ae4c494d0c7a8.tar.gz |
Clean up the i4b kernel part: remove unmaintained #if(def)s for NetBSD,
OpenBSD and BSD/OS and respective code, remove pre $FreeBSD CVS id's,
remove #if(def)s and respective code for FreeBSD versions < 5 .
Diffstat (limited to 'sys/i4b/layer3')
-rw-r--r-- | sys/i4b/layer3/i4b_l3fsm.c | 22 | ||||
-rw-r--r-- | sys/i4b/layer3/i4b_l3fsm.h | 6 | ||||
-rw-r--r-- | sys/i4b/layer3/i4b_l3timer.c | 21 | ||||
-rw-r--r-- | sys/i4b/layer3/i4b_l4if.c | 21 | ||||
-rw-r--r-- | sys/i4b/layer3/i4b_q931.c | 24 | ||||
-rw-r--r-- | sys/i4b/layer3/i4b_q932fac.c | 21 | ||||
-rw-r--r-- | sys/i4b/layer3/i4b_q932fac.h | 6 |
7 files changed, 18 insertions, 103 deletions
diff --git a/sys/i4b/layer3/i4b_l3fsm.c b/sys/i4b/layer3/i4b_l3fsm.c index cde6e7c..77b3204 100644 --- a/sys/i4b/layer3/i4b_l3fsm.c +++ b/sys/i4b/layer3/i4b_l3fsm.c @@ -1,5 +1,5 @@ /* - * Copyright (c) 1997, 2000 Hellmuth Michaelis. All rights reserved. + * Copyright (c) 1997, 2002 Hellmuth Michaelis. All rights reserved. * * Redistribution and use in source and binary forms, with or without * modification, are permitted provided that the following conditions @@ -27,38 +27,23 @@ * i4b_l3fsm.c - layer 3 FSM * ------------------------- * - * $Id: i4b_l3fsm.c,v 1.22 2000/08/24 11:48:58 hm Exp $ - * * $FreeBSD$ * - * last edit-date: [Thu Oct 12 17:58:35 2000] + * last edit-date: [Sat Mar 9 19:34:39 2002] * *---------------------------------------------------------------------------*/ -#ifdef __FreeBSD__ #include "i4bq931.h" -#else -#define NI4BQ931 1 -#endif + #if NI4BQ931 > 0 #include <sys/param.h> #include <sys/systm.h> #include <sys/mbuf.h> -#if defined(__NetBSD__) && __NetBSD_Version__ >= 104230000 -#include <sys/callout.h> -#endif - -#ifdef __FreeBSD__ #include <machine/i4b_debug.h> #include <machine/i4b_ioctl.h> #include <machine/i4b_cause.h> -#else -#include <i4b/i4b_debug.h> -#include <i4b/i4b_ioctl.h> -#include <i4b/i4b_cause.h> -#endif #include <i4b/include/i4b_l2l3.h> #include <i4b/include/i4b_l3l4.h> @@ -69,7 +54,6 @@ #include <i4b/layer4/i4b_l4.h> - static void F_00A(call_desc_t *cd), F_00H(call_desc_t *cd), F_00I(call_desc_t *cd); static void F_00J(call_desc_t *cd); diff --git a/sys/i4b/layer3/i4b_l3fsm.h b/sys/i4b/layer3/i4b_l3fsm.h index 0b1c76d..fbb7c37 100644 --- a/sys/i4b/layer3/i4b_l3fsm.h +++ b/sys/i4b/layer3/i4b_l3fsm.h @@ -1,5 +1,5 @@ /* - * Copyright (c) 1997, 2000 Hellmuth Michaelis. All rights reserved. + * Copyright (c) 1997, 2002 Hellmuth Michaelis. All rights reserved. * * Redistribution and use in source and binary forms, with or without * modification, are permitted provided that the following conditions @@ -27,11 +27,9 @@ * i4b_l3fsm.c - layer 3 FSM * ------------------------- * - * $Id: i4b_l3fsm.h,v 1.8 2000/04/27 09:25:22 hm Exp $ - * * $FreeBSD$ * - * last edit-date: [Thu Apr 27 11:07:16 2000] + * last edit-date: [Sat Mar 9 19:34:51 2002] * *---------------------------------------------------------------------------*/ diff --git a/sys/i4b/layer3/i4b_l3timer.c b/sys/i4b/layer3/i4b_l3timer.c index add27ad..ec408b6 100644 --- a/sys/i4b/layer3/i4b_l3timer.c +++ b/sys/i4b/layer3/i4b_l3timer.c @@ -1,5 +1,5 @@ /* - * Copyright (c) 1997, 2000 Hellmuth Michaelis. All rights reserved. + * Copyright (c) 1997, 2002 Hellmuth Michaelis. All rights reserved. * * Redistribution and use in source and binary forms, with or without * modification, are permitted provided that the following conditions @@ -27,19 +27,14 @@ * i4b_l3timer.c - timer and timeout handling for layer 3 * ------------------------------------------------------ * - * $Id: i4b_l3timer.c,v 1.17 2000/08/24 11:48:58 hm Exp $ - * * $FreeBSD$ * - * last edit-date: [Thu Aug 24 12:49:50 2000] + * last edit-date: [Sat Mar 9 19:35:31 2002] * *---------------------------------------------------------------------------*/ -#ifdef __FreeBSD__ #include "i4bq931.h" -#else -#define NI4BQ931 1 -#endif + #if NI4BQ931 > 0 #include <sys/param.h> @@ -47,17 +42,8 @@ #include <sys/systm.h> #include <sys/mbuf.h> -#if defined(__NetBSD__) && __NetBSD_Version__ >= 104230000 -#include <sys/callout.h> -#endif - -#ifdef __FreeBSD__ #include <machine/i4b_debug.h> #include <machine/i4b_ioctl.h> -#else -#include <i4b/i4b_debug.h> -#include <i4b/i4b_ioctl.h> -#endif #include <i4b/include/i4b_global.h> #include <i4b/include/i4b_l3l4.h> @@ -65,7 +51,6 @@ #include <i4b/layer3/i4b_l3.h> #include <i4b/layer3/i4b_l3fsm.h> - /*---------------------------------------------------------------------------* * stop all layer 3 timers *---------------------------------------------------------------------------*/ diff --git a/sys/i4b/layer3/i4b_l4if.c b/sys/i4b/layer3/i4b_l4if.c index 3681219..34ddad8 100644 --- a/sys/i4b/layer3/i4b_l4if.c +++ b/sys/i4b/layer3/i4b_l4if.c @@ -1,5 +1,5 @@ /* - * Copyright (c) 1997, 2000 Hellmuth Michaelis. All rights reserved. + * Copyright (c) 1997, 2002 Hellmuth Michaelis. All rights reserved. * * Redistribution and use in source and binary forms, with or without * modification, are permitted provided that the following conditions @@ -27,38 +27,23 @@ * i4b_l4if.c - Layer 3 interface to Layer 4 * ------------------------------------------- * - * $Id: i4b_l4if.c,v 1.27 2000/08/24 11:48:58 hm Exp $ - * * $FreeBSD$ * - * last edit-date: [Fri Jun 2 14:32:19 2000] + * last edit-date: [Sat Mar 9 19:36:08 2002] * *---------------------------------------------------------------------------*/ -#ifdef __FreeBSD__ #include "i4bq931.h" -#else -#define NI4BQ931 1 -#endif + #if NI4BQ931 > 0 #include <sys/param.h> #include <sys/systm.h> #include <sys/mbuf.h> -#if defined(__NetBSD__) && __NetBSD_Version__ >= 104230000 -#include <sys/callout.h> -#endif - -#ifdef __FreeBSD__ #include <machine/i4b_debug.h> #include <machine/i4b_ioctl.h> #include <machine/i4b_cause.h> -#else -#include <i4b/i4b_debug.h> -#include <i4b/i4b_ioctl.h> -#include <i4b/i4b_cause.h> -#endif #include <i4b/include/i4b_l2l3.h> #include <i4b/include/i4b_l3l4.h> diff --git a/sys/i4b/layer3/i4b_q931.c b/sys/i4b/layer3/i4b_q931.c index c294c7d..89d7a07 100644 --- a/sys/i4b/layer3/i4b_q931.c +++ b/sys/i4b/layer3/i4b_q931.c @@ -1,5 +1,5 @@ /* - * Copyright (c) 1997, 2000 Hellmuth Michaelis. All rights reserved. + * Copyright (c) 1997, 2002 Hellmuth Michaelis. All rights reserved. * * Redistribution and use in source and binary forms, with or without * modification, are permitted provided that the following conditions @@ -27,19 +27,13 @@ * i4b_q931.c - Q931 received messages handling * -------------------------------------------- * - * $Id: i4b_q931.c,v 1.32 2000/08/24 11:48:58 hm Exp $ - * * $FreeBSD$ * - * last edit-date: [Mon May 29 16:56:52 2000] + * last edit-date: [Sat Mar 9 19:36:45 2002] * *---------------------------------------------------------------------------*/ -#ifdef __FreeBSD__ #include "i4bq931.h" -#else -#define NI4BQ931 1 -#endif #if NI4BQ931 > 0 @@ -47,19 +41,9 @@ #include <sys/systm.h> #include <sys/mbuf.h> -#if defined(__NetBSD__) && __NetBSD_Version__ >= 104230000 -#include <sys/callout.h> -#endif - -#ifdef __FreeBSD__ #include <machine/i4b_debug.h> #include <machine/i4b_ioctl.h> #include <machine/i4b_cause.h> -#else -#include <i4b/i4b_debug.h> -#include <i4b/i4b_ioctl.h> -#include <i4b/i4b_cause.h> -#endif #include <i4b/include/i4b_isdnq931.h> #include <i4b/include/i4b_l3l4.h> @@ -71,10 +55,6 @@ #include <i4b/layer4/i4b_l4.h> -#ifndef __FreeBSD__ -#define memcpy(d,s,l) bcopy(s,d,l) -#endif - unsigned int i4b_l3_debug = L3_DEBUG_DEFAULT; ctrl_desc_t ctrl_desc[MAX_CONTROLLERS]; /* controller description array */ diff --git a/sys/i4b/layer3/i4b_q932fac.c b/sys/i4b/layer3/i4b_q932fac.c index 99a7608..38bf5da 100644 --- a/sys/i4b/layer3/i4b_q932fac.c +++ b/sys/i4b/layer3/i4b_q932fac.c @@ -1,5 +1,5 @@ /* - * Copyright (c) 1997, 2000 Hellmuth Michaelis. All rights reserved. + * Copyright (c) 1997, 2002 Hellmuth Michaelis. All rights reserved. * * Redistribution and use in source and binary forms, with or without * modification, are permitted provided that the following conditions @@ -27,43 +27,28 @@ * i4b_q932fac.c - Q932 facility handling * -------------------------------------- * - * $Id: i4b_q932fac.c,v 1.11 2000/08/24 11:48:58 hm Exp $ - * * $FreeBSD$ * - * last edit-date: [Mon May 29 16:57:04 2000] + * last edit-date: [Sat Mar 9 19:37:29 2002] * *---------------------------------------------------------------------------*/ -#ifdef __FreeBSD__ #include "i4bq931.h" -#else -#define NI4BQ931 1 -#endif + #if NI4BQ931 > 0 #include <sys/param.h> #include <sys/systm.h> #include <sys/mbuf.h> -#if defined(__NetBSD__) && __NetBSD_Version__ >= 104230000 -#include <sys/callout.h> -#endif - -#ifdef __FreeBSD__ #include <machine/i4b_debug.h> #include <machine/i4b_ioctl.h> -#else -#include <i4b/i4b_debug.h> -#include <i4b/i4b_ioctl.h> -#endif #include <i4b/include/i4b_l3l4.h> #include <i4b/layer3/i4b_l3.h> #include <i4b/layer3/i4b_q932fac.h> - static int do_component(int length); static void next_state(int class, int form, int code, int val); diff --git a/sys/i4b/layer3/i4b_q932fac.h b/sys/i4b/layer3/i4b_q932fac.h index 0c92177..c424fa1 100644 --- a/sys/i4b/layer3/i4b_q932fac.h +++ b/sys/i4b/layer3/i4b_q932fac.h @@ -1,5 +1,5 @@ /* - * Copyright (c) 1997, 2000 Hellmuth Michaelis. All rights reserved. + * Copyright (c) 1997, 2002 Hellmuth Michaelis. All rights reserved. * * Redistribution and use in source and binary forms, with or without * modification, are permitted provided that the following conditions @@ -27,11 +27,9 @@ * i4b_q932fac.h - Q932 facility handling header file * -------------------------------------------------- * - * $Id: i4b_q932fac.h,v 1.8 2000/04/27 09:25:22 hm Exp $ - * * $FreeBSD$ * - * last edit-date: [Thu Apr 27 11:07:52 2000] + * last edit-date: [Sat Mar 9 19:37:46 2002] * *--------------------------------------------------------------------------- * |