ip_fw2.c (172930) | ip_fw2.c (173018) |
---|---|
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. --- 10 unchanged lines hidden (view full) --- 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 26#include <sys/cdefs.h> | 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. --- 10 unchanged lines hidden (view full) --- 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 26#include <sys/cdefs.h> |
27__FBSDID("$FreeBSD: head/sys/netinet/ip_fw2.c 172930 2007-10-24 19:04:04Z rwatson $"); | 27__FBSDID("$FreeBSD: head/sys/netinet/ip_fw2.c 173018 2007-10-26 13:18:38Z rwatson $"); |
28 29#define DEB(x) 30#define DDB(x) x 31 32/* 33 * Implement IP packet firewall (new version) 34 */ 35 --- 1580 unchanged lines hidden (view full) --- 1616 if (m == 0) 1617 return (NULL); 1618 m->m_pkthdr.rcvif = (struct ifnet *)0; 1619 1620#ifdef MAC 1621 if (replyto != NULL) 1622 mac_mbuf_create_netlayer(replyto, m); 1623 else | 28 29#define DEB(x) 30#define DDB(x) x 31 32/* 33 * Implement IP packet firewall (new version) 34 */ 35 --- 1580 unchanged lines hidden (view full) --- 1616 if (m == 0) 1617 return (NULL); 1618 m->m_pkthdr.rcvif = (struct ifnet *)0; 1619 1620#ifdef MAC 1621 if (replyto != NULL) 1622 mac_mbuf_create_netlayer(replyto, m); 1623 else |
1624 mac_mbuf_create_from_firewall(m); | 1624 mac_netinet_firewall_send(m); |
1625#else 1626 (void)replyto; /* don't warn about unused arg */ 1627#endif 1628 1629 m->m_pkthdr.len = m->m_len = sizeof(struct ip) + sizeof(struct tcphdr); 1630 m->m_data += max_linkhdr; 1631 1632 ip = mtod(m, struct ip *); --- 3425 unchanged lines hidden --- | 1625#else 1626 (void)replyto; /* don't warn about unused arg */ 1627#endif 1628 1629 m->m_pkthdr.len = m->m_len = sizeof(struct ip) + sizeof(struct tcphdr); 1630 m->m_data += max_linkhdr; 1631 1632 ip = mtod(m, struct ip *); --- 3425 unchanged lines hidden --- |