Deleted Added
full compact
ip_var.h (228969) ip_var.h (240099)
1/*-
2 * Copyright (c) 1982, 1986, 1993
3 * The Regents of the University of California. All rights reserved.
4 *
5 * Redistribution and use in source and binary forms, with or without
6 * modification, are permitted provided that the following conditions
7 * are met:
8 * 1. Redistributions of source code must retain the above copyright

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

22 * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS
23 * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
24 * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
25 * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
26 * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
27 * SUCH DAMAGE.
28 *
29 * @(#)ip_var.h 8.2 (Berkeley) 1/9/95
1/*-
2 * Copyright (c) 1982, 1986, 1993
3 * The Regents of the University of California. All rights reserved.
4 *
5 * Redistribution and use in source and binary forms, with or without
6 * modification, are permitted provided that the following conditions
7 * are met:
8 * 1. Redistributions of source code must retain the above copyright

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

22 * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS
23 * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
24 * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
25 * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
26 * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
27 * SUCH DAMAGE.
28 *
29 * @(#)ip_var.h 8.2 (Berkeley) 1/9/95
30 * $FreeBSD: head/sys/netinet/ip_var.h 228969 2011-12-29 20:41:16Z jhb $
30 * $FreeBSD: head/sys/netinet/ip_var.h 240099 2012-09-04 19:43:26Z melifaro $
31 */
32
33#ifndef _NETINET_IP_VAR_H_
34#define _NETINET_IP_VAR_H_
35
36#include <sys/queue.h>
37
38/*

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

287};
288#define MTAG_IPFW 1148380143 /* IPFW-tagged cookie */
289#define MTAG_IPFW_RULE 1262273568 /* rule reference */
290#define MTAG_IPFW_CALL 1308397630 /* call stack */
291
292struct ip_fw_args;
293typedef int (*ip_fw_chk_ptr_t)(struct ip_fw_args *args);
294typedef int (*ip_fw_ctl_ptr_t)(struct sockopt *);
31 */
32
33#ifndef _NETINET_IP_VAR_H_
34#define _NETINET_IP_VAR_H_
35
36#include <sys/queue.h>
37
38/*

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

287};
288#define MTAG_IPFW 1148380143 /* IPFW-tagged cookie */
289#define MTAG_IPFW_RULE 1262273568 /* rule reference */
290#define MTAG_IPFW_CALL 1308397630 /* call stack */
291
292struct ip_fw_args;
293typedef int (*ip_fw_chk_ptr_t)(struct ip_fw_args *args);
294typedef int (*ip_fw_ctl_ptr_t)(struct sockopt *);
295VNET_DECLARE(ip_fw_chk_ptr_t, ip_fw_chk_ptr);
296VNET_DECLARE(ip_fw_ctl_ptr_t, ip_fw_ctl_ptr);
295VNET_DECLARE(ip_fw_ctl_ptr_t, ip_fw_ctl_ptr);
297#define V_ip_fw_chk_ptr VNET(ip_fw_chk_ptr)
298#define V_ip_fw_ctl_ptr VNET(ip_fw_ctl_ptr)
299
300/* Divert hooks. */
301extern void (*ip_divert_ptr)(struct mbuf *m, int incoming);
302/* ng_ipfw hooks -- XXX make it the same as divert and dummynet */
303extern int (*ng_ipfw_input_p)(struct mbuf **, int,
304 struct ip_fw_args *, int);
305
306extern int (*ip_dn_ctl_ptr)(struct sockopt *);
307extern int (*ip_dn_io_ptr)(struct mbuf **, int, struct ip_fw_args *);
308
309VNET_DECLARE(int, ip_do_randomid);
310#define V_ip_do_randomid VNET(ip_do_randomid)
311#define ip_newid() ((V_ip_do_randomid != 0) ? ip_randomid() : \
312 htons(V_ip_id++))
313
314#endif /* _KERNEL */
315
316#endif /* !_NETINET_IP_VAR_H_ */
296#define V_ip_fw_ctl_ptr VNET(ip_fw_ctl_ptr)
297
298/* Divert hooks. */
299extern void (*ip_divert_ptr)(struct mbuf *m, int incoming);
300/* ng_ipfw hooks -- XXX make it the same as divert and dummynet */
301extern int (*ng_ipfw_input_p)(struct mbuf **, int,
302 struct ip_fw_args *, int);
303
304extern int (*ip_dn_ctl_ptr)(struct sockopt *);
305extern int (*ip_dn_io_ptr)(struct mbuf **, int, struct ip_fw_args *);
306
307VNET_DECLARE(int, ip_do_randomid);
308#define V_ip_do_randomid VNET(ip_do_randomid)
309#define ip_newid() ((V_ip_do_randomid != 0) ? ip_randomid() : \
310 htons(V_ip_id++))
311
312#endif /* _KERNEL */
313
314#endif /* !_NETINET_IP_VAR_H_ */