ip.c (10858) | ip.c (13379) |
---|---|
1/* 2 * PPP IP Protocol Interface 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. 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 IP Protocol Interface 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. 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: ip.c,v 1.4 1995/05/30 03:50:37 rgrimes Exp $ | 20 * $Id: ip.c,v 1.5 1995/09/17 16:14:46 amurai Exp $ |
21 * 22 * TODO: 23 * o Return ICMP message for filterd packet 24 * and optionaly record it into log. 25 */ 26#include "fsm.h" 27#include "lcpproto.h" 28#include "hdlc.h" --- 166 unchanged lines hidden (view full) --- 195 logprintf("check1: action = %d\n", fp->action); 196#endif 197 return(fp->action); 198 } 199 } 200 } 201 fp++; 202 } | 21 * 22 * TODO: 23 * o Return ICMP message for filterd packet 24 * and optionaly record it into log. 25 */ 26#include "fsm.h" 27#include "lcpproto.h" 28#include "hdlc.h" --- 166 unchanged lines hidden (view full) --- 195 logprintf("check1: action = %d\n", fp->action); 196#endif 197 return(fp->action); 198 } 199 } 200 } 201 fp++; 202 } |
203drop: | |
204 return(A_DENY); /* No rule is mached. Deny this packet */ 205 } 206 return(A_PERMIT); /* No rule is given. Permit this packet */ 207} 208 209static void 210IcmpError(pip, code) 211struct ip *pip; --- 212 unchanged lines hidden --- | 203 return(A_DENY); /* No rule is mached. Deny this packet */ 204 } 205 return(A_PERMIT); /* No rule is given. Permit this packet */ 206} 207 208static void 209IcmpError(pip, code) 210struct ip *pip; --- 212 unchanged lines hidden --- |