Deleted Added
full compact
pf.c (153110) pf.c (153545)
1/* $FreeBSD: head/sys/contrib/pf/net/pf.c 153110 2005-12-05 11:58:35Z ru $ */
1/* $FreeBSD: head/sys/contrib/pf/net/pf.c 153545 2005-12-20 00:33:33Z mlaier $ */
2/* $OpenBSD: pf.c,v 1.483 2005/03/15 17:38:43 dhartmei Exp $ */
3
4/*
5 * Copyright (c) 2001 Daniel Hartmeier
6 * Copyright (c) 2002,2003 Henning Brauer
7 * All rights reserved.
8 *
9 * Redistribution and use in source and binary forms, with or without

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

1097 }
1098 s->src_node = s->nat_src_node = NULL;
1099}
1100
1101void
1102pf_purge_expired_state(struct pf_state *cur)
1103{
1104#ifdef __FreeBSD__
2/* $OpenBSD: pf.c,v 1.483 2005/03/15 17:38:43 dhartmei Exp $ */
3
4/*
5 * Copyright (c) 2001 Daniel Hartmeier
6 * Copyright (c) 2002,2003 Henning Brauer
7 * All rights reserved.
8 *
9 * Redistribution and use in source and binary forms, with or without

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

1097 }
1098 s->src_node = s->nat_src_node = NULL;
1099}
1100
1101void
1102pf_purge_expired_state(struct pf_state *cur)
1103{
1104#ifdef __FreeBSD__
1105 if (cur->sync_flags & PFSTATE_EXPIRING)
1105 if (cur->local_flags & PFSTATE_EXPIRING)
1106 return;
1106 return;
1107 cur->sync_flags |= PFSTATE_EXPIRING;
1107 cur->local_flags |= PFSTATE_EXPIRING;
1108#endif
1109 if (cur->src.state == PF_TCPS_PROXY_DST)
1110 pf_send_tcp(cur->rule.ptr, cur->af,
1111 &cur->ext.addr, &cur->lan.addr,
1112 cur->ext.port, cur->lan.port,
1113 cur->src.seqhi, cur->src.seqlo + 1,
1114 TH_RST|TH_ACK, 0, 0, 0, 1, NULL, NULL);
1115 RB_REMOVE(pf_state_tree_ext_gwy,

--- 5975 unchanged lines hidden ---
1108#endif
1109 if (cur->src.state == PF_TCPS_PROXY_DST)
1110 pf_send_tcp(cur->rule.ptr, cur->af,
1111 &cur->ext.addr, &cur->lan.addr,
1112 cur->ext.port, cur->lan.port,
1113 cur->src.seqhi, cur->src.seqlo + 1,
1114 TH_RST|TH_ACK, 0, 0, 0, 1, NULL, NULL);
1115 RB_REMOVE(pf_state_tree_ext_gwy,

--- 5975 unchanged lines hidden ---