hdlc.c (28679) | hdlc.c (29294) |
---|---|
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.16 1997/06/09 03:27:22 brian Exp $ | 20 * $Id: hdlc.c,v 1.17 1997/08/25 00:29:13 brian Exp $ |
21 * 22 * TODO: 23 */ 24#include "fsm.h" 25#include "hdlc.h" 26#include "lcpproto.h" 27#include "lcp.h" 28#include "lqr.h" --- 118 unchanged lines hidden (view full) --- 147 struct mbuf *mhp, *mfcs; 148 struct protostat *statp; 149 struct lqrdata *lqr; 150 u_char *cp; 151 u_short fcs; 152 153 if ((proto & 0xfff1) == 0x21) { /* Network Layer protocol */ 154 if (CcpFsm.state == ST_OPENED) { | 21 * 22 * TODO: 23 */ 24#include "fsm.h" 25#include "hdlc.h" 26#include "lcpproto.h" 27#include "lcp.h" 28#include "lqr.h" --- 118 unchanged lines hidden (view full) --- 147 struct mbuf *mhp, *mfcs; 148 struct protostat *statp; 149 struct lqrdata *lqr; 150 u_char *cp; 151 u_short fcs; 152 153 if ((proto & 0xfff1) == 0x21) { /* Network Layer protocol */ 154 if (CcpFsm.state == ST_OPENED) { |
155 Pred1Output(pri, proto, bp); 156 return; | 155 if (CcpInfo.want_proto == PRED1) { 156 Pred1Output(pri, proto, bp); 157 return; 158 } |
157 } 158 } 159 if (DEV_IS_SYNC) 160 mfcs = NULLBUFF; 161 else 162 mfcs = mballoc(2, MB_HDLCOUT); 163 mhp = mballoc(4, MB_HDLCOUT); 164 mhp->cnt = 0; --- 258 unchanged lines hidden --- | 159 } 160 } 161 if (DEV_IS_SYNC) 162 mfcs = NULLBUFF; 163 else 164 mfcs = mballoc(2, MB_HDLCOUT); 165 mhp = mballoc(4, MB_HDLCOUT); 166 mhp->cnt = 0; --- 258 unchanged lines hidden --- |