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.10 2007/06/02 21:22:28 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 err = BCOPYOUT(&ipscs, data, sizeof(ipscs));
591 if (err != 0)
592 err = EFAULT;
593 break;
594 default :
595 err = EINVAL;
596 break;
597 }
598
599 return err;
600}
601#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.10 2007/06/02 21:22:28 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 err = BCOPYOUT(&ipscs, data, sizeof(ipscs));
591 if (err != 0)
592 err = EFAULT;
593 break;
594 default :
595 err = EINVAL;
596 break;
597 }
598
599 return err;
600}
601#endif /* IPFILTER_SCAN */