193418Sbrian/*- 2330449Seadler * SPDX-License-Identifier: BSD-2-Clause-FreeBSD 3330449Seadler * 493418Sbrian * Copyright (c) 2000 Brian Somers <brian@Awfulhak.org> 593418Sbrian * All rights reserved. 693418Sbrian * 793418Sbrian * Redistribution and use in source and binary forms, with or without 893418Sbrian * modification, are permitted provided that the following conditions 993418Sbrian * are met: 1093418Sbrian * 1. Redistributions of source code must retain the above copyright 1193418Sbrian * notice, this list of conditions and the following disclaimer. 1293418Sbrian * 2. Redistributions in binary form must reproduce the above copyright 1393418Sbrian * notice, this list of conditions and the following disclaimer in the 1493418Sbrian * documentation and/or other materials provided with the distribution. 1593418Sbrian * 1693418Sbrian * THIS SOFTWARE IS PROVIDED BY THE AUTHOR AND CONTRIBUTORS ``AS IS'' AND 1793418Sbrian * ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE 1893418Sbrian * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE 1993418Sbrian * ARE DISCLAIMED. IN NO EVENT SHALL THE AUTHOR OR CONTRIBUTORS BE LIABLE 2093418Sbrian * FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL 2193418Sbrian * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS 2293418Sbrian * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) 2393418Sbrian * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT 2493418Sbrian * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY 2593418Sbrian * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF 2693418Sbrian * SUCH DAMAGE. 2793418Sbrian * 2893418Sbrian * $FreeBSD: stable/11/usr.sbin/ppp/netgraph.h 330449 2018-03-05 07:26:05Z eadler $ 2993418Sbrian */ 3093418Sbrian 3193418Sbrianstruct physical; 3293418Sbrianstruct device; 3393418Sbrian 3493418Sbrian#define DEF_NGCDDELAY 5 /* Default ``set cd'' value */ 3593418Sbrian 3693418Sbrianextern struct device *ng_Create(struct physical *); 3793418Sbrianextern struct device *ng_iov2device(int, struct physical *, struct iovec *, 3893418Sbrian int *, int, int *, int *); 39134789Sbrianextern unsigned ng_DeviceSize(void); 40