diff options
author | Niels Provos <provos@cvs.openbsd.org> | 2000-09-20 17:02:40 +0000 |
---|---|---|
committer | Niels Provos <provos@cvs.openbsd.org> | 2000-09-20 17:02:40 +0000 |
commit | a3186acc4e1bacf101b8116455ccc6ac9e1a9ed1 (patch) | |
tree | e08c55140ae89bba6a7cbbbef46864acea782070 /sys/netinet | |
parent | 4b8370dd1c4bd6e2767ecbe164cb73e8ae337404 (diff) |
remove unused code
Diffstat (limited to 'sys/netinet')
-rw-r--r-- | sys/netinet/ip_icmp.c | 46 |
1 files changed, 1 insertions, 45 deletions
diff --git a/sys/netinet/ip_icmp.c b/sys/netinet/ip_icmp.c index 1548bf33095..4f0d260381d 100644 --- a/sys/netinet/ip_icmp.c +++ b/sys/netinet/ip_icmp.c @@ -1,4 +1,4 @@ -/* $OpenBSD: ip_icmp.c,v 1.22 2000/09/18 22:06:37 provos Exp $ */ +/* $OpenBSD: ip_icmp.c,v 1.23 2000/09/20 17:02:39 provos Exp $ */ /* $NetBSD: ip_icmp.c,v 1.19 1996/02/13 23:42:22 christos Exp $ */ /* @@ -86,12 +86,6 @@ int icmpbmcastecho = 0; int icmpprintfs = 0; #endif -#if 0 -static int ip_next_mtu __P((int, int)); -#else -/*static*/ int ip_next_mtu __P((int, int)); -#endif - void icmp_mtudisc __P((struct icmp *)); void icmp_mtudisc_timeout __P((struct rtentry *, struct rttimer *)); @@ -806,44 +800,6 @@ icmp_mtudisc(icp) rtfree(rt); } -/* - * Return the next larger or smaller MTU plateau (table from RFC 1191) - * given current value MTU. If DIR is less than zero, a larger plateau - * is returned; otherwise, a smaller value is returned. - */ -int -ip_next_mtu(mtu, dir) /* XXX */ - int mtu; - int dir; -{ - static u_short mtutab[] = { - 65535, 32000, 17914, 8166, 4352, 2002, 1492, 1006, 508, 296, - 68, 0 - }; - int i; - - for (i = 0; i < (sizeof mtutab) / (sizeof mtutab[0]); i++) { - if (mtu >= mtutab[i]) - break; - } - - if (dir < 0) { - if (i == 0) { - return 0; - } else { - return mtutab[i - 1]; - } - } else { - if (mtutab[i] == 0) { - return 0; - } else if(mtu > mtutab[i]) { - return mtutab[i]; - } else { - return mtutab[i + 1]; - } - } -} - void icmp_mtudisc_timeout(rt, r) struct rtentry *rt; |