165309e5cSBrian Somers /*- 265309e5cSBrian Somers * Copyright (c) 1996 - 2001 Brian Somers <brian@Awfulhak.org> 365309e5cSBrian Somers * based on work by Toshiharu OHNO <tony-o@iij.ad.jp> 465309e5cSBrian Somers * Internet Initiative Japan, Inc (IIJ) 565309e5cSBrian Somers * All rights reserved. 6ed6a16c1SPoul-Henning Kamp * 765309e5cSBrian Somers * Redistribution and use in source and binary forms, with or without 865309e5cSBrian Somers * modification, are permitted provided that the following conditions 965309e5cSBrian Somers * are met: 1065309e5cSBrian Somers * 1. Redistributions of source code must retain the above copyright 1165309e5cSBrian Somers * notice, this list of conditions and the following disclaimer. 1265309e5cSBrian Somers * 2. Redistributions in binary form must reproduce the above copyright 1365309e5cSBrian Somers * notice, this list of conditions and the following disclaimer in the 1465309e5cSBrian Somers * documentation and/or other materials provided with the distribution. 15ed6a16c1SPoul-Henning Kamp * 1665309e5cSBrian Somers * THIS SOFTWARE IS PROVIDED BY THE AUTHOR AND CONTRIBUTORS ``AS IS'' AND 1765309e5cSBrian Somers * ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE 1865309e5cSBrian Somers * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE 1965309e5cSBrian Somers * ARE DISCLAIMED. IN NO EVENT SHALL THE AUTHOR OR CONTRIBUTORS BE LIABLE 2065309e5cSBrian Somers * FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL 2165309e5cSBrian Somers * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS 2265309e5cSBrian Somers * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) 2365309e5cSBrian Somers * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT 2465309e5cSBrian Somers * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY 2565309e5cSBrian Somers * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF 2665309e5cSBrian Somers * SUCH DAMAGE. 27ed6a16c1SPoul-Henning Kamp * 2897d92980SPeter Wemm * $FreeBSD$ 29ed6a16c1SPoul-Henning Kamp */ 30ed6a16c1SPoul-Henning Kamp 312764b86aSBrian Somers struct mbuf; 325ca5389aSBrian Somers struct filter; 332764b86aSBrian Somers struct link; 342764b86aSBrian Somers struct bundle; 355ca5389aSBrian Somers 365d9e6103SBrian Somers extern int ip_PushPacket(struct link *, struct bundle *); 3798251667SBrian Somers extern int PacketCheck(struct bundle *, unsigned char *, int, struct filter *, 380a4b6c5cSBrian Somers const char *, unsigned *secs); 395a72b6edSBrian Somers extern void ip_Enqueue(struct ipcp *, int, char *, int); 405d9e6103SBrian Somers extern struct mbuf *ip_Input(struct bundle *, struct link *, struct mbuf *); 415a72b6edSBrian Somers extern void ip_DeleteQueue(struct ipcp *); 4226af0ae9SBrian Somers extern size_t ip_QueueLen(struct ipcp *); 43