Deleted Added
full compact
ip_irc_pxy.c (153872) ip_irc_pxy.c (170263)
1/*
2 * Copyright (C) 2000-2003 Darren Reed
3 *
4 * See the IPFILTER.LICENCE file for details on licencing.
5 *
1/*
2 * Copyright (C) 2000-2003 Darren Reed
3 *
4 * See the IPFILTER.LICENCE file for details on licencing.
5 *
6 * $Id: ip_irc_pxy.c,v 2.39.2.5 2005/12/04 23:39:27 darrenr Exp $
6 * $Id: ip_irc_pxy.c,v 2.39.2.6 2006/07/14 06:12:14 darrenr Exp $
7 */
8
9#define IPF_IRC_PROXY
10
11#define IPF_IRCBUFSZ 96 /* This *MUST* be >= 64! */
12
13
14int ippr_irc_init __P((void));

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

410 nat2 = nat_new(&fi, nat->nat_ptr, NULL,
411 NAT_SLAVE|IPN_TCP|SI_W_DPORT, NAT_OUTBOUND);
412 if (nat2 != NULL) {
413 (void) nat_proto(&fi, nat2, 0);
414 nat_update(&fi, nat2, nat2->nat_ptr);
415
416 (void) fr_addstate(&fi, NULL, SI_W_DPORT);
417 if (fi.fin_state != NULL)
7 */
8
9#define IPF_IRC_PROXY
10
11#define IPF_IRCBUFSZ 96 /* This *MUST* be >= 64! */
12
13
14int ippr_irc_init __P((void));

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

410 nat2 = nat_new(&fi, nat->nat_ptr, NULL,
411 NAT_SLAVE|IPN_TCP|SI_W_DPORT, NAT_OUTBOUND);
412 if (nat2 != NULL) {
413 (void) nat_proto(&fi, nat2, 0);
414 nat_update(&fi, nat2, nat2->nat_ptr);
415
416 (void) fr_addstate(&fi, NULL, SI_W_DPORT);
417 if (fi.fin_state != NULL)
418 fr_statederef(&fi, (ipstate_t **)&fi.fin_state);
418 fr_statederef((ipstate_t **)&fi.fin_state);
419 }
420 ip->ip_src = swip;
421 }
422 return inc;
423}
424
425
426int ippr_irc_out(fin, aps, nat)
427fr_info_t *fin;
428ap_session_t *aps;
429nat_t *nat;
430{
431 aps = aps; /* LINT */
432 return ippr_irc_send(fin, nat);
433}
419 }
420 ip->ip_src = swip;
421 }
422 return inc;
423}
424
425
426int ippr_irc_out(fin, aps, nat)
427fr_info_t *fin;
428ap_session_t *aps;
429nat_t *nat;
430{
431 aps = aps; /* LINT */
432 return ippr_irc_send(fin, nat);
433}