diff options
author | maxim <maxim@FreeBSD.org> | 2003-01-23 12:42:56 +0000 |
---|---|---|
committer | maxim <maxim@FreeBSD.org> | 2003-01-23 12:42:56 +0000 |
commit | e83d9a9d7bbb8ac5e6adb89aaa36ab625db69aa4 (patch) | |
tree | 14d916e8e784b47f985c579c1d5040832aa04338 /sbin/ping | |
parent | d9350fc2a80873612c19e58a6417237be1bcee58 (diff) | |
download | FreeBSD-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.c | 4 |
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; |