hdlc.c (43313) | hdlc.c (43693) |
---|---|
1/* 2 * PPP High Level Link Control (HDLC) 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 High Level Link Control (HDLC) 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: hdlc.c,v 1.36 1998/08/07 18:42:48 brian Exp $ | 20 * $Id: hdlc.c,v 1.37 1999/01/28 01:56:32 brian Exp $ |
21 * 22 * TODO: 23 */ 24#include <sys/param.h> 25#include <netinet/in.h> 26#include <netinet/in_systm.h> 27#include <netinet/ip.h> 28#include <sys/un.h> --- 359 unchanged lines hidden (view full) --- 388 return; 389 390 switch (proto) { 391 case PROTO_LCP: 392 lcp_Input(&l->lcp, bp); 393 break; 394 case PROTO_PAP: 395 if (p) | 21 * 22 * TODO: 23 */ 24#include <sys/param.h> 25#include <netinet/in.h> 26#include <netinet/in_systm.h> 27#include <netinet/ip.h> 28#include <sys/un.h> --- 359 unchanged lines hidden (view full) --- 388 return; 389 390 switch (proto) { 391 case PROTO_LCP: 392 lcp_Input(&l->lcp, bp); 393 break; 394 case PROTO_PAP: 395 if (p) |
396 pap_Input(bundle, bp, p); | 396 pap_Input(p, bp); |
397 else { 398 log_Printf(LogERROR, "DecodePacket: PAP: Not a physical link !\n"); 399 mbuf_Free(bp); 400 } 401 break; 402 case PROTO_CBCP: 403 if (p) 404 cbcp_Input(p, bp); --- 8 unchanged lines hidden (view full) --- 413 lqr_Input(p, bp); 414 } else { 415 log_Printf(LogERROR, "DecodePacket: LQR: Not a physical link !\n"); 416 mbuf_Free(bp); 417 } 418 break; 419 case PROTO_CHAP: 420 if (p) | 397 else { 398 log_Printf(LogERROR, "DecodePacket: PAP: Not a physical link !\n"); 399 mbuf_Free(bp); 400 } 401 break; 402 case PROTO_CBCP: 403 if (p) 404 cbcp_Input(p, bp); --- 8 unchanged lines hidden (view full) --- 413 lqr_Input(p, bp); 414 } else { 415 log_Printf(LogERROR, "DecodePacket: LQR: Not a physical link !\n"); 416 mbuf_Free(bp); 417 } 418 break; 419 case PROTO_CHAP: 420 if (p) |
421 chap_Input(bundle, bp, p); | 421 chap_Input(p, bp); |
422 else { 423 log_Printf(LogERROR, "DecodePacket: CHAP: Not a physical link !\n"); 424 mbuf_Free(bp); 425 } 426 break; 427 case PROTO_VJUNCOMP: 428 case PROTO_VJCOMP: 429 bp = vj_Input(&bundle->ncp.ipcp, bp, proto); --- 221 unchanged lines hidden --- | 422 else { 423 log_Printf(LogERROR, "DecodePacket: CHAP: Not a physical link !\n"); 424 mbuf_Free(bp); 425 } 426 break; 427 case PROTO_VJUNCOMP: 428 case PROTO_VJCOMP: 429 bp = vj_Input(&bundle->ncp.ipcp, bp, proto); --- 221 unchanged lines hidden --- |