1
0
mirror of https://git.FreeBSD.org/ports.git synced 2024-12-28 05:29:48 +00:00
freebsd-ports/net/rp-pppoe/files/patch-src::pppoe.c
Mario Sergio Fujikawa Ferreira cea4828308 o New port of rp-pppoe: The popular Roaring Penguin's PPPoE software
o Does not work yet with FreeBSD's pppd. It is being imported in
  the hope that will bring ppl to fix it. Therefore, marked BROKEN.
2001-03-23 04:41:52 +00:00

51 lines
1.6 KiB
C

--- src/pppoe.c.orig Thu Mar 22 02:50:33 2001
+++ src/pppoe.c Thu Mar 22 14:42:44 2001
@@ -109,7 +109,7 @@
* packet before passing it here.
***********************************************************************/
void
-sessionDiscoveryPacket(PPPoEPacket *packet)
+sessionDiscoveryPacket(PPPoEConnection *conn, PPPoEPacket *packet)
{
/* Sanity check */
if (packet->code != CODE_PADT) {
@@ -117,7 +117,7 @@
}
/* It's a PADT, all right. Is it for us? */
- if (packet->session != Session) {
+ if (packet->session != conn->session) {
/* Nope, ignore it */
return;
}
@@ -222,9 +222,9 @@
/* check for buffered session data */
while (BPF_BUFFER_HAS_DATA) {
if (conn->synchronous) {
- syncReadFromEth(conn->sessionSocket, optClampMSS);
+ syncReadFromEth(conn, conn->sessionSocket, optClampMSS);
} else {
- asyncReadFromEth(conn->sessionSocket, optClampMSS);
+ asyncReadFromEth(conn, conn->sessionSocket, optClampMSS);
}
}
#endif
@@ -642,7 +642,7 @@
/* Make sure this is a session packet before processing further */
type = etherType(&packet);
if (type == Eth_PPPOE_Discovery) {
- sessionDiscoveryPacket(&packet);
+ sessionDiscoveryPacket(conn,&packet);
} else if (type != Eth_PPPOE_Session) {
return;
}
@@ -767,7 +767,7 @@
/* Make sure this is a session packet before processing further */
type = etherType(&packet);
if (type == Eth_PPPOE_Discovery) {
- sessionDiscoveryPacket(&packet);
+ sessionDiscoveryPacket(conn,&packet);
} else if (type != Eth_PPPOE_Session) {
return;
}