diff options
author | Claudio Jeker <claudio@cvs.openbsd.org> | 2006-04-20 11:21:18 +0000 |
---|---|---|
committer | Claudio Jeker <claudio@cvs.openbsd.org> | 2006-04-20 11:21:18 +0000 |
commit | 8d0545f99cc0d06974614877161d7922e050368f (patch) | |
tree | 61b7a62c7645eee38de4f2a9bfc05c6662261cb5 /sbin | |
parent | cf60276eda0abd3fbd857e89963c21c8158b330e (diff) |
Instead of printing useless metrics like recvpipe and sendpipe print
rmx_pksent in route get. This makes it possible to identify DoS targets
even if you have a full routing table. OK henning@
Diffstat (limited to 'sbin')
-rw-r--r-- | sbin/route/route.c | 11 |
1 files changed, 3 insertions, 8 deletions
diff --git a/sbin/route/route.c b/sbin/route/route.c index 489e494740d..000895b9ece 100644 --- a/sbin/route/route.c +++ b/sbin/route/route.c @@ -1,4 +1,4 @@ -/* $OpenBSD: route.c,v 1.94 2006/03/30 12:11:37 claudio Exp $ */ +/* $OpenBSD: route.c,v 1.95 2006/04/20 11:21:17 claudio Exp $ */ /* $NetBSD: route.c,v 1.16 1996/04/15 18:27:05 cgd Exp $ */ /* @@ -1212,13 +1212,8 @@ print_getmsg(struct rt_msghdr *rtm, int msglen) #define lock(f) ((rtm->rtm_rmx.rmx_locks & __CONCAT(RTV_,f)) ? 'L' : ' ') #define msec(u) (((u) + 500) / 1000) /* usec to msec */ - printf("%s\n", "\ - recvpipe sendpipe ssthresh rtt,msec rttvar hopcount mtu expire"); - printf("%8lu%c ", rtm->rtm_rmx.rmx_recvpipe, lock(RPIPE)); - printf("%8lu%c ", rtm->rtm_rmx.rmx_sendpipe, lock(SPIPE)); - printf("%8lu%c ", rtm->rtm_rmx.rmx_ssthresh, lock(SSTHRESH)); - printf("%8lu%c ", msec(rtm->rtm_rmx.rmx_rtt), lock(RTT)); - printf("%8lu%c ", msec(rtm->rtm_rmx.rmx_rttvar), lock(RTTVAR)); + printf("%s\n", " use hopcount mtu expire"); + printf("%8lu ", rtm->rtm_rmx.rmx_pksent); printf("%8lu%c ", rtm->rtm_rmx.rmx_hopcount, lock(HOPCOUNT)); printf("%8lu%c ", rtm->rtm_rmx.rmx_mtu, lock(MTU)); if (rtm->rtm_rmx.rmx_expire) |