diff --git a/gtests/net/packetdrill/packet_to_string_test.c b/gtests/net/packetdrill/packet_to_string_test.c index 8392b65e97c227b988068f43cd1f456225891da8..88f289c8c8196fc04b5631e67d9dafb023967bc2 100644 --- a/gtests/net/packetdrill/packet_to_string_test.c +++ b/gtests/net/packetdrill/packet_to_string_test.c @@ -291,7 +291,7 @@ static void test_sctp_ipv6_packet_to_string(void) "STALE_COOKIE_ERROR[staleness=65536], " "OUT_OF_RESOURCES[], " "UNRESOLVABLE_ADDRESS[param=HOSTNAME_ADDRESS[addr=\"@A\"]], " - "UNRECOGNIZED_CHUNK[chk=" + "UNRECOGNIZED_CHUNK_TYPE[chk=" "CHUNK[type=0xfe, flgs=0x05, value=[0x01]]], " "INVALID_MANDATORY_PARAMETER[], " "UNRECOGNIZED_PARAMETERS[" @@ -349,7 +349,7 @@ static void test_sctp_ipv6_packet_to_string(void) "STALE_COOKIE_ERROR[staleness=65536], " "OUT_OF_RESOURCES[], " "UNRESOLVABLE_ADDRESS[param=HOSTNAME_ADDRESS[addr=\"@A\"]], " - "UNRECOGNIZED_CHUNK[chk=" + "UNRECOGNIZED_CHUNK_TYPE[chk=" "CHUNK[type=0xfe, flgs=0x05, value=[0x01]]], " "INVALID_MANDATORY_PARAMETER[], " "UNRECOGNIZED_PARAMETERS[" @@ -407,7 +407,7 @@ static void test_sctp_ipv6_packet_to_string(void) "STALE_COOKIE_ERROR[staleness=65536], " "OUT_OF_RESOURCES[], " "UNRESOLVABLE_ADDRESS[param=HOSTNAME_ADDRESS[addr=\"@A\"]], " - "UNRECOGNIZED_CHUNK[chk=" + "UNRECOGNIZED_CHUNK_TYPE[chk=" "CHUNK[type=0xfe, flgs=0x05, value=[0x01]]], " "INVALID_MANDATORY_PARAMETER[], " "UNRECOGNIZED_PARAMETERS[" diff --git a/gtests/net/packetdrill/sctp_chunk_to_string.c b/gtests/net/packetdrill/sctp_chunk_to_string.c index 007581c42bcf91b89313fd72a3388f9ec8e6b7a8..ab647ae7de6e5d3307cc4a937aa8288be64404ae 100644 --- a/gtests/net/packetdrill/sctp_chunk_to_string.c +++ b/gtests/net/packetdrill/sctp_chunk_to_string.c @@ -758,7 +758,7 @@ static int sctp_unrecognized_chunk_type_cause_to_string( cause_length = ntohs(cause->length); if (cause_length < sizeof(struct sctp_unrecognized_chunk_type_cause) + sizeof(struct sctp_chunk)) { - asprintf(error, "UNRECOGNIZED_CHUNK cause too short"); + asprintf(error, "UNRECOGNIZED_CHUNK_TYPE cause too short"); return STATUS_ERR; } cause_padding = cause_length & 0x0003; @@ -773,10 +773,10 @@ static int sctp_unrecognized_chunk_type_cause_to_string( if (cause_length + cause_padding != sizeof(struct sctp_unrecognized_chunk_type_cause) + chunk_length + chunk_padding) { - asprintf(error, "UNRECOGNIZED_CHUNK cause inconsistent"); + asprintf(error, "UNRECOGNIZED_CHUNK_TYPE cause inconsistent"); return STATUS_ERR; } - fputs("UNRECOGNIZED_CHUNK[chk=", s); + fputs("UNRECOGNIZED_CHUNK_TYPE[chk=", s); result = sctp_chunk_to_string(s, chunk, error); fputc(']', s); return result;