Deleted Added
full compact
if_fwsubr.c (275196) if_fwsubr.c (275211)
1/*-
2 * Copyright (c) 2004 Doug Rabson
3 * Copyright (c) 1982, 1989, 1993
4 * The Regents of the University of California. All rights reserved.
5 *
6 * Redistribution and use in source and binary forms, with or without
7 * modification, are permitted provided that the following conditions
8 * are met:

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

22 * FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
23 * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS
24 * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
25 * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
26 * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
27 * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
28 * SUCH DAMAGE.
29 *
1/*-
2 * Copyright (c) 2004 Doug Rabson
3 * Copyright (c) 1982, 1989, 1993
4 * The Regents of the University of California. All rights reserved.
5 *
6 * Redistribution and use in source and binary forms, with or without
7 * modification, are permitted provided that the following conditions
8 * are met:

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

22 * FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
23 * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS
24 * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
25 * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
26 * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
27 * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
28 * SUCH DAMAGE.
29 *
30 * $FreeBSD: head/sys/net/if_fwsubr.c 275196 2014-11-27 23:06:25Z melifaro $
30 * $FreeBSD: head/sys/net/if_fwsubr.c 275211 2014-11-28 14:51:49Z bz $
31 */
32
33#include "opt_inet.h"
34#include "opt_inet6.h"
35
36#include <sys/param.h>
37#include <sys/systm.h>
38#include <sys/kernel.h>

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

84 struct m_tag *mtag;
85 union fw_encap *enc;
86 struct fw_hwaddr *destfw;
87 uint8_t speed;
88 uint16_t psize, fsize, dsize;
89 struct mbuf *mtail;
90 int unicast, dgl, foff;
91 static int next_dgl;
31 */
32
33#include "opt_inet.h"
34#include "opt_inet6.h"
35
36#include <sys/param.h>
37#include <sys/systm.h>
38#include <sys/kernel.h>

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

84 struct m_tag *mtag;
85 union fw_encap *enc;
86 struct fw_hwaddr *destfw;
87 uint8_t speed;
88 uint16_t psize, fsize, dsize;
89 struct mbuf *mtail;
90 int unicast, dgl, foff;
91 static int next_dgl;
92#ifdef INET
92 int is_gw;
93 int is_gw;
94#endif
93
94#ifdef MAC
95 error = mac_ifnet_check_transmit(ifp, m);
96 if (error)
97 goto bad;
98#endif
99
100 if (!((ifp->if_flags & IFF_UP) &&

--- 755 unchanged lines hidden ---
95
96#ifdef MAC
97 error = mac_ifnet_check_transmit(ifp, m);
98 if (error)
99 goto bad;
100#endif
101
102 if (!((ifp->if_flags & IFF_UP) &&

--- 755 unchanged lines hidden ---