diff options
Diffstat (limited to 'hicn-light/src/io/streamConnection.c')
-rwxr-xr-x | hicn-light/src/io/streamConnection.c | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/hicn-light/src/io/streamConnection.c b/hicn-light/src/io/streamConnection.c index fedbb157a..948b6c01b 100755 --- a/hicn-light/src/io/streamConnection.c +++ b/hicn-light/src/io/streamConnection.c @@ -504,13 +504,13 @@ PARCEventBuffer *_tryReadControlMessage(_StreamState *stream, return NULL; } -static bool _isAnHIcnPacket(PARCEventBuffer *input) { +static bool _isAnHicnPacket(PARCEventBuffer *input) { size_t bytesAvailable = parcEventBuffer_GetLength(input); parcAssertTrue(bytesAvailable >= sizeof(header_control_message), "Called with too short an input: %zu", bytesAvailable); uint8_t *fh = parcEventBuffer_Pullup(input, sizeof(header_control_message)); - return messageHandler_IsValidHIcnPacket(fh); + return messageHandler_IsValidHicnPacket(fh); } static Message *_readMessage(_StreamState *stream, Ticks time, @@ -607,8 +607,8 @@ static void _conn_readcb(PARCEventQueue *event, PARCEventType type, parcEventBuffer_Destroy(&message); } - } else if (_isAnHIcnPacket(input)) { - // this is an HIcn packet (here we should distinguish between IPv4 and + } else if (_isAnHicnPacket(input)) { + // this is an Hicn packet (here we should distinguish between IPv4 and // IPv6 tryReadMessage may set nextMessageLength Message *message = _tryReadMessage(input, stream); |