diff options
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; |