Print strict source routing option.

Reviewed by:	silence on -net
Proposed by:	David Wang <dsw@juniper.net>
This commit is contained in:
maxim 2003-01-23 12:42:56 +00:00
parent d9350fc2a8
commit e83d9a9d7b

View File

@ -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;