lcp.c (30715) | lcp.c (30733) |
---|---|
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.39 1997/10/15 01:01:17 brian Exp $ | 20 * $Id: lcp.c,v 1.40 1997/10/26 01:02:57 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 <netinet/in.h> 28#include <arpa/inet.h> --- 22 unchanged lines hidden (view full) --- 51#include "loadalias.h" 52#include "command.h" 53#include "vars.h" 54#include "auth.h" 55#include "pap.h" 56#include "chap.h" 57#include "async.h" 58#include "main.h" | 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 <netinet/in.h> 28#include <arpa/inet.h> --- 22 unchanged lines hidden (view full) --- 51#include "loadalias.h" 52#include "command.h" 53#include "vars.h" 54#include "auth.h" 55#include "pap.h" 56#include "chap.h" 57#include "async.h" 58#include "main.h" |
59#include "ip.h" |
|
59#include "modem.h" 60 61struct lcpstate LcpInfo; 62 63static void LcpSendConfigReq(struct fsm *); 64static void LcpSendTerminateReq(struct fsm *); 65static void LcpSendTerminateAck(struct fsm *); 66static void LcpDecodeConfig(u_char *, int, int); --- 620 unchanged lines hidden --- | 60#include "modem.h" 61 62struct lcpstate LcpInfo; 63 64static void LcpSendConfigReq(struct fsm *); 65static void LcpSendTerminateReq(struct fsm *); 66static void LcpSendTerminateAck(struct fsm *); 67static void LcpDecodeConfig(u_char *, int, int); --- 620 unchanged lines hidden --- |