if_iso88025subr.c (78295) | if_iso88025subr.c (83130) |
---|---|
1/* 2 * Copyright (c) 1998, Larry Lile 3 * All rights reserved. 4 * 5 * For latest sources and information on this driver, please 6 * go to http://anarchy.stdio.com. 7 * 8 * Questions, comments or suggestions should be directed to --- 16 unchanged lines hidden (view full) --- 25 * FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL 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 * | 1/* 2 * Copyright (c) 1998, Larry Lile 3 * All rights reserved. 4 * 5 * For latest sources and information on this driver, please 6 * go to http://anarchy.stdio.com. 7 * 8 * Questions, comments or suggestions should be directed to --- 16 unchanged lines hidden (view full) --- 25 * FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL 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 * $FreeBSD: head/sys/net/if_iso88025subr.c 78295 2001-06-15 21:00:32Z jlemon $ | 33 * $FreeBSD: head/sys/net/if_iso88025subr.c 83130 2001-09-06 02:40:43Z jlemon $ |
34 * 35 */ 36 37/* 38 * 39 * General ISO 802.5 (Token Ring) support routines 40 * 41 */ --- 55 unchanged lines hidden (view full) --- 97 ifp->if_type = IFT_ISO88025; 98 ifp->if_addrlen = ISO88025_ADDR_LEN; 99 ifp->if_hdrlen = ISO88025_HDR_LEN; 100 if (ifp->if_baudrate == 0) 101 ifp->if_baudrate = TR_16MBPS; /* 16Mbit should be a safe default */ 102 if (ifp->if_mtu == 0) 103 ifp->if_mtu = ISO88025_DEFAULT_MTU; 104 | 34 * 35 */ 36 37/* 38 * 39 * General ISO 802.5 (Token Ring) support routines 40 * 41 */ --- 55 unchanged lines hidden (view full) --- 97 ifp->if_type = IFT_ISO88025; 98 ifp->if_addrlen = ISO88025_ADDR_LEN; 99 ifp->if_hdrlen = ISO88025_HDR_LEN; 100 if (ifp->if_baudrate == 0) 101 ifp->if_baudrate = TR_16MBPS; /* 16Mbit should be a safe default */ 102 if (ifp->if_mtu == 0) 103 ifp->if_mtu = ISO88025_DEFAULT_MTU; 104 |
105 ifa = ifnet_addrs[ifp->if_index - 1]; | 105 ifa = ifaddr_byindex(ifp->if_index); |
106 if (ifa == 0) { 107 printf("iso88025_ifattach: no lladdr!\n"); 108 return; 109 } 110 sdl = (struct sockaddr_dl *)ifa->ifa_addr; 111 sdl->sdl_type = IFT_ISO88025; 112 sdl->sdl_alen = ifp->if_addrlen; 113 bcopy(((struct arpcom *)ifp)->ac_enaddr, LLADDR(sdl), ifp->if_addrlen); --- 456 unchanged lines hidden --- | 106 if (ifa == 0) { 107 printf("iso88025_ifattach: no lladdr!\n"); 108 return; 109 } 110 sdl = (struct sockaddr_dl *)ifa->ifa_addr; 111 sdl->sdl_type = IFT_ISO88025; 112 sdl->sdl_alen = ifp->if_addrlen; 113 bcopy(((struct arpcom *)ifp)->ac_enaddr, LLADDR(sdl), ifp->if_addrlen); --- 456 unchanged lines hidden --- |