summaryrefslogtreecommitdiffstats
path: root/sys/net
diff options
context:
space:
mode:
authorglebius <glebius@FreeBSD.org>2014-04-09 11:15:50 +0000
committerglebius <glebius@FreeBSD.org>2014-04-09 11:15:50 +0000
commita25c39725c84ba2fa1b634932a49f04424be9a9d (patch)
treee406a63fc682e1f5f0749775ea0df5528b04c560 /sys/net
parentecc4e56cfaad4f3823fe6215d844db777085a510 (diff)
downloadFreeBSD-src-a25c39725c84ba2fa1b634932a49f04424be9a9d.zip
FreeBSD-src-a25c39725c84ba2fa1b634932a49f04424be9a9d.tar.gz
Merge r263203: garbage collect long time obsoleted (or never used) stuff
from routing API.
Diffstat (limited to 'sys/net')
-rw-r--r--sys/net/iso88025.h4
-rw-r--r--sys/net/route.c9
-rw-r--r--sys/net/route.h34
3 files changed, 6 insertions, 41 deletions
diff --git a/sys/net/iso88025.h b/sys/net/iso88025.h
index 2faab84..11bd6ec 100644
--- a/sys/net/iso88025.h
+++ b/sys/net/iso88025.h
@@ -162,11 +162,13 @@ struct iso88025_addr {
#define ISO88025_BPF_UNSUPPORTED 0
#define ISO88025_BPF_SUPPORTED 1
+#ifdef _KERNEL
void iso88025_ifattach (struct ifnet *, const u_int8_t *, int);
void iso88025_ifdetach (struct ifnet *, int);
int iso88025_ioctl (struct ifnet *, u_long, caddr_t );
int iso88025_output (struct ifnet *, struct mbuf *,
const struct sockaddr *, struct route *);
void iso88025_input (struct ifnet *, struct mbuf *);
+#endif /* _KERNEL */
-#endif
+#endif /* !_NET_ISO88025_H_ */
diff --git a/sys/net/route.c b/sys/net/route.c
index e546e20..d99b0ab 100644
--- a/sys/net/route.c
+++ b/sys/net/route.c
@@ -1682,15 +1682,6 @@ rtinit1(struct ifaddr *ifa, int cmd, int flags, int fibnum)
return (error);
}
-#ifndef BURN_BRIDGES
-/* special one for inet internal use. may not use. */
-int
-rtinit_fib(struct ifaddr *ifa, int cmd, int flags)
-{
- return (rtinit1(ifa, cmd, flags, -1));
-}
-#endif
-
/*
* Set up a routing table entry, normally
* for an interface.
diff --git a/sys/net/route.h b/sys/net/route.h
index a9fcbd0..8f47acf 100644
--- a/sys/net/route.h
+++ b/sys/net/route.h
@@ -84,10 +84,6 @@ struct rt_metrics {
#define RT_DEFAULT_FIB 0 /* Explicitly mark fib=0 restricted cases */
extern u_int rt_numfibs; /* number fo usable routing tables */
-/*
- * XXX kernel function pointer `rt_output' is visible to applications.
- */
-struct mbuf;
/*
* We distinguish between routes to hosts and routes to networks,
@@ -129,20 +125,6 @@ struct rtentry {
};
#endif /* _KERNEL || _WANT_RTENTRY */
-/*
- * Following structure necessary for 4.3 compatibility;
- * We should eventually move it to a compat file.
- */
-struct ortentry {
- u_long rt_hash; /* to speed lookups */
- struct sockaddr rt_dst; /* key */
- struct sockaddr rt_gateway; /* value */
- short rt_flags; /* up/down?, host/net */
- short rt_refcnt; /* # held references */
- u_long rt_use; /* raw # packets forwarded */
- struct ifnet *rt_ifp; /* the answer: interface to use */
-};
-
#define RTF_UP 0x1 /* route usable */
#define RTF_GATEWAY 0x2 /* destination is a gateway */
#define RTF_HOST 0x4 /* host entry (net otherwise) */
@@ -160,12 +142,7 @@ struct ortentry {
#define RTF_BLACKHOLE 0x1000 /* just discard pkts (during updates) */
#define RTF_PROTO2 0x4000 /* protocol specific routing flag */
#define RTF_PROTO1 0x8000 /* protocol specific routing flag */
-
-/* XXX: temporary to stay API/ABI compatible with userland */
-#ifndef _KERNEL
-#define RTF_PRCLONING 0x10000 /* unused, for compatibility */
-#endif
-
+/* 0x10000 unused, was RTF_PRCLONING */
/* 0x20000 unused, was RTF_WASCLONED */
#define RTF_PROTO3 0x40000 /* protocol specific routing flag */
/* 0x80000 unused */
@@ -227,8 +204,8 @@ struct rt_msghdr {
#define RTM_REDIRECT 0x6 /* Told to use different route */
#define RTM_MISS 0x7 /* Lookup failed on this address */
#define RTM_LOCK 0x8 /* fix specified metrics */
-#define RTM_OLDADD 0x9 /* caused by SIOCADDRT */
-#define RTM_OLDDEL 0xa /* caused by SIOCDELRT */
+ /* 0x9 */
+ /* 0xa */
#define RTM_RESOLVE 0xb /* req to resolve dst to LL addr */
#define RTM_NEWADDR 0xc /* address being added to iface */
#define RTM_DELADDR 0xd /* address being removed from iface */
@@ -398,11 +375,6 @@ void rtredirect(struct sockaddr *, struct sockaddr *,
int rtrequest(int, struct sockaddr *,
struct sockaddr *, struct sockaddr *, int, struct rtentry **);
-#ifndef BURN_BRIDGES
-/* defaults to "all" FIBs */
-int rtinit_fib(struct ifaddr *, int, int);
-#endif
-
/* XXX MRT NEW VERSIONS THAT USE FIBs
* For now the protocol indepedent versions are the same as the AF_INET ones
* but this will change..
OpenPOWER on IntegriCloud