Deleted Added
full compact
if_fddisubr.c (128636) if_fddisubr.c (130549)
1/*
2 * Copyright (c) 1995, 1996
3 * Matt Thomas <matt@3am-software.com>. All rights reserved.
4 * Copyright (c) 1982, 1989, 1993
5 * The Regents of the University of California. All rights reserved.
6 *
7 * Redistribution and use in source and binary forms, with or without
8 * modification, are permitted provided that the following conditions

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

28 * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS
29 * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
30 * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
31 * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
32 * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
33 * SUCH DAMAGE.
34 *
35 * from: if_ethersubr.c,v 1.5 1994/12/13 22:31:45 wollman Exp
1/*
2 * Copyright (c) 1995, 1996
3 * Matt Thomas <matt@3am-software.com>. All rights reserved.
4 * Copyright (c) 1982, 1989, 1993
5 * The Regents of the University of California. All rights reserved.
6 *
7 * Redistribution and use in source and binary forms, with or without
8 * modification, are permitted provided that the following conditions

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

28 * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS
29 * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
30 * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
31 * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
32 * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
33 * SUCH DAMAGE.
34 *
35 * from: if_ethersubr.c,v 1.5 1994/12/13 22:31:45 wollman Exp
36 * $FreeBSD: head/sys/net/if_fddisubr.c 128636 2004-04-25 09:24:52Z luigi $
36 * $FreeBSD: head/sys/net/if_fddisubr.c 130549 2004-06-15 23:57:42Z mlaier $
37 */
38
39#include "opt_atalk.h"
40#include "opt_inet.h"
41#include "opt_inet6.h"
42#include "opt_ipx.h"
43#include "opt_mac.h"
44

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

329 } else if (bcmp(fh->fddi_dhost, fh->fddi_shost,
330 FDDI_ADDR_LEN) == 0) {
331 (void) if_simloop(ifp, m, dst->sa_family,
332 FDDI_HDR_LEN);
333 return (0); /* XXX */
334 }
335 }
336
37 */
38
39#include "opt_atalk.h"
40#include "opt_inet.h"
41#include "opt_inet6.h"
42#include "opt_ipx.h"
43#include "opt_mac.h"
44

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

329 } else if (bcmp(fh->fddi_dhost, fh->fddi_shost,
330 FDDI_ADDR_LEN) == 0) {
331 (void) if_simloop(ifp, m, dst->sa_family,
332 FDDI_HDR_LEN);
333 return (0); /* XXX */
334 }
335 }
336
337 if (! IF_HANDOFF(&ifp->if_snd, m, ifp))
338 senderr(ENOBUFS);
337 IFQ_HANDOFF(ifp, m, error);
338 if (error)
339 ifp->if_oerrors++;
340
339 return (error);
340
341bad:
342 ifp->if_oerrors++;
343 if (m)
344 m_freem(m);
345 return (error);
346}

--- 436 unchanged lines hidden ---
341 return (error);
342
343bad:
344 ifp->if_oerrors++;
345 if (m)
346 m_freem(m);
347 return (error);
348}

--- 436 unchanged lines hidden ---