lcp.c (31195) | lcp.c (31272) |
---|---|
1/* 2 * PPP Link Control Protocol (LCP) Module 3 * 4 * Written by Toshiharu OHNO (tony-o@iij.ad.jp) 5 * 6 * Copyright (C) 1993, Internet Initiative Japan, Inc. All rights reserverd. 7 * 8 * Redistribution and use in source and binary forms are permitted 9 * provided that the above copyright notice and this paragraph are 10 * duplicated in all such forms and that any documentation, 11 * advertising materials, and other materials related to such 12 * distribution and use acknowledge that the software was developed 13 * by the Internet Initiative Japan, Inc. The name of the 14 * IIJ may not be used to endorse or promote products derived 15 * from this software without specific prior written permission. 16 * THIS SOFTWARE IS PROVIDED ``AS IS'' AND WITHOUT ANY EXPRESS OR 17 * IMPLIED WARRANTIES, INCLUDING, WITHOUT LIMITATION, THE IMPLIED 18 * WARRANTIES OF MERCHANTIBILITY AND FITNESS FOR A PARTICULAR PURPOSE. 19 * | 1/* 2 * PPP Link Control Protocol (LCP) Module 3 * 4 * Written by Toshiharu OHNO (tony-o@iij.ad.jp) 5 * 6 * Copyright (C) 1993, Internet Initiative Japan, Inc. All rights reserverd. 7 * 8 * Redistribution and use in source and binary forms are permitted 9 * provided that the above copyright notice and this paragraph are 10 * duplicated in all such forms and that any documentation, 11 * advertising materials, and other materials related to such 12 * distribution and use acknowledge that the software was developed 13 * by the Internet Initiative Japan, Inc. The name of the 14 * IIJ may not be used to endorse or promote products derived 15 * from this software without specific prior written permission. 16 * THIS SOFTWARE IS PROVIDED ``AS IS'' AND WITHOUT ANY EXPRESS OR 17 * IMPLIED WARRANTIES, INCLUDING, WITHOUT LIMITATION, THE IMPLIED 18 * WARRANTIES OF MERCHANTIBILITY AND FITNESS FOR A PARTICULAR PURPOSE. 19 * |
20 * $Id: lcp.c,v 1.45 1997/11/14 15:39:15 brian Exp $ | 20 * $Id: lcp.c,v 1.46 1997/11/16 22:15:04 brian Exp $ |
21 * 22 * TODO: 23 * o Validate magic number received from peer. 24 * o Limit data field length by MRU 25 */ 26#include <sys/param.h> 27#include <sys/time.h> 28#include <sys/select.h> --- 298 unchanged lines hidden (view full) --- 327 LogPrintf(LogLCP, "LcpLayerStart\n"); 328 NewPhase(PHASE_ESTABLISH); 329} 330 331static void 332StopAllTimers() 333{ 334 StopTimer(&LcpReportTimer); | 21 * 22 * TODO: 23 * o Validate magic number received from peer. 24 * o Limit data field length by MRU 25 */ 26#include <sys/param.h> 27#include <sys/time.h> 28#include <sys/select.h> --- 298 unchanged lines hidden (view full) --- 327 LogPrintf(LogLCP, "LcpLayerStart\n"); 328 NewPhase(PHASE_ESTABLISH); 329} 330 331static void 332StopAllTimers() 333{ 334 StopTimer(&LcpReportTimer); |
335 StopTimer(&IpcpReportTimer); | |
336 StopIdleTimer(); 337 StopTimer(&AuthPapInfo.authtimer); 338 StopTimer(&AuthChapInfo.authtimer); 339 StopLqrTimer(); 340} 341 342static void 343LcpLayerFinish(struct fsm * fp) --- 372 unchanged lines hidden --- | 335 StopIdleTimer(); 336 StopTimer(&AuthPapInfo.authtimer); 337 StopTimer(&AuthChapInfo.authtimer); 338 StopLqrTimer(); 339} 340 341static void 342LcpLayerFinish(struct fsm * fp) --- 372 unchanged lines hidden --- |