|
|
|
@ -1021,10 +1021,13 @@ static int ICMPV6PayloadTest01(void)
|
|
|
|
DecodeIPV6(&tv, &dtv, &p, raw_ipv6, sizeof(raw_ipv6), NULL);
|
|
|
|
DecodeIPV6(&tv, &dtv, &p, raw_ipv6, sizeof(raw_ipv6), NULL);
|
|
|
|
FlowShutdown();
|
|
|
|
FlowShutdown();
|
|
|
|
|
|
|
|
|
|
|
|
if (p.payload == NULL || p.payload_len != 37) {
|
|
|
|
if (p.payload == NULL) {
|
|
|
|
printf("payload has not been set, but it should be %p. p->payload_len "
|
|
|
|
printf("payload == NULL, expected non-NULL: ");
|
|
|
|
"should be 37, but it is %"PRIu16"\n", p.payload,p.payload_len);
|
|
|
|
goto end;
|
|
|
|
retval = 0;
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
if (p.payload_len != 37) {
|
|
|
|
|
|
|
|
printf("payload_len %"PRIu16", expected 37: ", p.payload_len);
|
|
|
|
goto end;
|
|
|
|
goto end;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
|