Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[src/trunk]: src/sys/net if received PADT, get correct sc related with sessio...
details: https://anonhg.NetBSD.org/src/rev/2673838e64f2
branches: trunk
changeset: 787980:2673838e64f2
user: oki <oki%NetBSD.org@localhost>
date: Wed Jul 17 10:16:58 2013 +0000
description:
if received PADT, get correct sc related with session id.
RFC2516 5.5 says, no tags required in PADT packet.
diffstat:
sys/net/if_pppoe.c | 5 +++--
1 files changed, 3 insertions(+), 2 deletions(-)
diffs (26 lines):
diff -r dcdee1400d94 -r 2673838e64f2 sys/net/if_pppoe.c
--- a/sys/net/if_pppoe.c Wed Jul 17 06:43:32 2013 +0000
+++ b/sys/net/if_pppoe.c Wed Jul 17 10:16:58 2013 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: if_pppoe.c,v 1.99 2013/06/29 21:06:58 rmind Exp $ */
+/* $NetBSD: if_pppoe.c,v 1.100 2013/07/17 10:16:58 oki Exp $ */
/*-
* Copyright (c) 2002, 2008 The NetBSD Foundation, Inc.
@@ -30,7 +30,7 @@
*/
#include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: if_pppoe.c,v 1.99 2013/06/29 21:06:58 rmind Exp $");
+__KERNEL_RCSID(0, "$NetBSD: if_pppoe.c,v 1.100 2013/07/17 10:16:58 oki Exp $");
#include "pppoe.h"
#include "opt_pppoe.h"
@@ -717,6 +717,7 @@
sc->sc_sppp.pp_up(&sc->sc_sppp); /* notify upper layers */
break;
case PPPOE_CODE_PADT:
+ sc = pppoe_find_softc_by_session(session, m->m_pkthdr.rcvif);
if (sc == NULL)
goto done;
pppoe_clear_softc(sc, "received PADT");
Home |
Main Index |
Thread Index |
Old Index