diff options
author | Claudio Jeker <claudio@cvs.openbsd.org> | 2006-03-30 09:56:07 +0000 |
---|---|---|
committer | Claudio Jeker <claudio@cvs.openbsd.org> | 2006-03-30 09:56:07 +0000 |
commit | 94fbeae856c61b538d3ced3206fa3bdfea6519e5 (patch) | |
tree | ff53ea21f4a2ece68a2c3560378d86ba54834a23 /sbin/route | |
parent | fc577400dc1feaf4fc94d4ec5afd76e2dfa4ab4f (diff) |
Really ignore sendpipe, recvpipe, rtt, rttvar, etc. in route(8) instead of
passing these values to the kernel where they get ignored anyway.
OK henning@
Diffstat (limited to 'sbin/route')
-rw-r--r-- | sbin/route/route.c | 24 |
1 files changed, 4 insertions, 20 deletions
diff --git a/sbin/route/route.c b/sbin/route/route.c index 52fef7dfb0a..b258f173fdd 100644 --- a/sbin/route/route.c +++ b/sbin/route/route.c @@ -1,4 +1,4 @@ -/* $OpenBSD: route.c,v 1.92 2005/12/11 12:33:43 aaron Exp $ */ +/* $OpenBSD: route.c,v 1.93 2006/03/30 09:56:06 claudio Exp $ */ /* $NetBSD: route.c,v 1.16 1996/04/15 18:27:05 cgd Exp $ */ /* @@ -304,34 +304,18 @@ set_metric(char *value, int key) valp = &rt_metrics.rmx_mtu; flag = RTV_MTU; break; - case K_HOPCOUNT: - valp = &rt_metrics.rmx_hopcount; - flag = RTV_HOPCOUNT; - break; case K_EXPIRE: valp = &rt_metrics.rmx_expire; flag = RTV_EXPIRE; break; + case K_HOPCOUNT: case K_RECVPIPE: - valp = &rt_metrics.rmx_recvpipe; - flag = RTV_RPIPE; - break; case K_SENDPIPE: - valp = &rt_metrics.rmx_sendpipe; - flag = RTV_SPIPE; - break; case K_SSTHRESH: - valp = &rt_metrics.rmx_ssthresh; - flag = RTV_SSTHRESH; - break; case K_RTT: - valp = &rt_metrics.rmx_rtt; - flag = RTV_RTT; - break; case K_RTTVAR: - valp = &rt_metrics.rmx_rttvar; - flag = RTV_RTTVAR; - break; + /* no longer used, only for compatibility */ + return; default: errx(1, "king bula sez: set_metric with invalid key"); } |