ip_proxy.h (80482) | ip_proxy.h (92685) |
---|---|
1/* 2 * Copyright (C) 1997-2001 by Darren Reed. 3 * 4 * See the IPFILTER.LICENCE file for details on licencing. 5 * 6 * $Id: ip_proxy.h,v 2.8.2.4 2000/12/02 00:15:03 darrenr Exp $ | 1/* 2 * Copyright (C) 1997-2001 by Darren Reed. 3 * 4 * See the IPFILTER.LICENCE file for details on licencing. 5 * 6 * $Id: ip_proxy.h,v 2.8.2.4 2000/12/02 00:15:03 darrenr Exp $ |
7 * $FreeBSD: head/sys/contrib/ipfilter/netinet/ip_proxy.h 80482 2001-07-28 11:58:26Z darrenr $ | 7 * $FreeBSD: head/sys/contrib/ipfilter/netinet/ip_proxy.h 92685 2002-03-19 11:44:16Z darrenr $ |
8 */ 9 10#ifndef __IP_PROXY_H__ 11#define __IP_PROXY_H__ 12 13#ifndef SOLARIS 14#define SOLARIS (defined(sun) && (defined(__svr4__) || defined(__SVR4))) 15#endif --- 54 unchanged lines hidden (view full) --- 70 char apr_label[APR_LABELLEN]; /* Proxy label # */ 71 u_char apr_p; /* protocol */ 72 int apr_ref; /* +1 per rule referencing it */ 73 int apr_flags; 74 int (* apr_init) __P((void)); 75 void (* apr_fini) __P((void)); 76 int (* apr_new) __P((fr_info_t *, ip_t *, 77 ap_session_t *, struct nat *)); | 8 */ 9 10#ifndef __IP_PROXY_H__ 11#define __IP_PROXY_H__ 12 13#ifndef SOLARIS 14#define SOLARIS (defined(sun) && (defined(__svr4__) || defined(__SVR4))) 15#endif --- 54 unchanged lines hidden (view full) --- 70 char apr_label[APR_LABELLEN]; /* Proxy label # */ 71 u_char apr_p; /* protocol */ 72 int apr_ref; /* +1 per rule referencing it */ 73 int apr_flags; 74 int (* apr_init) __P((void)); 75 void (* apr_fini) __P((void)); 76 int (* apr_new) __P((fr_info_t *, ip_t *, 77 ap_session_t *, struct nat *)); |
78 void (* apr_del) __P((ap_session_t *)); |
|
78 int (* apr_inpkt) __P((fr_info_t *, ip_t *, 79 ap_session_t *, struct nat *)); 80 int (* apr_outpkt) __P((fr_info_t *, ip_t *, 81 ap_session_t *, struct nat *)); | 79 int (* apr_inpkt) __P((fr_info_t *, ip_t *, 80 ap_session_t *, struct nat *)); 81 int (* apr_outpkt) __P((fr_info_t *, ip_t *, 82 ap_session_t *, struct nat *)); |
83 int (* apr_match) __P((fr_info_t *, ap_session_t *, struct nat *)); |
|
82} aproxy_t; 83 84#define APR_DELETE 1 85 86#define APR_ERR(x) (((x) & 0xffff) << 16) 87#define APR_EXIT(x) (((x) >> 16) & 0xffff) 88#define APR_INC(x) ((x) & 0xffff) 89 90#define FTP_BUFSZ 160 91/* 92 * For the ftp proxy. 93 */ 94typedef struct ftpside { 95 char *ftps_rptr; 96 char *ftps_wptr; 97 u_32_t ftps_seq; 98 u_32_t ftps_len; 99 int ftps_junk; | 84} aproxy_t; 85 86#define APR_DELETE 1 87 88#define APR_ERR(x) (((x) & 0xffff) << 16) 89#define APR_EXIT(x) (((x) >> 16) & 0xffff) 90#define APR_INC(x) ((x) & 0xffff) 91 92#define FTP_BUFSZ 160 93/* 94 * For the ftp proxy. 95 */ 96typedef struct ftpside { 97 char *ftps_rptr; 98 char *ftps_wptr; 99 u_32_t ftps_seq; 100 u_32_t ftps_len; 101 int ftps_junk; |
102 int ftps_cmds; |
|
100 char ftps_buf[FTP_BUFSZ]; 101} ftpside_t; 102 103typedef struct ftpinfo { 104 int ftp_passok; 105 int ftp_incok; 106 ftpside_t ftp_side[2]; 107} ftpinfo_t; 108 109/* 110 * Real audio proxy structure and #defines 111 */ | 103 char ftps_buf[FTP_BUFSZ]; 104} ftpside_t; 105 106typedef struct ftpinfo { 107 int ftp_passok; 108 int ftp_incok; 109 ftpside_t ftp_side[2]; 110} ftpinfo_t; 111 112/* 113 * Real audio proxy structure and #defines 114 */ |
112typedef struct { | 115typedef struct raudio_s { |
113 int rap_seenpna; 114 int rap_seenver; 115 int rap_version; 116 int rap_eos; /* End Of Startup */ 117 int rap_gotid; 118 int rap_gotlen; 119 int rap_mode; 120 int rap_sdone; --- 11 unchanged lines hidden (view full) --- 132#define RA_ID_UDP 1 133#define RA_ID_ROBUST 7 134 135#define RAP_M_UDP 1 136#define RAP_M_ROBUST 2 137#define RAP_M_TCP 4 138#define RAP_M_UDP_ROBUST (RAP_M_UDP|RAP_M_ROBUST) 139 | 116 int rap_seenpna; 117 int rap_seenver; 118 int rap_version; 119 int rap_eos; /* End Of Startup */ 120 int rap_gotid; 121 int rap_gotlen; 122 int rap_mode; 123 int rap_sdone; --- 11 unchanged lines hidden (view full) --- 135#define RA_ID_UDP 1 136#define RA_ID_ROBUST 7 137 138#define RAP_M_UDP 1 139#define RAP_M_ROBUST 2 140#define RAP_M_TCP 4 141#define RAP_M_UDP_ROBUST (RAP_M_UDP|RAP_M_ROBUST) 142 |
143/* 144 * IPSec proxy 145 */ 146typedef u_32_t ipsec_cookie_t[2]; |
|
140 | 147 |
148typedef struct ipsec_pxy { 149 ipsec_cookie_t ipsc_icookie; 150 ipsec_cookie_t ipsc_rcookie; 151 int ipsc_rckset; 152 ipnat_t ipsc_rule; 153 nat_t *ipsc_nat; 154 ipstate_t *ipsc_state; 155} ipsec_pxy_t; 156 |
|
141extern ap_session_t *ap_sess_tab[AP_SESS_SIZE]; 142extern ap_session_t *ap_sess_list; 143extern aproxy_t ap_proxies[]; 144extern int ippr_ftp_pasvonly; 145 146extern int appr_add __P((aproxy_t *)); 147extern int appr_del __P((aproxy_t *)); 148extern int appr_init __P((void)); 149extern void appr_unload __P((void)); 150extern int appr_ok __P((ip_t *, tcphdr_t *, struct ipnat *)); | 157extern ap_session_t *ap_sess_tab[AP_SESS_SIZE]; 158extern ap_session_t *ap_sess_list; 159extern aproxy_t ap_proxies[]; 160extern int ippr_ftp_pasvonly; 161 162extern int appr_add __P((aproxy_t *)); 163extern int appr_del __P((aproxy_t *)); 164extern int appr_init __P((void)); 165extern void appr_unload __P((void)); 166extern int appr_ok __P((ip_t *, tcphdr_t *, struct ipnat *)); |
167extern int appr_match __P((fr_info_t *, struct nat *)); |
|
151extern void appr_free __P((aproxy_t *)); 152extern void aps_free __P((ap_session_t *)); 153extern int appr_check __P((ip_t *, fr_info_t *, struct nat *)); | 168extern void appr_free __P((aproxy_t *)); 169extern void aps_free __P((ap_session_t *)); 170extern int appr_check __P((ip_t *, fr_info_t *, struct nat *)); |
154extern aproxy_t *appr_match __P((u_int, char *)); | 171extern aproxy_t *appr_lookup __P((u_int, char *)); 172extern int appr_new __P((fr_info_t *, ip_t *, struct nat *)); |
155 156#endif /* __IP_PROXY_H__ */ | 173 174#endif /* __IP_PROXY_H__ */ |