1/*
2 * Copyright (C) 1995-2001 by Darren Reed.
3 *
4 * See the IPFILTER.LICENCE file for details on licencing.
5 */
6#if defined(KERNEL) || defined(_KERNEL)
7# undef KERNEL
8# undef _KERNEL
--- 44 unchanged lines hidden (view full) ---
53#include "netinet/ip_compat.h"
54#include "netinet/ip_fil.h"
55#include "netinet/ip_state.h"
56#include "netinet/ip_scan.h"
57/* END OF INCLUDES */
58
59#if !defined(lint)
60static const char sccsid[] = "@(#)ip_state.c 1.8 6/5/96 (C) 1993-2000 Darren Reed";
61static const char rcsid[] = "@(#)$Id: ip_scan.c,v 2.40.2.9 2007/03/13 09:42:05 darrenr Exp $";
62#endif
63
64#ifdef IPFILTER_SCAN /* endif at bottom of file */
65
66
67ipscan_t *ipsc_list = NULL,
68 *ipsc_tail = NULL;
69ipscanstat_t ipsc_stat;
--- 512 unchanged lines hidden (view full) ---
582 err = ipsc_add(data);
583 break;
584 case SIOCRMSCA :
585 err = ipsc_delete(data);
586 break;
587 case SIOCGSCST :
588 bcopy((char *)&ipsc_stat, (char *)&ipscs, sizeof(ipscs));
589 ipscs.iscs_list = ipsc_list;
590 BCOPYOUT(&ipscs, data, sizeof(ipscs));
591 break;
592 default :
593 err = EINVAL;
594 break;
595 }
596
597 return err;
598}
599#endif /* IPFILTER_SCAN */
2 * Copyright (C) 1995-2001 by Darren Reed.
3 *
4 * See the IPFILTER.LICENCE file for details on licencing.
5 */
6#if defined(KERNEL) || defined(_KERNEL)
7# undef KERNEL
8# undef _KERNEL
--- 44 unchanged lines hidden (view full) ---
53#include "netinet/ip_compat.h"
54#include "netinet/ip_fil.h"
55#include "netinet/ip_state.h"
56#include "netinet/ip_scan.h"
57/* END OF INCLUDES */
58
59#if !defined(lint)
60static const char sccsid[] = "@(#)ip_state.c 1.8 6/5/96 (C) 1993-2000 Darren Reed";
61static const char rcsid[] = "@(#)$Id: ip_scan.c,v 2.40.2.9 2007/03/13 09:42:05 darrenr Exp $";
62#endif
63
64#ifdef IPFILTER_SCAN /* endif at bottom of file */
65
66
67ipscan_t *ipsc_list = NULL,
68 *ipsc_tail = NULL;
69ipscanstat_t ipsc_stat;
--- 512 unchanged lines hidden (view full) ---
582 err = ipsc_add(data);
583 break;
584 case SIOCRMSCA :
585 err = ipsc_delete(data);
586 break;
587 case SIOCGSCST :
588 bcopy((char *)&ipsc_stat, (char *)&ipscs, sizeof(ipscs));
589 ipscs.iscs_list = ipsc_list;
590 BCOPYOUT(&ipscs, data, sizeof(ipscs));
591 break;
592 default :
593 err = EINVAL;
594 break;
595 }
596
597 return err;
598}
599#endif /* IPFILTER_SCAN */