Deleted Added
full compact
ip_fil.h (57096) ip_fil.h (57126)
1/*
2 * Copyright (C) 1993-1998 by Darren Reed.
3 *
4 * Redistribution and use in source and binary forms are permitted
5 * provided that this notice is preserved and due credit is given
6 * to the original author and the contributors.
7 *
8 * @(#)ip_fil.h 1.35 6/5/96
9 * $Id: ip_fil.h,v 2.3.2.7 2000/01/27 08:49:41 darrenr Exp $
1/*
2 * Copyright (C) 1993-1998 by Darren Reed.
3 *
4 * Redistribution and use in source and binary forms are permitted
5 * provided that this notice is preserved and due credit is given
6 * to the original author and the contributors.
7 *
8 * @(#)ip_fil.h 1.35 6/5/96
9 * $Id: ip_fil.h,v 2.3.2.7 2000/01/27 08:49:41 darrenr Exp $
10 * $FreeBSD: head/sys/contrib/ipfilter/netinet/ip_fil.h 57126 2000-02-10 21:29:11Z guido $
10 */
11
12#ifndef __IP_FIL_H__
13#define __IP_FIL_H__
14
15/*
16 * Pathnames for various IP Filter control devices. Used by LKM
17 * and userland, so defined here.

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

77# define SIOCAUTHR _IOWR(r, 77, struct fr_info)
78# define SIOCATHST _IOWR(r, 78, struct fr_authstat)
79#endif
80#define SIOCADDFR SIOCADAFR
81#define SIOCDELFR SIOCRMAFR
82#define SIOCINSFR SIOCINAFR
83
84typedef struct fr_ip {
11 */
12
13#ifndef __IP_FIL_H__
14#define __IP_FIL_H__
15
16/*
17 * Pathnames for various IP Filter control devices. Used by LKM
18 * and userland, so defined here.

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

78# define SIOCAUTHR _IOWR(r, 77, struct fr_info)
79# define SIOCATHST _IOWR(r, 78, struct fr_authstat)
80#endif
81#define SIOCADDFR SIOCADAFR
82#define SIOCDELFR SIOCRMAFR
83#define SIOCINSFR SIOCINAFR
84
85typedef struct fr_ip {
85 u_char fi_v:4; /* IP version */
86 u_char fi_fl:4; /* packet flags */
86 u_int fi_v:4; /* IP version */
87 u_int fi_fl:4; /* packet flags */
87 u_char fi_tos; /* IP packet TOS */
88 u_char fi_ttl; /* IP packet TTL */
89 u_char fi_p; /* IP packet protocol */
90 struct in_addr fi_src; /* source address from packet */
91 struct in_addr fi_dst; /* destination address from packet */
92 u_32_t fi_optmsk; /* bitmask composed from IP options */
93 u_short fi_secmsk; /* bitmask composed from IP security options */
94 u_short fi_auth; /* authentication code from IP sec. options */

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

422# endif
423# ifdef PFIL_HOOKS
424# define NETBSD_PF
425# endif
426#endif
427
428
429#ifndef _KERNEL
88 u_char fi_tos; /* IP packet TOS */
89 u_char fi_ttl; /* IP packet TTL */
90 u_char fi_p; /* IP packet protocol */
91 struct in_addr fi_src; /* source address from packet */
92 struct in_addr fi_dst; /* destination address from packet */
93 u_32_t fi_optmsk; /* bitmask composed from IP options */
94 u_short fi_secmsk; /* bitmask composed from IP security options */
95 u_short fi_auth; /* authentication code from IP sec. options */

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

423# endif
424# ifdef PFIL_HOOKS
425# define NETBSD_PF
426# endif
427#endif
428
429
430#ifndef _KERNEL
431struct ifnet;
430extern int fr_check __P((ip_t *, int, void *, int, mb_t **));
431extern int (*fr_checkp) __P((ip_t *, int, void *, int, mb_t **));
432extern int send_reset __P((ip_t *, struct ifnet *));
433extern int icmp_error __P((ip_t *, struct ifnet *));
434extern int ipf_log __P((void));
435extern int ipfr_fastroute __P((ip_t *, fr_info_t *, frdest_t *));
436extern struct ifnet *get_unit __P((char *));
437# if defined(__NetBSD__) || defined(__OpenBSD__) || \

--- 134 unchanged lines hidden ---
432extern int fr_check __P((ip_t *, int, void *, int, mb_t **));
433extern int (*fr_checkp) __P((ip_t *, int, void *, int, mb_t **));
434extern int send_reset __P((ip_t *, struct ifnet *));
435extern int icmp_error __P((ip_t *, struct ifnet *));
436extern int ipf_log __P((void));
437extern int ipfr_fastroute __P((ip_t *, fr_info_t *, frdest_t *));
438extern struct ifnet *get_unit __P((char *));
439# if defined(__NetBSD__) || defined(__OpenBSD__) || \

--- 134 unchanged lines hidden ---