From 7d3a635303c46dbb2b753e1865f777a1cc34c97d Mon Sep 17 00:00:00 2001
From: Michael Tuexen <tuexen@fh-muenster.de>
Date: Fri, 1 Apr 2016 03:52:11 +0200
Subject: [PATCH] Use UNRECOGNIZED_CHUNK_TYPE instead of UNRECOGNIZED_CHUNK.

---
 gtests/net/packetdrill/packet_to_string_test.c | 6 +++---
 gtests/net/packetdrill/sctp_chunk_to_string.c  | 6 +++---
 2 files changed, 6 insertions(+), 6 deletions(-)

diff --git a/gtests/net/packetdrill/packet_to_string_test.c b/gtests/net/packetdrill/packet_to_string_test.c
index 8392b65e..88f289c8 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 007581c4..ab647ae7 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;
-- 
GitLab