fsm.c (44359) | fsm.c (45103) |
---|---|
1/* 2 * PPP Finite State Machine for LCP/IPCP 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 Finite State Machine for LCP/IPCP 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: fsm.c,v 1.39 1999/02/26 21:28:11 brian Exp $ | 20 * $Id: fsm.c,v 1.40 1999/03/01 02:52:39 brian Exp $ |
21 * 22 * TODO: 23 */ 24 25#include <sys/param.h> 26#include <netinet/in.h> 27#include <netinet/in_systm.h> 28#include <netinet/ip.h> --- 792 unchanged lines hidden (view full) --- 821} 822 823static void 824FsmRecvProtoRej(struct fsm *fp, struct fsmheader *lhp, struct mbuf *bp) 825{ 826 struct physical *p = link2physical(fp->link); 827 u_short *sp, proto; 828 | 21 * 22 * TODO: 23 */ 24 25#include <sys/param.h> 26#include <netinet/in.h> 27#include <netinet/in_systm.h> 28#include <netinet/ip.h> --- 792 unchanged lines hidden (view full) --- 821} 822 823static void 824FsmRecvProtoRej(struct fsm *fp, struct fsmheader *lhp, struct mbuf *bp) 825{ 826 struct physical *p = link2physical(fp->link); 827 u_short *sp, proto; 828 |
829 bp = mbuf_Contiguous(bp); |
|
829 sp = (u_short *)MBUF_CTOP(bp); 830 proto = ntohs(*sp); 831 log_Printf(fp->LogLevel, "%s: -- Protocol 0x%04x (%s) was rejected!\n", 832 fp->link->name, proto, hdlc_Protocol2Nam(proto)); 833 834 switch (proto) { 835 case PROTO_LQR: 836 if (p) --- 213 unchanged lines hidden --- | 830 sp = (u_short *)MBUF_CTOP(bp); 831 proto = ntohs(*sp); 832 log_Printf(fp->LogLevel, "%s: -- Protocol 0x%04x (%s) was rejected!\n", 833 fp->link->name, proto, hdlc_Protocol2Nam(proto)); 834 835 switch (proto) { 836 case PROTO_LQR: 837 if (p) --- 213 unchanged lines hidden --- |