Skip to content

Commit 7c129b6

Browse files
evpopovEmil Popov
andauthored
Fixes the allocation size when sending a neighbor solicitation packet to avoid having to always reallocate the buffer. (#1039)
Co-authored-by: Emil Popov <epopov@cardinalkinetic.com>
1 parent be2555b commit 7c129b6

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

source/FreeRTOS_ARP.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -588,7 +588,7 @@ BaseType_t xCheckRequiresARPResolution( const NetworkBufferDescriptor_t * pxNetw
588588
NetworkBufferDescriptor_t * pxTempBuffer;
589589
size_t uxNeededSize;
590590

591-
uxNeededSize = ipSIZE_OF_ETH_HEADER + ipSIZE_OF_IPv6_HEADER + sizeof( ICMPRouterSolicitation_IPv6_t );
591+
uxNeededSize = sizeof( ICMPPacket_IPv6_t );
592592
pxTempBuffer = pxGetNetworkBufferWithDescriptor( BUFFER_FROM_WHERE_CALL( 199 ) uxNeededSize, 0U );
593593

594594
if( pxTempBuffer != NULL )

0 commit comments

Comments
 (0)