summaryrefslogtreecommitdiffstats
path: root/sys/netinet/in_gif.c
diff options
context:
space:
mode:
authorbrooks <brooks@FreeBSD.org>2001-07-02 21:02:09 +0000
committerbrooks <brooks@FreeBSD.org>2001-07-02 21:02:09 +0000
commite7b9bc714f516674681231706c48e6aaa41c1d52 (patch)
treec356b4fb3bb3f0b8afdc188117e65b43ba086e89 /sys/netinet/in_gif.c
parent1e69f4eb2364d7e5da7ca1d7cb99c3e77599e36d (diff)
downloadFreeBSD-src-e7b9bc714f516674681231706c48e6aaa41c1d52.zip
FreeBSD-src-e7b9bc714f516674681231706c48e6aaa41c1d52.tar.gz
gif(4) and stf(4) modernization:
- Remove gif dependencies from stf. - Make gif and stf into modules - Make gif cloneable. PR: kern/27983 Reviewed by: ru, ume Obtained from: NetBSD MFC after: 1 week
Diffstat (limited to 'sys/netinet/in_gif.c')
-rw-r--r--sys/netinet/in_gif.c24
1 files changed, 3 insertions, 21 deletions
diff --git a/sys/netinet/in_gif.c b/sys/netinet/in_gif.c
index 5ad92e1..f010bbf 100644
--- a/sys/netinet/in_gif.c
+++ b/sys/netinet/in_gif.c
@@ -67,17 +67,9 @@
#include <net/if_gif.h>
-#include "gif.h"
-
-#include <machine/stdarg.h>
-
#include <net/net_osdep.h>
-#if NGIF > 0
int ip_gif_ttl = GIF_TTL;
-#else
-int ip_gif_ttl = 0;
-#endif
SYSCTL_INT(_net_inet_ip, IPCTL_GIF_TTL, gifttl, CTLFLAG_RW,
&ip_gif_ttl, 0, "");
@@ -210,26 +202,16 @@ in_gif_output(ifp, family, m, rt)
}
void
-#if __STDC__
-in_gif_input(struct mbuf *m, ...)
-#else
-in_gif_input(m, va_alist)
+in_gif_input(m, off, proto)
struct mbuf *m;
- va_dcl
-#endif
+ int off;
+ int proto;
{
- int off, proto;
struct ifnet *gifp = NULL;
struct ip *ip;
- va_list ap;
int af;
u_int8_t otos;
- va_start(ap, m);
- off = va_arg(ap, int);
- proto = va_arg(ap, int);
- va_end(ap);
-
ip = mtod(m, struct ip *);
gifp = (struct ifnet *)encap_getarg(m);
OpenPOWER on IntegriCloud