Deleted Added
full compact
ip_fw_pfil.c (163548) ip_fw_pfil.c (165648)
1/*-
2 * Copyright (c) 2004 Andre Oppermann, Internet Business Solutions AG
3 * All rights reserved.
4 *
5 * Redistribution and use in source and binary forms, with or without
6 * modification, are permitted provided that the following conditions
7 * are met:
8 * 1. Redistributions of source code must retain the above copyright

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

18 * FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
19 * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS
20 * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
21 * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
22 * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
23 * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
24 * SUCH DAMAGE.
25 *
1/*-
2 * Copyright (c) 2004 Andre Oppermann, Internet Business Solutions AG
3 * All rights reserved.
4 *
5 * Redistribution and use in source and binary forms, with or without
6 * modification, are permitted provided that the following conditions
7 * are met:
8 * 1. Redistributions of source code must retain the above copyright

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

18 * FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
19 * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS
20 * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
21 * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
22 * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
23 * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
24 * SUCH DAMAGE.
25 *
26 * $FreeBSD: head/sys/netinet/ip_fw_pfil.c 163548 2006-10-21 00:16:31Z julian $
26 * $FreeBSD: head/sys/netinet/ip_fw_pfil.c 165648 2006-12-29 21:59:17Z piso $
27 */
28
29#if !defined(KLD_MODULE)
30#include "opt_ipfw.h"
31#include "opt_ipdn.h"
32#include "opt_inet.h"
33#ifndef INET
34#error IPFIREWALL requires INET.

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

184 goto drop;
185 (void)ng_ipfw_input_p(m0, NG_IPFW_IN, &args, 1);
186 goto again; /* continue with packet */
187
188 case IP_FW_NETGRAPH:
189 if (!NG_IPFW_LOADED)
190 goto drop;
191 return ng_ipfw_input_p(m0, NG_IPFW_IN, &args, 0);
27 */
28
29#if !defined(KLD_MODULE)
30#include "opt_ipfw.h"
31#include "opt_ipdn.h"
32#include "opt_inet.h"
33#ifndef INET
34#error IPFIREWALL requires INET.

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

184 goto drop;
185 (void)ng_ipfw_input_p(m0, NG_IPFW_IN, &args, 1);
186 goto again; /* continue with packet */
187
188 case IP_FW_NETGRAPH:
189 if (!NG_IPFW_LOADED)
190 goto drop;
191 return ng_ipfw_input_p(m0, NG_IPFW_IN, &args, 0);
192
193 case IP_FW_NAT:
194 goto again; /* continue with packet */
192
193 default:
194 KASSERT(0, ("%s: unknown retval", __func__));
195 }
196
197drop:
198 if (*m0)
199 m_freem(*m0);

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

310 (void)ng_ipfw_input_p(m0, NG_IPFW_OUT, &args, 1);
311 goto again; /* continue with packet */
312
313 case IP_FW_NETGRAPH:
314 if (!NG_IPFW_LOADED)
315 goto drop;
316 return ng_ipfw_input_p(m0, NG_IPFW_OUT, &args, 0);
317
195
196 default:
197 KASSERT(0, ("%s: unknown retval", __func__));
198 }
199
200drop:
201 if (*m0)
202 m_freem(*m0);

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

313 (void)ng_ipfw_input_p(m0, NG_IPFW_OUT, &args, 1);
314 goto again; /* continue with packet */
315
316 case IP_FW_NETGRAPH:
317 if (!NG_IPFW_LOADED)
318 goto drop;
319 return ng_ipfw_input_p(m0, NG_IPFW_OUT, &args, 0);
320
321 case IP_FW_NAT:
322 goto again; /* continue with packet */
323
318 default:
319 KASSERT(0, ("%s: unknown retval", __func__));
320 }
321
322drop:
323 if (*m0)
324 m_freem(*m0);
325 *m0 = NULL;

--- 236 unchanged lines hidden ---
324 default:
325 KASSERT(0, ("%s: unknown retval", __func__));
326 }
327
328drop:
329 if (*m0)
330 m_freem(*m0);
331 *m0 = NULL;

--- 236 unchanged lines hidden ---