Skip to content

Commit

Permalink
Fixes the allocation size when sending a neighbor solicitation packet…
Browse files Browse the repository at this point in the history
… to avoid having to always reallocate the buffer. (FreeRTOS#1039)

Co-authored-by: Emil Popov <[email protected]>
  • Loading branch information
evpopov and Emil Popov authored Nov 3, 2023
1 parent be2555b commit 7c129b6
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion source/FreeRTOS_ARP.c
Original file line number Diff line number Diff line change
Expand Up @@ -588,7 +588,7 @@ BaseType_t xCheckRequiresARPResolution( const NetworkBufferDescriptor_t * pxNetw
NetworkBufferDescriptor_t * pxTempBuffer;
size_t uxNeededSize;

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

if( pxTempBuffer != NULL )
Expand Down

0 comments on commit 7c129b6

Please sign in to comment.