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