/* * 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. */ /* * Dumb definitions which needed when * firewall/accounting module is not loaded. */ #include #include #include #include #include #include #include #include #include #include #include #include #include u_short ip_fw_policy; struct ip_fw *ip_fw_chain; struct ip_fw *ip_acct_chain; #ifdef IPFIREWALL int (*ip_fw_chk_ptr)(struct ip *, struct ifnet *, struct ip_fw *) = &ip_fw_chk; int (*ip_fw_ctl_ptr)(int, struct mbuf *) = &ip_fw_ctl; #else int (*ip_fw_chk_ptr)(struct ip *, struct ifnet *, struct ip_fw *); int (*ip_fw_ctl_ptr)(int, struct mbuf *); #endif #ifdef IPACCT 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; #else void (*ip_acct_cnt_ptr)(struct ip *, struct ifnet *, struct ip_fw *, int); int (*ip_acct_ctl_ptr)(int, struct mbuf *); #endif