1*10613e2fSozaki-r /* $NetBSD: ndp_hostops.c,v 1.1 2015/08/03 09:51:40 ozaki-r Exp $ */ 2*10613e2fSozaki-r 3*10613e2fSozaki-r /* 4*10613e2fSozaki-r * Copyright (c) 2015 The NetBSD Foundation, Inc. 5*10613e2fSozaki-r * All rights reserved. 6*10613e2fSozaki-r * 7*10613e2fSozaki-r * Redistribution and use in source and binary forms, with or without 8*10613e2fSozaki-r * modification, are permitted provided that the following conditions 9*10613e2fSozaki-r * are met: 10*10613e2fSozaki-r * 1. Redistributions of source code must retain the above copyright 11*10613e2fSozaki-r * notice, this list of conditions and the following disclaimer. 12*10613e2fSozaki-r * 2. Redistributions in binary form must reproduce the above copyright 13*10613e2fSozaki-r * notice, this list of conditions and the following disclaimer in the 14*10613e2fSozaki-r * documentation and/or other materials provided with the distribution. 15*10613e2fSozaki-r * 16*10613e2fSozaki-r * THIS SOFTWARE IS PROVIDED BY THE NETBSD FOUNDATION, INC. AND CONTRIBUTORS 17*10613e2fSozaki-r * ``AS IS'' AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED 18*10613e2fSozaki-r * TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR 19*10613e2fSozaki-r * PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE FOUNDATION OR CONTRIBUTORS 20*10613e2fSozaki-r * BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR 21*10613e2fSozaki-r * CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF 22*10613e2fSozaki-r * SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS 23*10613e2fSozaki-r * INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN 24*10613e2fSozaki-r * CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) 25*10613e2fSozaki-r * ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE 26*10613e2fSozaki-r * POSSIBILITY OF SUCH DAMAGE. 27*10613e2fSozaki-r */ 28*10613e2fSozaki-r 29*10613e2fSozaki-r #include <sys/cdefs.h> 30*10613e2fSozaki-r #ifndef lint 31*10613e2fSozaki-r __RCSID("$NetBSD: ndp_hostops.c,v 1.1 2015/08/03 09:51:40 ozaki-r Exp $"); 32*10613e2fSozaki-r #endif /* !lint */ 33*10613e2fSozaki-r 34*10613e2fSozaki-r #include <sys/types.h> 35*10613e2fSozaki-r #include <sys/socket.h> 36*10613e2fSozaki-r #include <sys/sysctl.h> 37*10613e2fSozaki-r #include <sys/ioctl.h> 38*10613e2fSozaki-r 39*10613e2fSozaki-r #include <fcntl.h> 40*10613e2fSozaki-r #include <unistd.h> 41*10613e2fSozaki-r 42*10613e2fSozaki-r #include "prog_ops.h" 43*10613e2fSozaki-r 44*10613e2fSozaki-r const struct prog_ops prog_ops = { 45*10613e2fSozaki-r .op_socket = socket, 46*10613e2fSozaki-r .op_open = open, 47*10613e2fSozaki-r .op_close = close, 48*10613e2fSozaki-r .op_getpid = getpid, 49*10613e2fSozaki-r 50*10613e2fSozaki-r .op_read = read, 51*10613e2fSozaki-r .op_write = write, 52*10613e2fSozaki-r 53*10613e2fSozaki-r .op_sysctl = sysctl, 54*10613e2fSozaki-r .op_ioctl = ioctl, 55*10613e2fSozaki-r }; 56