for (i = 0; i < data_len; ++i) {
if (i)
tprints(", ");
+ if (abbrev(tcp) && i >= max_strlen) {
+ tprints("...");
+ break;
+ }
tprintf("0x%02x", opts[i]);
}
tprints("]");
for (i = 0; i < data_len; ++i) {
if (i)
printf(", ");
+#ifndef VERBOSE_MSGHDR
+ if (i >= DEFAULT_STRLEN) {
+ printf("...");
+ break;
+ }
+#endif
printf("0x%02x", opts[i]);
}
}
test_ip_opts(mh, page, VAL_STR(IP_RETOPTS), 6);
test_ip_opts(mh, page, VAL_STR(IP_RETOPTS), 7);
test_ip_opts(mh, page, VAL_STR(IP_RETOPTS), 8);
+ test_ip_opts(mh, page, VAL_STR(IP_RETOPTS), DEFAULT_STRLEN - 1);
+ test_ip_opts(mh, page, VAL_STR(IP_RETOPTS), DEFAULT_STRLEN);
+ test_ip_opts(mh, page, VAL_STR(IP_RETOPTS), DEFAULT_STRLEN + 1);
#ifdef IP_CHECKSUM
test_ip_recverr(mh, page, VAL_STR(IP_RECVERR));
#endif