patch-2.4.0-test3 linux/drivers/net/pppoe.c

Next file: linux/drivers/net/sgiseeq.c
Previous file: linux/drivers/net/pcmcia/aironet4500_cs.c
Back to the patch index
Back to the overall index

diff -u --recursive --new-file v2.4.0-test2/linux/drivers/net/pppoe.c linux/drivers/net/pppoe.c
@@ -5,7 +5,9 @@
  * PPPoE --- PPP over Ethernet (RFC 2516)
  *
  *
- * Version:	0.5.0
+ * Version:    0.5.1
+ *
+ * 030700 :     Fixed connect logic to allow for disconnect
  *
  * Author:	Michal Ostrowski <mostrows@styx.uwaterloo.ca>
  *
@@ -545,7 +547,7 @@
 		goto end;
 
 	error = -EBUSY;
-	if (sk->state & PPPOX_CONNECTED)
+	if ((sk->state & PPPOX_CONNECTED) && sp->sa_addr.pppoe.sid)
 		goto end;
 
 	dev = dev_get_by_name(sp->sa_addr.pppoe.dev);

FUNET's LINUX-ADM group, linux-adm@nic.funet.fi
TCL-scripts by Sam Shen (who was at: slshen@lbl.gov)