Deleted Added
full compact
ip_fw.h (37409) ip_fw.h (38482)
1/*
2 * Copyright (c) 1993 Daniel Boulet
3 * Copyright (c) 1994 Ugen J.S.Antsilevich
4 *
5 * Redistribution and use in source forms, with and without modification,
6 * are permitted provided that this entire comment appears intact.
7 *
8 * Redistribution in binary form may occur without any restrictions.
9 * Obviously, it would be nice if you gave credit where credit is due
10 * but requiring it would be too onerous.
11 *
12 * This software is provided ``AS IS'' without any warranties of any kind.
13 *
1/*
2 * Copyright (c) 1993 Daniel Boulet
3 * Copyright (c) 1994 Ugen J.S.Antsilevich
4 *
5 * Redistribution and use in source forms, with and without modification,
6 * are permitted provided that this entire comment appears intact.
7 *
8 * Redistribution in binary form may occur without any restrictions.
9 * Obviously, it would be nice if you gave credit where credit is due
10 * but requiring it would be too onerous.
11 *
12 * This software is provided ``AS IS'' without any warranties of any kind.
13 *
14 * $Id: ip_fw.h,v 1.32 1998/02/03 22:15:03 bde Exp $
14 * $Id: ip_fw.h,v 1.33 1998/07/06 03:20:15 julian Exp $
15 */
16
17#ifndef _IP_FW_H
18#define _IP_FW_H
19
20#include <sys/queue.h>
21
22/*

--- 156 unchanged lines hidden (view full) ---

179 */
180#ifdef KERNEL
181
182/*
183 * Function definitions.
184 */
185void ip_fw_init __P((void));
186
15 */
16
17#ifndef _IP_FW_H
18#define _IP_FW_H
19
20#include <sys/queue.h>
21
22/*

--- 156 unchanged lines hidden (view full) ---

179 */
180#ifdef KERNEL
181
182/*
183 * Function definitions.
184 */
185void ip_fw_init __P((void));
186
187/* Firewall hooks */
188struct ip;
189struct sockopt;
190typedef int ip_fw_chk_t __P((struct ip **, int, struct ifnet *, u_int16_t *,
191 struct mbuf **, struct sockaddr_in **));
192typedef int ip_fw_ctl_t __P((struct sockopt *));
193extern ip_fw_chk_t *ip_fw_chk_ptr;
194extern ip_fw_ctl_t *ip_fw_ctl_ptr;
195
196/* IP NAT hooks */
197typedef int ip_nat_t __P((struct ip **, struct mbuf **, struct ifnet *, int));
198typedef int ip_nat_ctl_t __P((struct sockopt *));
199extern ip_nat_t *ip_nat_ptr;
200extern ip_nat_ctl_t *ip_nat_ctl_ptr;
201#define IP_NAT_IN 0x00000001
202#define IP_NAT_OUT 0x00000002
203
187#endif /* KERNEL */
188
189#endif /* _IP_FW_H */
204#endif /* KERNEL */
205
206#endif /* _IP_FW_H */