summaryrefslogtreecommitdiffstats
path: root/sbin/ping
diff options
context:
space:
mode:
authormaxim <maxim@FreeBSD.org>2003-01-23 12:42:56 +0000
committermaxim <maxim@FreeBSD.org>2003-01-23 12:42:56 +0000
commite83d9a9d7bbb8ac5e6adb89aaa36ab625db69aa4 (patch)
tree14d916e8e784b47f985c579c1d5040832aa04338 /sbin/ping
parentd9350fc2a80873612c19e58a6417237be1bcee58 (diff)
downloadFreeBSD-src-e83d9a9d7bbb8ac5e6adb89aaa36ab625db69aa4.zip
FreeBSD-src-e83d9a9d7bbb8ac5e6adb89aaa36ab625db69aa4.tar.gz
Print strict source routing option.
Reviewed by: silence on -net Proposed by: David Wang <dsw@juniper.net>
Diffstat (limited to 'sbin/ping')
-rw-r--r--sbin/ping/ping.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/sbin/ping/ping.c b/sbin/ping/ping.c
index e77d582..f38c3b7 100644
--- a/sbin/ping/ping.c
+++ b/sbin/ping/ping.c
@@ -953,7 +953,9 @@ pr_pack(buf, cc, from, tv)
hlen = 0;
break;
case IPOPT_LSRR:
- (void)printf("\nLSRR: ");
+ case IPOPT_SSRR:
+ (void)printf(*cp == IPOPT_LSRR ?
+ "\nLSRR: " : "\nSSRR: ");
j = cp[IPOPT_OLEN] - IPOPT_MINOFF + 1;
hlen -= 2;
cp += 2;
OpenPOWER on IntegriCloud