Skip to content

Commit 79171c3

Browse files
committed
Fix formatting
1 parent 49fd388 commit 79171c3

File tree

3 files changed

+8
-7
lines changed

3 files changed

+8
-7
lines changed

source/FreeRTOS_IPv4.c

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -437,8 +437,8 @@ enum eFrameProcessingResult prvAllowIPPacketIPv4( const struct xIP_PACKET * cons
437437

438438
/* Check if the destination MAC address is a broadcast MAC address. */
439439
if( memcmp( xBroadcastMACAddress.ucBytes,
440-
pxIPPacket->xEthernetHeader.xDestinationAddress.ucBytes,
441-
sizeof( MACAddress_t ) ) == 0 )
440+
pxIPPacket->xEthernetHeader.xDestinationAddress.ucBytes,
441+
sizeof( MACAddress_t ) ) == 0 )
442442
{
443443
if( ulDestinationIPAddress != FREERTOS_INADDR_BROADCAST )
444444
{
@@ -451,6 +451,7 @@ enum eFrameProcessingResult prvAllowIPPacketIPv4( const struct xIP_PACKET * cons
451451
/* Accept valid broadcast packet. */
452452
}
453453
}
454+
454455
/* RFC 2131: https://datatracker.ietf.org/doc/html/rfc2131#autoid-8
455456
* The TCP/IP software SHOULD accept and
456457
* forward to the IP layer any IP packets delivered to the client's
@@ -459,8 +460,8 @@ enum eFrameProcessingResult prvAllowIPPacketIPv4( const struct xIP_PACKET * cons
459460
* clients that cannot accept hardware unicast datagrams before the
460461
* TCP/IP software is configured. */
461462
else if( ( memcmp( pxEndPoint->xMACAddress.ucBytes,
462-
pxIPPacket->xEthernetHeader.xDestinationAddress.ucBytes,
463-
sizeof( MACAddress_t ) ) != 0 ) )
463+
pxIPPacket->xEthernetHeader.xDestinationAddress.ucBytes,
464+
sizeof( MACAddress_t ) ) != 0 ) )
464465
{
465466
/* The endpoint is not up, and the destination MAC address of the
466467
* packet is not matching the endpoint's MAC address nor broadcast

test/unit-test/FreeRTOS_IPv4/FreeRTOS_IPv4_utest.c

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -675,7 +675,7 @@ void test_prvAllowIPPacketIPv4_EndpointDown_UnHappyPath( void )
675675
/**
676676
* @brief test_prvAllowIPPacketIPv4_EndpointDown_HappyPath
677677
* To validate if prvAllowIPPacketIPv4() returns eProcessBuffer when
678-
* endpoint is down and the packet is broadcast packet with destination
678+
* endpoint is down and the packet is broadcast packet with destination
679679
* MAC address as broadcast MAC and the destination IP as broadcast IP
680680
*/
681681
void test_prvAllowIPPacketIPv4_EndpointDown_UnHappyPathBroadcast( void )
@@ -718,7 +718,7 @@ void test_prvAllowIPPacketIPv4_EndpointDown_UnHappyPathBroadcast( void )
718718
/**
719719
* @brief test_prvAllowIPPacketIPv4_EndpointDown_HappyPath
720720
* To validate if prvAllowIPPacketIPv4() returns eReleaseBuffer when
721-
* endpoint is down and the packet is malformed broadcast packet with destination
721+
* endpoint is down and the packet is malformed broadcast packet with destination
722722
* MAC address as broadcast MAC and but the destination IP not broadcast IP
723723
*/
724724
void test_prvAllowIPPacketIPv4_EndpointDown_UnHappyPathIncorrectBroadcast( void )

test/unit-test/FreeRTOS_Sockets/FreeRTOS_Sockets_privates_utest.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -127,7 +127,7 @@ void test_prvFindSelectedSocket_SendSuccess( void )
127127
SocketSelect_t xSocketSet;
128128

129129
xSocketSet.xSelectGroup = NULL;
130-
130+
131131
xEventGroupClearBits_ExpectAndReturn( xSocketSet.xSelectGroup, ( BaseType_t ) eSELECT_CALL_IP, pdFALSE );
132132

133133
xSendEventStructToIPTask_ExpectAnyArgsAndReturn( pdPASS );

0 commit comments

Comments
 (0)