1995-01-12 13:06:32 +00:00
|
|
|
/*
|
|
|
|
* Copyright (c) 1993 Daniel Boulet
|
|
|
|
* Copyright (c) 1994 Ugen J.S.Antsilevich
|
|
|
|
*
|
|
|
|
* Redistribution and use in source forms, with and without modification,
|
|
|
|
* are permitted provided that this entire comment appears intact.
|
|
|
|
*
|
|
|
|
* Redistribution in binary form may occur without any restrictions.
|
|
|
|
* Obviously, it would be nice if you gave credit where credit is due
|
|
|
|
* but requiring it would be too onerous.
|
|
|
|
*
|
|
|
|
* This software is provided ``AS IS'' without any warranties of any kind.
|
1995-07-23 05:36:31 +00:00
|
|
|
*
|
|
|
|
* $Id$
|
1995-01-12 13:06:32 +00:00
|
|
|
*/
|
|
|
|
|
|
|
|
/*
|
1995-05-30 08:16:23 +00:00
|
|
|
* Dumb definitions which needed when
|
1995-01-12 13:06:32 +00:00
|
|
|
* firewall/accounting module is not loaded.
|
|
|
|
*/
|
|
|
|
|
|
|
|
#include <sys/param.h>
|
|
|
|
#include <sys/systm.h>
|
|
|
|
#include <sys/domain.h>
|
|
|
|
#include <sys/socket.h>
|
|
|
|
#include <sys/errno.h>
|
1995-05-30 08:16:23 +00:00
|
|
|
#include <sys/time.h>
|
1995-01-12 13:06:32 +00:00
|
|
|
#include <sys/kernel.h>
|
|
|
|
|
|
|
|
#include <net/if.h>
|
|
|
|
#include <net/route.h>
|
|
|
|
|
|
|
|
#include <netinet/in.h>
|
|
|
|
#include <netinet/in_systm.h>
|
|
|
|
#include <netinet/ip.h>
|
|
|
|
#include <netinet/ip_fw.h>
|
|
|
|
|
1995-07-04 05:46:13 +00:00
|
|
|
u_short ip_fw_policy;
|
|
|
|
struct ip_fw *ip_fw_chain;
|
|
|
|
struct ip_fw *ip_acct_chain;
|
1995-01-12 13:06:32 +00:00
|
|
|
|
1995-01-26 10:26:15 +00:00
|
|
|
#ifdef IPFIREWALL
|
1995-07-09 14:29:46 +00:00
|
|
|
int (*ip_fw_chk_ptr)(struct mbuf *, struct ip *, struct ifnet *, struct ip_fw *) = &ip_fw_chk;
|
1995-07-04 05:46:13 +00:00
|
|
|
int (*ip_fw_ctl_ptr)(int, struct mbuf *) = &ip_fw_ctl;
|
1995-01-26 10:26:15 +00:00
|
|
|
#else
|
1995-07-09 14:29:46 +00:00
|
|
|
int (*ip_fw_chk_ptr)(struct mbuf *, struct ip *, struct ifnet *, struct ip_fw *);
|
1995-07-04 05:46:13 +00:00
|
|
|
int (*ip_fw_ctl_ptr)(int, struct mbuf *);
|
1995-01-26 10:26:15 +00:00
|
|
|
#endif
|
1995-01-12 13:06:32 +00:00
|
|
|
|
1995-01-26 10:26:15 +00:00
|
|
|
|
|
|
|
#ifdef IPACCT
|
1995-07-04 05:46:13 +00:00
|
|
|
void (*ip_acct_cnt_ptr)(struct ip *, struct ifnet *, struct ip_fw *, int) = &ip_acct_cnt;
|
|
|
|
int (*ip_acct_ctl_ptr)(int, struct mbuf *) = &ip_acct_ctl;
|
1995-01-26 10:26:15 +00:00
|
|
|
#else
|
1995-07-04 05:46:13 +00:00
|
|
|
void (*ip_acct_cnt_ptr)(struct ip *, struct ifnet *, struct ip_fw *, int);
|
|
|
|
int (*ip_acct_ctl_ptr)(int, struct mbuf *);
|
1995-01-26 10:26:15 +00:00
|
|
|
#endif
|