ipftest.c (7c478bd9) | ipftest.c (7663b816) |
---|---|
1/* 2 * Copyright (C) 1993-2001 by Darren Reed. 3 * 4 * See the IPFILTER.LICENCE file for details on licencing. | 1/* 2 * Copyright (C) 1993-2001 by Darren Reed. 3 * 4 * See the IPFILTER.LICENCE file for details on licencing. |
5 * 6 * Copyright 2005 Sun Microsystems, Inc. All rights reserved. 7 * Use is subject to license terms. |
|
5 */ | 8 */ |
9 10#pragma ident "%Z%%M% %I% %E% SMI" 11 |
|
6#include "ipf.h" 7#include "ipt.h" 8#include <sys/ioctl.h> 9#include <sys/file.h> 10 11#if !defined(lint) 12static const char sccsid[] = "@(#)ipt.c 1.19 6/3/96 (C) 1993-2000 Darren Reed"; 13static const char rcsid[] = "@(#)$Id: ipftest.c,v 1.35 2003/07/01 01:03:04 darrenr Exp $"; --- 283 unchanged lines hidden (view full) --- 297 (void) ipflog_clear(i); 298 299 fr_fragunload(); 300 fr_authunload(); 301 fr_stateunload(); 302 fr_natunload(); 303 appr_unload(); 304 | 12#include "ipf.h" 13#include "ipt.h" 14#include <sys/ioctl.h> 15#include <sys/file.h> 16 17#if !defined(lint) 18static const char sccsid[] = "@(#)ipt.c 1.19 6/3/96 (C) 1993-2000 Darren Reed"; 19static const char rcsid[] = "@(#)$Id: ipftest.c,v 1.35 2003/07/01 01:03:04 darrenr Exp $"; --- 283 unchanged lines hidden (view full) --- 303 (void) ipflog_clear(i); 304 305 fr_fragunload(); 306 fr_authunload(); 307 fr_stateunload(); 308 fr_natunload(); 309 appr_unload(); 310 |
305 i = frflush(IPL_LOGIPF, FR_INQUE|FR_OUTQUE|FR_INACTIVE); 306 i += frflush(IPL_LOGIPF, FR_INQUE|FR_OUTQUE); | 311 i = frflush(IPL_LOGIPF, 0, FR_INQUE|FR_OUTQUE|FR_INACTIVE); 312 i += frflush(IPL_LOGIPF, 0, FR_INQUE|FR_OUTQUE); |
307 308 ip_lookup_unload(); 309 310 return 0; 311} 312 313 314#if defined(__NetBSD__) || defined(__OpenBSD__) || SOLARIS || \ --- 237 unchanged lines hidden (view full) --- 552char *buf; 553long pos; 554int n; 555{ 556 char *ptr; 557 558 ptr = (char *)pos; 559 | 313 314 ip_lookup_unload(); 315 316 return 0; 317} 318 319 320#if defined(__NetBSD__) || defined(__OpenBSD__) || SOLARIS || \ --- 237 unchanged lines hidden (view full) --- 558char *buf; 559long pos; 560int n; 561{ 562 char *ptr; 563 564 ptr = (char *)pos; 565 |
560 while ((n > 0) && (*buf++ = *ptr++)) | 566 while ((n-- > 0) && (*buf++ = *ptr++)) |
561 ; 562 return 0; 563} 564 565 566/* 567 * Display the built up NAT table rules and mapping entries. 568 */ --- 156 unchanged lines hidden --- | 567 ; 568 return 0; 569} 570 571 572/* 573 * Display the built up NAT table rules and mapping entries. 574 */ --- 156 unchanged lines hidden --- |