Deleted Added
full compact
ng_pppoe.c (70931) ng_pppoe.c (70935)
1
2/*
3 * ng_pppoe.c
4 *
5 * Copyright (c) 1996-1999 Whistle Communications, Inc.
6 * All rights reserved.
7 *
8 * Subject to the following obligations and disclaimer of warranty, use and

--- 22 unchanged lines hidden (view full) ---

31 * SERVICES, LOSS OF USE, DATA OR PROFITS, HOWEVER CAUSED AND UNDER ANY
32 * THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
33 * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF
34 * THIS SOFTWARE, EVEN IF WHISTLE COMMUNICATIONS IS ADVISED OF THE POSSIBILITY
35 * OF SUCH DAMAGE.
36 *
37 * Author: Julian Elischer <julian@freebsd.org>
38 *
1
2/*
3 * ng_pppoe.c
4 *
5 * Copyright (c) 1996-1999 Whistle Communications, Inc.
6 * All rights reserved.
7 *
8 * Subject to the following obligations and disclaimer of warranty, use and

--- 22 unchanged lines hidden (view full) ---

31 * SERVICES, LOSS OF USE, DATA OR PROFITS, HOWEVER CAUSED AND UNDER ANY
32 * THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
33 * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF
34 * THIS SOFTWARE, EVEN IF WHISTLE COMMUNICATIONS IS ADVISED OF THE POSSIBILITY
35 * OF SUCH DAMAGE.
36 *
37 * Author: Julian Elischer <julian@freebsd.org>
38 *
39 * $FreeBSD: head/sys/netgraph/ng_pppoe.c 70931 2001-01-11 15:42:22Z julian $
39 * $FreeBSD: head/sys/netgraph/ng_pppoe.c 70935 2001-01-11 19:27:54Z julian $
40 * $Whistle: ng_pppoe.c,v 1.10 1999/11/01 09:24:52 julian Exp $
41 */
42#if 0
43#define AAA printf("pppoe: %s\n", __FUNCTION__ );
44#define BBB printf("-%d-", __LINE__ );
45#else
46#define AAA
47#define BBB

--- 1114 unchanged lines hidden (view full) ---

1162 */
1163 sendhook = pppoe_findsession(node, wh);
1164 if (sendhook == NULL) {
1165 LEAVE(ENETUNREACH);
1166 }
1167 /* send message to creator */
1168 /* close hook */
1169 if (sendhook) {
40 * $Whistle: ng_pppoe.c,v 1.10 1999/11/01 09:24:52 julian Exp $
41 */
42#if 0
43#define AAA printf("pppoe: %s\n", __FUNCTION__ );
44#define BBB printf("-%d-", __LINE__ );
45#else
46#define AAA
47#define BBB

--- 1114 unchanged lines hidden (view full) ---

1162 */
1163 sendhook = pppoe_findsession(node, wh);
1164 if (sendhook == NULL) {
1165 LEAVE(ENETUNREACH);
1166 }
1167 /* send message to creator */
1168 /* close hook */
1169 if (sendhook) {
1170 ng_destroy_hook(sendhook);
1170 ng_rmhook_self(sendhook);
1171 }
1172 break;
1173 default:
1174 LEAVE(EPFNOSUPPORT);
1175 }
1176 break;
1177 case ETHERTYPE_PPPOE_SESS:
1178 /*

--- 327 unchanged lines hidden (view full) ---

1506 } else {
1507 neg->timeout = PPPOE_TIMEOUT_LIMIT;
1508 }
1509 }
1510 break;
1511 case PPPOE_PRIMED:
1512 case PPPOE_SOFFER:
1513 /* a timeout on these says "give up" */
1171 }
1172 break;
1173 default:
1174 LEAVE(EPFNOSUPPORT);
1175 }
1176 break;
1177 case ETHERTYPE_PPPOE_SESS:
1178 /*

--- 327 unchanged lines hidden (view full) ---

1506 } else {
1507 neg->timeout = PPPOE_TIMEOUT_LIMIT;
1508 }
1509 }
1510 break;
1511 case PPPOE_PRIMED:
1512 case PPPOE_SOFFER:
1513 /* a timeout on these says "give up" */
1514 ng_destroy_hook(hook);
1514 ng_rmhook_self(hook);
1515 break;
1516 default:
1517 /* timeouts have no meaning in other states */
1518 printf("pppoe: unexpected timeout\n");
1519 }
1520 splx(s);
1521}
1522

--- 119 unchanged lines hidden ---
1515 break;
1516 default:
1517 /* timeouts have no meaning in other states */
1518 printf("pppoe: unexpected timeout\n");
1519 }
1520 splx(s);
1521}
1522

--- 119 unchanged lines hidden ---