if_fddisubr.c (15117) | if_fddisubr.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 * from: if_ethersubr.c,v 1.5 1994/12/13 22:31:45 wollman Exp | 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 * from: if_ethersubr.c,v 1.5 1994/12/13 22:31:45 wollman Exp |
34 * $Id: if_fddisubr.c,v 1.6 1995/10/26 20:30:11 julian Exp $ | 34 * $Id: if_fddisubr.c,v 1.7 1996/04/07 17:39:04 bde 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> --- 521 unchanged lines hidden (view full) --- 564{ 565 register struct ifaddr *ifa; 566 register struct sockaddr_dl *sdl; 567 568 ifp->if_type = IFT_FDDI; 569 ifp->if_addrlen = 6; 570 ifp->if_hdrlen = 21; 571 ifp->if_mtu = FDDIMTU; | 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> --- 521 unchanged lines hidden (view full) --- 564{ 565 register struct ifaddr *ifa; 566 register struct sockaddr_dl *sdl; 567 568 ifp->if_type = IFT_FDDI; 569 ifp->if_addrlen = 6; 570 ifp->if_hdrlen = 21; 571 ifp->if_mtu = FDDIMTU; |
572 ifp->if_baudrate = 100000000; |
|
572 for (ifa = ifp->if_addrlist; ifa; ifa = ifa->ifa_next) 573 if ((sdl = (struct sockaddr_dl *)ifa->ifa_addr) && 574 sdl->sdl_family == AF_LINK) { 575 sdl->sdl_type = IFT_FDDI; 576 sdl->sdl_alen = ifp->if_addrlen; 577 bcopy((caddr_t)((struct arpcom *)ifp)->ac_enaddr, 578 LLADDR(sdl), ifp->if_addrlen); 579 break; 580 } 581} | 573 for (ifa = ifp->if_addrlist; ifa; ifa = ifa->ifa_next) 574 if ((sdl = (struct sockaddr_dl *)ifa->ifa_addr) && 575 sdl->sdl_family == AF_LINK) { 576 sdl->sdl_type = IFT_FDDI; 577 sdl->sdl_alen = ifp->if_addrlen; 578 bcopy((caddr_t)((struct arpcom *)ifp)->ac_enaddr, 579 LLADDR(sdl), ifp->if_addrlen); 580 break; 581 } 582} |