Deleted Added
full compact
if_ethersubr.c (15885) if_ethersubr.c (16063)
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

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

26 * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS
27 * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
28 * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
29 * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
30 * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
31 * SUCH DAMAGE.
32 *
33 * @(#)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

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

26 * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS
27 * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
28 * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
29 * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
30 * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
31 * SUCH DAMAGE.
32 *
33 * @(#)if_ethersubr.c 8.1 (Berkeley) 6/10/93
34 * $Id: if_ethersubr.c,v 1.15 1996/04/07 17:39:03 bde Exp $
34 * $Id: if_ethersubr.c,v 1.16 1996/05/24 01:35:08 julian Exp $
35 */
36
37#include <sys/param.h>
38#include <sys/systm.h>
39#include <sys/kernel.h>
40#include <sys/malloc.h>
41#include <sys/mbuf.h>
42#include <sys/protosw.h>

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

585{
586 register struct ifaddr *ifa;
587 register struct sockaddr_dl *sdl;
588
589 ifp->if_type = IFT_ETHER;
590 ifp->if_addrlen = 6;
591 ifp->if_hdrlen = 14;
592 ifp->if_mtu = ETHERMTU;
35 */
36
37#include <sys/param.h>
38#include <sys/systm.h>
39#include <sys/kernel.h>
40#include <sys/malloc.h>
41#include <sys/mbuf.h>
42#include <sys/protosw.h>

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

585{
586 register struct ifaddr *ifa;
587 register struct sockaddr_dl *sdl;
588
589 ifp->if_type = IFT_ETHER;
590 ifp->if_addrlen = 6;
591 ifp->if_hdrlen = 14;
592 ifp->if_mtu = ETHERMTU;
593 if (ifp->if_baudrate == 0)
594 ifp->if_baudrate = 10000000;
593 for (ifa = ifp->if_addrlist; ifa; ifa = ifa->ifa_next)
594 if ((sdl = (struct sockaddr_dl *)ifa->ifa_addr) &&
595 sdl->sdl_family == AF_LINK) {
596 sdl->sdl_type = IFT_ETHER;
597 sdl->sdl_alen = ifp->if_addrlen;
598 bcopy((caddr_t)((struct arpcom *)ifp)->ac_enaddr,
599 LLADDR(sdl), ifp->if_addrlen);
600 break;

--- 186 unchanged lines hidden ---
595 for (ifa = ifp->if_addrlist; ifa; ifa = ifa->ifa_next)
596 if ((sdl = (struct sockaddr_dl *)ifa->ifa_addr) &&
597 sdl->sdl_family == AF_LINK) {
598 sdl->sdl_type = IFT_ETHER;
599 sdl->sdl_alen = ifp->if_addrlen;
600 bcopy((caddr_t)((struct arpcom *)ifp)->ac_enaddr,
601 LLADDR(sdl), ifp->if_addrlen);
602 break;

--- 186 unchanged lines hidden ---