Greg Alexander - also <gralexan@indiana.edu> - http://sietch.home.ml.org/
----
"Text processing has made it possible to right-justify any idea, even
one which cannot be justified on any other grounds."
-- J. Finnegan, USC.
-----------------------------------------------------------------------
--- drivers/net/ppp.c.orig Thu Mar 12 13:33:21 1998
+++ drivers/net/ppp.c Fri Mar 20 15:03:07 1998
@@ -8,7 +8,7 @@
* Dynamic PPP devices by Jim Freeman <jfree@caldera.com>.
* ppp_tty_receive ``noisy-raise-bug'' fixed by Ove Ewerlid <ewerlid@syscon.uu.se>
*
- * ==FILEVERSION 980123==
+ * ==FILEVERSION 980320==
*
* NOTE TO MAINTAINERS:
* If you modify this file at all, please set the number above to the
@@ -312,9 +312,9 @@
* INITIALIZATION
*************************************************************/
-/* This procedure is called once and once only to define who we are to
- * the operating system and the various procedures that it may use in
- * accessing the ppp protocol.
+/* This procedure is called once on kernel boot or once for every time that
+ * the ppp module is loaded to register ourselves with the tty code as a
+ * line discipline.
*/
__initfunc(static int
@@ -685,6 +685,11 @@
if (tty != NULL && tty->disc_data == ppp)
tty->disc_data = NULL; /* Break the tty->ppp link */
+ if (dev && dev->flags & IFF_UP) {
+ dev_close (dev); /* close the device properly */
+ dev->flags &= ~IFF_UP; /* prevent recursion */
+ }
+
ppp_free_buf (ppp->rbuf);
ppp_free_buf (ppp->wbuf);
ppp_free_buf (ppp->cbuf);
@@ -3267,7 +3272,7 @@
status = ppp_first_time();
if (status != 0)
printk (KERN_INFO
- "PPP: ppp_init() failure %d\n", status);
+ "PPP: ppp_first_time() failure %d\n", status);
return (status);
}
-----------------------------------------------------------------------
--- net/core/dev.c.orig Fri Mar 20 12:35:59 1998
+++ net/core/dev.c Fri Mar 20 12:40:12 1998
@@ -1123,7 +1123,7 @@
* to create /proc/net/dev
*/
-int dev_get_info(char *buffer, char **start, off_t offset, int length, int dummy)
+static int dev_get_info(char *buffer, char **start, off_t offset, int length, int dummy)
{
int len=0;
off_t begin=0;
@@ -1239,7 +1239,7 @@
* Print info for /proc/net/wireless (print all entries)
* This is a clone of /proc/net/dev (just above)
*/
-int dev_get_wireless_info(char * buffer, char **start, off_t offset,
+static int dev_get_wireless_info(char * buffer, char **start, off_t offset,
int length, int dummy)
{
int len = 0;
-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@vger.rutgers.edu