xref: /freebsd/usr.sbin/ppp/udp.h (revision b3e7694832e81d7a904a10f525f8797b753bf0d3)
16815097bSBrian Somers /*-
2*4d846d26SWarner Losh  * SPDX-License-Identifier: BSD-2-Clause
31de7b4b8SPedro F. Giffuni  *
46815097bSBrian Somers  * Copyright (c) 1999 Brian Somers <brian@Awfulhak.org>
56815097bSBrian Somers  * All rights reserved.
66815097bSBrian Somers  *
76815097bSBrian Somers  * Redistribution and use in source and binary forms, with or without
86815097bSBrian Somers  * modification, are permitted provided that the following conditions
96815097bSBrian Somers  * are met:
106815097bSBrian Somers  * 1. Redistributions of source code must retain the above copyright
116815097bSBrian Somers  *    notice, this list of conditions and the following disclaimer.
126815097bSBrian Somers  * 2. Redistributions in binary form must reproduce the above copyright
136815097bSBrian Somers  *    notice, this list of conditions and the following disclaimer in the
146815097bSBrian Somers  *    documentation and/or other materials provided with the distribution.
156815097bSBrian Somers  *
166815097bSBrian Somers  * THIS SOFTWARE IS PROVIDED BY THE AUTHOR AND CONTRIBUTORS ``AS IS'' AND
176815097bSBrian Somers  * ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
186815097bSBrian Somers  * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
196815097bSBrian Somers  * ARE DISCLAIMED.  IN NO EVENT SHALL THE AUTHOR OR CONTRIBUTORS BE LIABLE
206815097bSBrian Somers  * FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
216815097bSBrian Somers  * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS
226815097bSBrian Somers  * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
236815097bSBrian Somers  * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
246815097bSBrian Somers  * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
256815097bSBrian Somers  * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
266815097bSBrian Somers  * SUCH DAMAGE.
276815097bSBrian Somers  */
286815097bSBrian Somers 
296815097bSBrian Somers struct physical;
306815097bSBrian Somers struct device;
316815097bSBrian Somers 
326815097bSBrian Somers extern struct device *udp_Create(struct physical *);
336815097bSBrian Somers extern struct device *udp_iov2device(int, struct physical *,
3487c3786eSBrian Somers                                      struct iovec *, int *, int, int *, int *);
35057f1760SBrian Somers extern unsigned udp_DeviceSize(void);
36