aboutsummaryrefslogtreecommitdiffstats
path: root/hv-collector-test-utils
diff options
context:
space:
mode:
authorPiotr Jaszczyk <piotr.jaszczyk@nokia.com>2018-10-04 08:04:00 +0200
committerPiotr Jaszczyk <piotr.jaszczyk@nokia.com>2018-10-04 08:04:00 +0200
commit7b178765c00751fd99399eec76f1006270ae41dd (patch)
treeb89e5b9ab3228e37cb0d5f0a0e83568190a4a90b /hv-collector-test-utils
parentde8e834e2bfc714e7a588f7470fe2ef7ba368275 (diff)
Change magic byte from 0xFF to 0xAA
In final protocol specification the value has changed to 0xAA. Change-Id: Id86c15117732b03bca38c674960d5eba8da88a6e Issue-ID: DCAEGEN2-854 Signed-off-by: Piotr Jaszczyk <piotr.jaszczyk@nokia.com>
Diffstat (limited to 'hv-collector-test-utils')
-rw-r--r--hv-collector-test-utils/src/main/kotlin/org/onap/dcae/collectors/veshv/tests/utils/messages.kt4
1 files changed, 2 insertions, 2 deletions
diff --git a/hv-collector-test-utils/src/main/kotlin/org/onap/dcae/collectors/veshv/tests/utils/messages.kt b/hv-collector-test-utils/src/main/kotlin/org/onap/dcae/collectors/veshv/tests/utils/messages.kt
index 72504437..035d94ee 100644
--- a/hv-collector-test-utils/src/main/kotlin/org/onap/dcae/collectors/veshv/tests/utils/messages.kt
+++ b/hv-collector-test-utils/src/main/kotlin/org/onap/dcae/collectors/veshv/tests/utils/messages.kt
@@ -35,7 +35,7 @@ import java.util.UUID.randomUUID
val allocator: ByteBufAllocator = PooledByteBufAllocator.DEFAULT
private fun ByteBuf.writeValidWireFrameHeaders() {
- writeByte(0xFF) // always 0xFF
+ writeByte(0xAA) // always 0xAA
writeByte(0x01) // major version
writeByte(0x00) // minor version
writeZero(RESERVED_BYTE_COUNT) // reserved
@@ -65,7 +65,7 @@ fun garbageFrame(): ByteBuf = allocator.buffer().run {
}
fun invalidWireFrame(): ByteBuf = allocator.buffer().run {
- writeByte(0xFF)
+ writeByte(0xAA)
writeByte(0x01) // version major
writeByte(0x01) // version minor
}