Print strict source routing option.

Reviewed by:	silence on -net
Proposed by:	David Wang <dsw@juniper.net>
This commit is contained in:
Maxim Konovalov 2003-01-23 12:42:56 +00:00
parent 4224228e15
commit cb75aca7cd
Notes: svn2git 2020-12-20 02:59:44 +00:00
svn path=/head/; revision=109730

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;