Deleted Added
full compact
ip_pptp_pxy.c (161351) ip_pptp_pxy.c (170263)
1/*
2 * Copyright (C) 2002-2003 by Darren Reed
3 *
4 * Simple PPTP transparent proxy for in-kernel use. For use with the NAT
5 * code.
6 *
1/*
2 * Copyright (C) 2002-2003 by Darren Reed
3 *
4 * Simple PPTP transparent proxy for in-kernel use. For use with the NAT
5 * code.
6 *
7 * $Id: ip_pptp_pxy.c,v 2.10.2.13 2006/03/17 10:40:05 darrenr Exp $
7 * $Id: ip_pptp_pxy.c,v 2.10.2.15 2006/10/31 12:11:23 darrenr Exp $
8 *
9 */
10#define IPF_PPTP_PROXY
11
12typedef struct pptp_hdr {
13 u_short pptph_len;
14 u_short pptph_type;
15 u_32_t pptph_cookie;

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

73 MUTEX_DESTROY(&pptpfr.fr_lock);
74 pptp_proxy_init = 0;
75 }
76}
77
78
79/*
80 * Setup for a new PPTP proxy.
8 *
9 */
10#define IPF_PPTP_PROXY
11
12typedef struct pptp_hdr {
13 u_short pptph_len;
14 u_short pptph_type;
15 u_32_t pptph_cookie;

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

73 MUTEX_DESTROY(&pptpfr.fr_lock);
74 pptp_proxy_init = 0;
75 }
76}
77
78
79/*
80 * Setup for a new PPTP proxy.
81 *
82 * NOTE: The printf's are broken up with %s in them to prevent them being
83 * optimised into puts statements on FreeBSD (this doesn't exist in the kernel)
81 */
82int ippr_pptp_new(fin, aps, nat)
83fr_info_t *fin;
84ap_session_t *aps;
85nat_t *nat;
86{
87 pptp_pxy_t *pptp;
88 ipnat_t *ipn;

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

215 fi.fin_fi.fi_daddr = nat2->nat_inip.s_addr;
216 else
217 fi.fin_fi.fi_saddr = nat2->nat_inip.s_addr;
218 }
219 fi.fin_ifp = NULL;
220 pptp->pptp_state = fr_addstate(&fi, &pptp->pptp_state,
221 0);
222 if (fi.fin_state != NULL)
84 */
85int ippr_pptp_new(fin, aps, nat)
86fr_info_t *fin;
87ap_session_t *aps;
88nat_t *nat;
89{
90 pptp_pxy_t *pptp;
91 ipnat_t *ipn;

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

218 fi.fin_fi.fi_daddr = nat2->nat_inip.s_addr;
219 else
220 fi.fin_fi.fi_saddr = nat2->nat_inip.s_addr;
221 }
222 fi.fin_ifp = NULL;
223 pptp->pptp_state = fr_addstate(&fi, &pptp->pptp_state,
224 0);
225 if (fi.fin_state != NULL)
223 fr_statederef(&fi, (ipstate_t **)&fi.fin_state);
226 fr_statederef((ipstate_t **)&fi.fin_state);
224 }
225 ip->ip_p = p;
226 return;
227}
228
229
230/*
231 * Try and build up the next PPTP message in the TCP stream and if we can

--- 296 unchanged lines hidden ---
227 }
228 ip->ip_p = p;
229 return;
230}
231
232
233/*
234 * Try and build up the next PPTP message in the TCP stream and if we can

--- 296 unchanged lines hidden ---