summaryrefslogtreecommitdiffstats
path: root/sys/net/if_stf.c
diff options
context:
space:
mode:
authorjulian <julian@FreeBSD.org>2001-09-07 07:19:12 +0000
committerjulian <julian@FreeBSD.org>2001-09-07 07:19:12 +0000
commit3cc9960fd1b52e850d61e0fdab1cf2cb1a9f3735 (patch)
treed013f55450d9cf7688fbd35f24d13797e19ae112 /sys/net/if_stf.c
parentf307b418db18dcf0791a53a9429ff162625fbd9c (diff)
downloadFreeBSD-src-3cc9960fd1b52e850d61e0fdab1cf2cb1a9f3735.zip
FreeBSD-src-3cc9960fd1b52e850d61e0fdab1cf2cb1a9f3735.tar.gz
Patches from KAME to remove usage of Varargs in existing
IPV4 code. For now they will still have some in the developing stuff (IPv6) Submitted by: Keiichi SHIMA / <keiichi@iij.ad.jp> Obtained from: KAME
Diffstat (limited to 'sys/net/if_stf.c')
-rw-r--r--sys/net/if_stf.c13
1 files changed, 3 insertions, 10 deletions
diff --git a/sys/net/if_stf.c b/sys/net/if_stf.c
index e6947a1..c553967 100644
--- a/sys/net/if_stf.c
+++ b/sys/net/if_stf.c
@@ -530,14 +530,11 @@ stf_checkaddr6(sc, in6, inifp)
}
void
-#if __STDC__
-in_stf_input(struct mbuf *m, ...)
-#else
-in_stf_input(m, va_alist)
+in_stf_input(m, off)
struct mbuf *m;
-#endif
+ int off;
{
- int off, proto;
+ int proto;
struct stf_softc *sc;
struct ip *ip;
struct ip6_hdr *ip6;
@@ -545,12 +542,8 @@ in_stf_input(m, va_alist)
int len, isr;
struct ifqueue *ifq = NULL;
struct ifnet *ifp;
- va_list ap;
- va_start(ap, m);
- off = va_arg(ap, int);
proto = mtod(m, struct ip *)->ip_p;
- va_end(ap);
if (proto != IPPROTO_IPV6) {
m_freem(m);
OpenPOWER on IntegriCloud