Module Name: src Committed By: oki Date: Wed Jul 17 10:16:58 UTC 2013
Modified Files: src/sys/net: if_pppoe.c Log Message: if received PADT, get correct sc related with session id. RFC2516 5.5 says, no tags required in PADT packet. To generate a diff of this commit: cvs rdiff -u -r1.99 -r1.100 src/sys/net/if_pppoe.c Please note that diffs are not public domain; they are subject to the copyright notices on the relevant files.
Modified files: Index: src/sys/net/if_pppoe.c diff -u src/sys/net/if_pppoe.c:1.99 src/sys/net/if_pppoe.c:1.100 --- src/sys/net/if_pppoe.c:1.99 Sat Jun 29 21:06:58 2013 +++ src/sys/net/if_pppoe.c Wed Jul 17 10:16:58 2013 @@ -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 @@ breakbreak:; 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");