if_fddisubr.c (71959) | if_fddisubr.c (71999) |
---|---|
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 71959 2001-02-03 11:46:35Z phk $ | 36 * $FreeBSD: head/sys/net/if_fddisubr.c 71999 2001-02-04 13:13:25Z phk $ |
37 */ 38 39#include "opt_atalk.h" 40#include "opt_inet.h" 41#include "opt_inet6.h" 42#include "opt_ipx.h" 43 44#include <sys/param.h> --- 487 unchanged lines hidden (view full) --- 532#if defined(__FreeBSD__) 533 ifa = ifnet_addrs[ifp->if_index - 1]; 534 sdl = (struct sockaddr_dl *)ifa->ifa_addr; 535 sdl->sdl_type = IFT_FDDI; 536 sdl->sdl_alen = ifp->if_addrlen; 537 bcopy(((struct arpcom *)ifp)->ac_enaddr, LLADDR(sdl), ifp->if_addrlen); 538#elif defined(__NetBSD__) 539 LIST_INIT(&((struct arpcom *)ifp)->ac_multiaddrs); | 37 */ 38 39#include "opt_atalk.h" 40#include "opt_inet.h" 41#include "opt_inet6.h" 42#include "opt_ipx.h" 43 44#include <sys/param.h> --- 487 unchanged lines hidden (view full) --- 532#if defined(__FreeBSD__) 533 ifa = ifnet_addrs[ifp->if_index - 1]; 534 sdl = (struct sockaddr_dl *)ifa->ifa_addr; 535 sdl->sdl_type = IFT_FDDI; 536 sdl->sdl_alen = ifp->if_addrlen; 537 bcopy(((struct arpcom *)ifp)->ac_enaddr, LLADDR(sdl), ifp->if_addrlen); 538#elif defined(__NetBSD__) 539 LIST_INIT(&((struct arpcom *)ifp)->ac_multiaddrs); |
540 for (ifa = TAILQ_FIRST(&ifp->if_addrlist); ifa != NULL; ifa = TAILQ_NEXT(ifa, ifa_list)) | 540 TAILQ_FOREACH(ifa, &ifp->if_addrlist, ifa_list) |
541#else 542 for (ifa = ifp->if_addrlist; ifa != NULL; ifa = ifa->ifa_next) 543#endif 544#if !defined(__FreeBSD__) 545 if ((sdl = (struct sockaddr_dl *)ifa->ifa_addr) && 546 sdl->sdl_family == AF_LINK) { 547 sdl->sdl_type = IFT_FDDI; 548 sdl->sdl_alen = ifp->if_addrlen; --- 89 unchanged lines hidden --- | 541#else 542 for (ifa = ifp->if_addrlist; ifa != NULL; ifa = ifa->ifa_next) 543#endif 544#if !defined(__FreeBSD__) 545 if ((sdl = (struct sockaddr_dl *)ifa->ifa_addr) && 546 sdl->sdl_family == AF_LINK) { 547 sdl->sdl_type = IFT_FDDI; 548 sdl->sdl_alen = ifp->if_addrlen; --- 89 unchanged lines hidden --- |