summaryrefslogtreecommitdiff
path: root/sys/net
diff options
context:
space:
mode:
authorClaudio Jeker <claudio@cvs.openbsd.org>2008-05-07 02:11:35 +0000
committerClaudio Jeker <claudio@cvs.openbsd.org>2008-05-07 02:11:35 +0000
commit37ad6d05bd2a0bd47a4a26e3fd229454e994e870 (patch)
tree602f7fa83ab4ea9cd1f9379cd619d1b31388b5ab /sys/net
parent53aa0d5e219b0598bf21997accb68bedbb8cae09 (diff)
There is no reason to have a faithrtrequest() function that sets the MTU to
route MTU to the interface MTU. By default if no route MTU is set it will fall back to the interface MTU anyway. OK henning@
Diffstat (limited to 'sys/net')
-rw-r--r--sys/net/if_faith.c15
1 files changed, 1 insertions, 14 deletions
diff --git a/sys/net/if_faith.c b/sys/net/if_faith.c
index d45bafa56dd..0c02eebfa02 100644
--- a/sys/net/if_faith.c
+++ b/sys/net/if_faith.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: if_faith.c,v 1.24 2007/12/20 02:53:02 brad Exp $ */
+/* $OpenBSD: if_faith.c,v 1.25 2008/05/07 02:11:34 claudio Exp $ */
/*
* Copyright (c) 1982, 1986, 1993
* The Regents of the University of California. All rights reserved.
@@ -69,7 +69,6 @@
static int faithioctl(struct ifnet *, u_long, caddr_t);
int faithoutput(struct ifnet *, struct mbuf *, struct sockaddr *,
struct rtentry *);
-static void faithrtrequest(int, struct rtentry *, struct rt_addrinfo *);
void faithattach(int);
int faith_clone_create(struct if_clone *, int);
@@ -194,17 +193,6 @@ faithoutput(ifp, m, dst, rt)
return (0);
}
-/* ARGSUSED */
-static void
-faithrtrequest(cmd, rt, info)
- int cmd;
- struct rtentry *rt;
- struct rt_addrinfo *info;
-{
- if (rt)
- rt->rt_rmx.rmx_mtu = rt->rt_ifp->if_mtu; /* for ISO */
-}
-
/*
* Process an ioctl request.
*/
@@ -224,7 +212,6 @@ faithioctl(ifp, cmd, data)
case SIOCSIFADDR:
ifp->if_flags |= IFF_UP | IFF_RUNNING;
ifa = (struct ifaddr *)data;
- ifa->ifa_rtrequest = faithrtrequest;
/*
* Everything else is done at a higher level.
*/