Deleted Added
full compact
if_fwsubr.c (130425) if_fwsubr.c (130429)
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 130425 2004-06-13 19:15:44Z dfr $
30 * $FreeBSD: head/sys/net/if_fwsubr.c 130429 2004-06-13 19:55:16Z dfr $
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>

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

85 uint8_t speed;
86 uint16_t psize, fsize, dsize;
87 struct mbuf *mtail;
88 int unicast, dgl, foff;
89 static int next_dgl;
90
91 GIANT_REQUIRED;
92
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>

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

85 uint8_t speed;
86 uint16_t psize, fsize, dsize;
87 struct mbuf *mtail;
88 int unicast, dgl, foff;
89 static int next_dgl;
90
91 GIANT_REQUIRED;
92
93#ifdef MAC
94 error = mac_check_ifnet_transmit(ifp, m);
95 if (error)
96 goto bad;
97#endif
98
93 if ((ifp->if_flags & (IFF_UP|IFF_RUNNING)) != (IFF_UP|IFF_RUNNING)) {
94 error = ENETDOWN;
95 goto bad;
96 }
97
98 error = rt_check(&rt, &rt0, dst);
99 if (error)
100 goto bad;

--- 695 unchanged lines hidden ---
99 if ((ifp->if_flags & (IFF_UP|IFF_RUNNING)) != (IFF_UP|IFF_RUNNING)) {
100 error = ENETDOWN;
101 goto bad;
102 }
103
104 error = rt_check(&rt, &rt0, dst);
105 if (error)
106 goto bad;

--- 695 unchanged lines hidden ---