summaryrefslogtreecommitdiffstats
path: root/sys/net
diff options
context:
space:
mode:
authorae <ae@FreeBSD.org>2014-12-23 20:54:59 +0000
committerae <ae@FreeBSD.org>2014-12-23 20:54:59 +0000
commitd6158111f94c9257abf05d1a7e6c470f964c00f4 (patch)
tree0abd0f8060fee4a4c800518e51c802aa638780fe /sys/net
parent3f6045f5086f2febc9efafa3786a11eead201388 (diff)
downloadFreeBSD-src-d6158111f94c9257abf05d1a7e6c470f964c00f4.zip
FreeBSD-src-d6158111f94c9257abf05d1a7e6c470f964c00f4.tar.gz
Remove if_stf.h. It contains only one function declaration used by if_stf(4).
Also make in_stf_protosw structure static.
Diffstat (limited to 'sys/net')
-rw-r--r--sys/net/if_stf.c6
-rw-r--r--sys/net/if_stf.h38
2 files changed, 3 insertions, 41 deletions
diff --git a/sys/net/if_stf.c b/sys/net/if_stf.c
index f3a6042..aed2a37 100644
--- a/sys/net/if_stf.c
+++ b/sys/net/if_stf.c
@@ -99,7 +99,6 @@
#include <net/route.h>
#include <net/netisr.h>
#include <net/if_types.h>
-#include <net/if_stf.h>
#include <net/vnet.h>
#include <netinet/in.h>
@@ -156,7 +155,8 @@ static MALLOC_DEFINE(M_STF, stfname, "6to4 Tunnel Interface");
static const int ip_stf_ttl = 40;
extern struct domain inetdomain;
-struct protosw in_stf_protosw = {
+static int in_stf_input(struct mbuf **, int *, int);
+static struct protosw in_stf_protosw = {
.pr_type = SOCK_RAW,
.pr_domain = &inetdomain,
.pr_protocol = IPPROTO_IPV6,
@@ -620,7 +620,7 @@ stf_checkaddr6(sc, in6, inifp)
return 0;
}
-int
+static int
in_stf_input(struct mbuf **mp, int *offp, int proto)
{
struct stf_softc *sc;
diff --git a/sys/net/if_stf.h b/sys/net/if_stf.h
deleted file mode 100644
index 07f585b..0000000
--- a/sys/net/if_stf.h
+++ /dev/null
@@ -1,38 +0,0 @@
-/* $FreeBSD$ */
-/* $KAME: if_stf.h,v 1.5 2001/10/12 10:09:17 keiichi Exp $ */
-
-/*-
- * Copyright (C) 2000 WIDE Project.
- * All rights reserved.
- *
- * Redistribution and use in source and binary forms, with or without
- * modification, are permitted provided that the following conditions
- * are met:
- * 1. Redistributions of source code must retain the above copyright
- * notice, this list of conditions and the following disclaimer.
- * 2. Redistributions in binary form must reproduce the above copyright
- * notice, this list of conditions and the following disclaimer in the
- * documentation and/or other materials provided with the distribution.
- * 3. Neither the name of the project nor the names of its contributors
- * may be used to endorse or promote products derived from this software
- * without specific prior written permission.
- *
- * THIS SOFTWARE IS PROVIDED BY THE PROJECT AND CONTRIBUTORS ``AS IS'' AND
- * ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
- * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
- * ARE DISCLAIMED. IN NO EVENT SHALL THE PROJECT OR CONTRIBUTORS BE LIABLE
- * FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
- * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS
- * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
- * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
- * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
- * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
- * SUCH DAMAGE.
- */
-
-#ifndef _NET_IF_STF_H_
-#define _NET_IF_STF_H_
-
-int in_stf_input(struct mbuf **, int *, int);
-
-#endif /* _NET_IF_STF_H_ */
OpenPOWER on IntegriCloud