ip_fw2.c (102397) | ip_fw2.c (105194) |
---|---|
1/* 2 * Copyright (c) 2002 Luigi Rizzo, Universita` di Pisa 3 * 4 * Redistribution and use in source and binary forms, with or without 5 * modification, are permitted provided that the following conditions 6 * are met: 7 * 1. Redistributions of source code must retain the above copyright 8 * notice, this list of conditions and the following disclaimer. --- 8 unchanged lines hidden (view full) --- 17 * FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL 18 * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS 19 * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) 20 * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT 21 * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY 22 * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF 23 * SUCH DAMAGE. 24 * | 1/* 2 * Copyright (c) 2002 Luigi Rizzo, Universita` di Pisa 3 * 4 * Redistribution and use in source and binary forms, with or without 5 * modification, are permitted provided that the following conditions 6 * are met: 7 * 1. Redistributions of source code must retain the above copyright 8 * notice, this list of conditions and the following disclaimer. --- 8 unchanged lines hidden (view full) --- 17 * FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL 18 * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS 19 * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) 20 * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT 21 * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY 22 * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF 23 * SUCH DAMAGE. 24 * |
25 * $FreeBSD: head/sys/netinet/ip_fw2.c 102397 2002-08-25 03:50:29Z cjc $ | 25 * $FreeBSD: head/sys/netinet/ip_fw2.c 105194 2002-10-16 01:54:46Z sam $ |
26 */ 27 28#define DEB(x) 29#define DDB(x) x 30 31/* 32 * Implement IP packet firewall (new version) 33 */ --- 1085 unchanged lines hidden (view full) --- 1119 /* 1120 * now fill fields left out earlier 1121 */ 1122 ip->ip_ttl = ip_defttl; 1123 ip->ip_len = m->m_pkthdr.len; 1124 bzero (&sro, sizeof (sro)); 1125 ip_rtaddr(ip->ip_dst, &sro); 1126 m->m_flags |= M_SKIP_FIREWALL; | 26 */ 27 28#define DEB(x) 29#define DDB(x) x 30 31/* 32 * Implement IP packet firewall (new version) 33 */ --- 1085 unchanged lines hidden (view full) --- 1119 /* 1120 * now fill fields left out earlier 1121 */ 1122 ip->ip_ttl = ip_defttl; 1123 ip->ip_len = m->m_pkthdr.len; 1124 bzero (&sro, sizeof (sro)); 1125 ip_rtaddr(ip->ip_dst, &sro); 1126 m->m_flags |= M_SKIP_FIREWALL; |
1127 ip_output(m, NULL, &sro, 0, NULL); | 1127 ip_output(m, NULL, &sro, 0, NULL, NULL); |
1128 if (sro.ro_rt) 1129 RTFREE(sro.ro_rt); 1130} 1131 1132/* 1133 * sends a reject message, consuming the mbuf passed as an argument. 1134 */ 1135static void --- 1635 unchanged lines hidden --- | 1128 if (sro.ro_rt) 1129 RTFREE(sro.ro_rt); 1130} 1131 1132/* 1133 * sends a reject message, consuming the mbuf passed as an argument. 1134 */ 1135static void --- 1635 unchanged lines hidden --- |