147061Sbrian/*- 247061Sbrian * Copyright (c) 1999 Brian Somers <brian@Awfulhak.org> 347061Sbrian * All rights reserved. 447061Sbrian * 547061Sbrian * Redistribution and use in source and binary forms, with or without 647061Sbrian * modification, are permitted provided that the following conditions 747061Sbrian * are met: 847061Sbrian * 1. Redistributions of source code must retain the above copyright 947061Sbrian * notice, this list of conditions and the following disclaimer. 1047061Sbrian * 2. Redistributions in binary form must reproduce the above copyright 1147061Sbrian * notice, this list of conditions and the following disclaimer in the 1247061Sbrian * documentation and/or other materials provided with the distribution. 1347061Sbrian * 1447061Sbrian * THIS SOFTWARE IS PROVIDED BY THE AUTHOR AND CONTRIBUTORS ``AS IS'' AND 1547061Sbrian * ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE 1647061Sbrian * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE 1747061Sbrian * ARE DISCLAIMED. IN NO EVENT SHALL THE AUTHOR OR CONTRIBUTORS BE LIABLE 1847061Sbrian * FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL 1947061Sbrian * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS 2047061Sbrian * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) 2147061Sbrian * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT 2247061Sbrian * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY 2347061Sbrian * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF 2447061Sbrian * SUCH DAMAGE. 2547061Sbrian * 2650479Speter * $FreeBSD: releng/11.0/usr.sbin/ppp/udp.h 134789 2004-09-05 01:46:52Z brian $ 2747061Sbrian */ 2847061Sbrian 2947061Sbrianstruct physical; 3047061Sbrianstruct device; 3147061Sbrian 3247061Sbrianextern struct device *udp_Create(struct physical *); 3347061Sbrianextern struct device *udp_iov2device(int, struct physical *, 3452942Sbrian struct iovec *, int *, int, int *, int *); 35134789Sbrianextern unsigned udp_DeviceSize(void); 36