168651Skris/*-
268651Skris * Copyright (c) 1996 - 2001 Brian Somers <brian@Awfulhak.org>
368651Skris *          based on work by Toshiharu OHNO <tony-o@iij.ad.jp>
468651Skris *                           Internet Initiative Japan, Inc (IIJ)
568651Skris * All rights reserved.
668651Skris *
768651Skris * Redistribution and use in source and binary forms, with or without
868651Skris * modification, are permitted provided that the following conditions
968651Skris * are met:
1068651Skris * 1. Redistributions of source code must retain the above copyright
1168651Skris *    notice, this list of conditions and the following disclaimer.
1268651Skris * 2. Redistributions in binary form must reproduce the above copyright
1368651Skris *    notice, this list of conditions and the following disclaimer in the
1468651Skris *    documentation and/or other materials provided with the distribution.
1568651Skris *
1668651Skris * THIS SOFTWARE IS PROVIDED BY THE AUTHOR AND CONTRIBUTORS ``AS IS'' AND
1768651Skris * ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
1868651Skris * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
1968651Skris * ARE DISCLAIMED.  IN NO EVENT SHALL THE AUTHOR OR CONTRIBUTORS BE LIABLE
2068651Skris * FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
2168651Skris * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS
2268651Skris * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
2368651Skris * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
2468651Skris * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
2568651Skris * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
2668651Skris * SUCH DAMAGE.
2768651Skris *
2868651Skris * $FreeBSD: releng/11.0/usr.sbin/ppp/ip.h 81634 2001-08-14 16:05:52Z brian $
2968651Skris */
3068651Skris
3168651Skrisstruct mbuf;
3268651Skrisstruct filter;
3368651Skrisstruct link;
3468651Skrisstruct bundle;
3568651Skris
3668651Skrisextern int ip_PushPacket(struct link *, struct bundle *);
3768651Skrisextern int PacketCheck(struct bundle *, u_int32_t, const unsigned char *, int,
3868651Skris                          struct filter *, const char *, unsigned *secs);
3968651Skrisextern int FilterCheck(const unsigned char *, u_int32_t, const struct filter *,
4068651Skris                       unsigned *);
4168651Skrisextern struct mbuf *ipv4_Input(struct bundle *, struct link *, struct mbuf *);
4268651Skris#ifndef NOINET6
4368651Skrisextern struct mbuf *ipv6_Input(struct bundle *, struct link *, struct mbuf *);
4468651Skris#endif
4568651Skris