Date: Sat, 27 Oct 2001 07:20:02 -0700 (PDT) From: Roman Kurakin <rik@cronyx.ru> To: freebsd-bugs@FreeBSD.org Subject: Re: kern/21771: Fix for sppp and Cronyx drivers update Message-ID: <200110271420.f9REK2346382@freefall.freebsd.org>
next in thread | raw e-mail | index | archive | help
The following reply was made to PR kern/21771; it has been noted by GNATS.
From: Roman Kurakin <rik@cronyx.ru>
To: freebsd-gnats-submit@FreeBSD.org
Cc: rik@cronyx.ru
Subject: Re: kern/21771: Fix for sppp and Cronyx drivers update
Date: Sat, 27 Oct 2001 18:17:35 +0400
This is a multi-part message in MIME format.
--------------010705000903040406040703
Content-Type: text/plain; charset=us-ascii; format=flowed
Content-Transfer-Encoding: 7bit
--------------010705000903040406040703
Content-Type: text/plain;
name="sppp1.pch"
Content-Transfer-Encoding: 7bit
Content-Disposition: inline;
filename="sppp1.pch"
--- if_spppsubr.c.orig Sat Oct 27 16:37:21 2001
+++ if_spppsubr.c Sat Oct 27 16:56:32 2001
@@ -1,13 +1,21 @@
/*
- * Synchronous PPP/Cisco link level subroutines.
+ * Synchronous PPP/Cisco/Frame Relay link level subroutines.
* Keepalive protocol implemented in both Cisco and PPP modes.
+ * ANSI T1.617-compaible link management signaling
+ * implemented for Frame Relay mode.
+ * Cisco-type Frame Relay framing added, thanks Alex Tutubalin.
+ * Only one DLCI per channel for now.
*
- * Copyright (C) 1994-1996 Cronyx Engineering Ltd.
+ * Copyright (C) 1994-2001 Cronyx Engineering Ltd.
* Author: Serge Vakulenko, <vak@cronyx.ru>
*
* Heavily revamped to conform to RFC 1661.
* Copyright (C) 1997, Joerg Wunsch.
*
+ * Slightly revamped to conform to real life.
+ * Copyright (C) 1999-2001 Cronyx Engineering Ltd.
+ * Author: Kurakin Roman, <rik@cronyx.ru>
+ *
* This software is distributed with NO WARRANTIES, not even the implied
* warranties for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
*
@@ -222,7 +230,7 @@
u_short time0;
u_short time1;
};
-#define CISCO_PACKET_LEN 18
+#define CISCO_PACKET_LEN 14
/*
* We follow the spelling and capitalization of RFC 1661 here, to make
@@ -1532,12 +1540,12 @@
case STATE_ACK_SENT:
break;
case STATE_CLOSING:
- sppp_cp_change_state(cp, sp, STATE_CLOSED);
(cp->tlf)(sp);
+ sppp_cp_change_state(cp, sp, STATE_CLOSED);
break;
case STATE_STOPPING:
- sppp_cp_change_state(cp, sp, STATE_STOPPED);
(cp->tlf)(sp);
+ sppp_cp_change_state(cp, sp, STATE_STOPPED);
break;
case STATE_ACK_RCVD:
sppp_cp_change_state(cp, sp, STATE_REQ_SENT);
@@ -1850,8 +1858,8 @@
case STATE_CLOSING:
break;
case STATE_STARTING:
- sppp_cp_change_state(cp, sp, STATE_INITIAL);
(cp->tlf)(sp);
+ sppp_cp_change_state(cp, sp, STATE_INITIAL);
break;
case STATE_STOPPED:
sppp_cp_change_state(cp, sp, STATE_CLOSED);
@@ -1890,18 +1898,18 @@
/* TO- event */
switch (sp->state[cp->protoidx]) {
case STATE_CLOSING:
- sppp_cp_change_state(cp, sp, STATE_CLOSED);
(cp->tlf)(sp);
+ sppp_cp_change_state(cp, sp, STATE_CLOSED);
break;
case STATE_STOPPING:
- sppp_cp_change_state(cp, sp, STATE_STOPPED);
(cp->tlf)(sp);
+ sppp_cp_change_state(cp, sp, STATE_STOPPED);
break;
case STATE_REQ_SENT:
case STATE_ACK_RCVD:
case STATE_ACK_SENT:
- sppp_cp_change_state(cp, sp, STATE_STOPPED);
(cp->tlf)(sp);
+ sppp_cp_change_state(cp, sp, STATE_STOPPED);
break;
}
else
--------------010705000903040406040703--
To Unsubscribe: send mail to majordomo@FreeBSD.org
with "unsubscribe freebsd-bugs" in the body of the message
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?200110271420.f9REK2346382>
