Deleted Added
full compact
linux_ioctl.c (78161) linux_ioctl.c (83130)
1/*
2 * Copyright (c) 1994-1995 S�ren Schmidt
3 * 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

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

20 * IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY DIRECT, INDIRECT,
21 * INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT
22 * NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
23 * DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
24 * THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
25 * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF
26 * THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
27 *
1/*
2 * Copyright (c) 1994-1995 S�ren Schmidt
3 * 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

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

20 * IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY DIRECT, INDIRECT,
21 * INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT
22 * NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
23 * DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
24 * THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
25 * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF
26 * THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
27 *
28 * $FreeBSD: head/sys/compat/linux/linux_ioctl.c 78161 2001-06-13 10:58:39Z peter $
28 * $FreeBSD: head/sys/compat/linux/linux_ioctl.c 83130 2001-09-06 02:40:43Z jlemon $
29 */
30
31#include <sys/param.h>
32#include <sys/systm.h>
33#include <sys/sysproto.h>
34#include <sys/proc.h>
35#include <sys/cdio.h>
36#include <sys/consio.h>

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

1380 struct ifaddr *ifa;
1381 struct sockaddr_dl *sdl;
1382 struct linux_ifreq *ifr = (struct linux_ifreq *)args->arg;
1383
1384 /* Note that we don't actually respect the name in the ifreq
1385 * structure, as Linux interface names are all different.
1386 */
1387 for (ifn = 0; ifn < if_index; ifn++) {
29 */
30
31#include <sys/param.h>
32#include <sys/systm.h>
33#include <sys/sysproto.h>
34#include <sys/proc.h>
35#include <sys/cdio.h>
36#include <sys/consio.h>

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

1380 struct ifaddr *ifa;
1381 struct sockaddr_dl *sdl;
1382 struct linux_ifreq *ifr = (struct linux_ifreq *)args->arg;
1383
1384 /* Note that we don't actually respect the name in the ifreq
1385 * structure, as Linux interface names are all different.
1386 */
1387 for (ifn = 0; ifn < if_index; ifn++) {
1388 ifp = ifnet_addrs[ifn]->ifa_ifp;
1388 ifp = ifnet_byindex(ifn);
1389 if (ifp->if_type == IFT_ETHER) {
1390 ifa = TAILQ_FIRST(&ifp->if_addrhead);
1391 while (ifa) {
1392 sdl=(struct sockaddr_dl*)ifa->ifa_addr;
1393 if (sdl != NULL &&
1394 (sdl->sdl_family == AF_LINK) &&
1395 (sdl->sdl_type == IFT_ETHER)) {
1396 return (copyout(LLADDR(sdl),

--- 122 unchanged lines hidden ---
1389 if (ifp->if_type == IFT_ETHER) {
1390 ifa = TAILQ_FIRST(&ifp->if_addrhead);
1391 while (ifa) {
1392 sdl=(struct sockaddr_dl*)ifa->ifa_addr;
1393 if (sdl != NULL &&
1394 (sdl->sdl_family == AF_LINK) &&
1395 (sdl->sdl_type == IFT_ETHER)) {
1396 return (copyout(LLADDR(sdl),

--- 122 unchanged lines hidden ---