Deleted Added
full compact
if_ethersubr.c (195699) if_ethersubr.c (195727)
1/*-
2 * Copyright (c) 1982, 1989, 1993
3 * The Regents of the University of California. 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

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

22 * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS
23 * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
24 * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
25 * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
26 * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
27 * SUCH DAMAGE.
28 *
29 * @(#)if_ethersubr.c 8.1 (Berkeley) 6/10/93
1/*-
2 * Copyright (c) 1982, 1989, 1993
3 * The Regents of the University of California. 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

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

22 * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS
23 * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
24 * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
25 * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
26 * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
27 * SUCH DAMAGE.
28 *
29 * @(#)if_ethersubr.c 8.1 (Berkeley) 6/10/93
30 * $FreeBSD: head/sys/net/if_ethersubr.c 195699 2009-07-14 22:48:30Z rwatson $
30 * $FreeBSD: head/sys/net/if_ethersubr.c 195727 2009-07-16 21:13:04Z rwatson $
31 */
32
33#include "opt_atalk.h"
34#include "opt_inet.h"
35#include "opt_inet6.h"
36#include "opt_ipx.h"
37#include "opt_netgraph.h"
38#include "opt_carp.h"

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

144 (bcmp(etherbroadcastaddr, (addr), ETHER_ADDR_LEN) == 0)
145
146#define senderr(e) do { error = (e); goto bad;} while (0)
147
148#if defined(INET) || defined(INET6)
149int
150ether_ipfw_chk(struct mbuf **m0, struct ifnet *dst, int shared);
151static VNET_DEFINE(int, ether_ipfw);
31 */
32
33#include "opt_atalk.h"
34#include "opt_inet.h"
35#include "opt_inet6.h"
36#include "opt_ipx.h"
37#include "opt_netgraph.h"
38#include "opt_carp.h"

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

144 (bcmp(etherbroadcastaddr, (addr), ETHER_ADDR_LEN) == 0)
145
146#define senderr(e) do { error = (e); goto bad;} while (0)
147
148#if defined(INET) || defined(INET6)
149int
150ether_ipfw_chk(struct mbuf **m0, struct ifnet *dst, int shared);
151static VNET_DEFINE(int, ether_ipfw);
152#define V_ether_ipfw VNET_GET(ether_ipfw)
152#define V_ether_ipfw VNET(ether_ipfw)
153#endif
154
155
156/*
157 * Ethernet output routine.
158 * Encapsulate a packet of type family for the local net.
159 * Use trailer local net encapsulation if enough data in first
160 * packet leaves a multiple of 512 bytes of data in remainder.

--- 1181 unchanged lines hidden ---
153#endif
154
155
156/*
157 * Ethernet output routine.
158 * Encapsulate a packet of type family for the local net.
159 * Use trailer local net encapsulation if enough data in first
160 * packet leaves a multiple of 512 bytes of data in remainder.

--- 1181 unchanged lines hidden ---