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 111119 2003-02-19 05:47:46Z imp $
29 */
30
31#include <sys/param.h>
32#include <sys/systm.h>
33#include <sys/sysproto.h>
34#include <sys/cdio.h>
35#include <sys/dvdio.h>
36#include <sys/consio.h>
--- 1982 unchanged lines hidden (view full) ---
2019 if (uio.uio_resid <= 0)
2020 break;
2021
2022 if (sa->sa_family == AF_INET) {
2023 ifr.ifr_addr.sa_family = LINUX_AF_INET;
2024 memcpy(ifr.ifr_addr.sa_data, sa->sa_data,
2025 sizeof(ifr.ifr_addr.sa_data));
2026
2027 error = uiomove((caddr_t)&ifr, sizeof ifr,
2028 &uio);
2029 if (error != 0) {
2030 IFNET_RUNLOCK();
2031 return (error);
2032 }
2033 }
2034 }
2035 }
2036 IFNET_RUNLOCK();
--- 426 unchanged lines hidden ---
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 111119 2003-02-19 05:47:46Z imp $
29 */
30
31#include <sys/param.h>
32#include <sys/systm.h>
33#include <sys/sysproto.h>
34#include <sys/cdio.h>
35#include <sys/dvdio.h>
36#include <sys/consio.h>
--- 1982 unchanged lines hidden (view full) ---
2019 if (uio.uio_resid <= 0)
2020 break;
2021
2022 if (sa->sa_family == AF_INET) {
2023 ifr.ifr_addr.sa_family = LINUX_AF_INET;
2024 memcpy(ifr.ifr_addr.sa_data, sa->sa_data,
2025 sizeof(ifr.ifr_addr.sa_data));
2026
2027 error = uiomove((caddr_t)&ifr, sizeof ifr,
2028 &uio);
2029 if (error != 0) {
2030 IFNET_RUNLOCK();
2031 return (error);
2032 }
2033 }
2034 }
2035 }
2036 IFNET_RUNLOCK();
--- 426 unchanged lines hidden ---