Skip to content

Commit 119cbb2

Browse files
committed
Address review comments
1 parent f61d7dd commit 119cbb2

File tree

3 files changed

+3
-3
lines changed

3 files changed

+3
-3
lines changed

source/portable/NetworkInterface/WinPCap/NetworkInterface.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -980,5 +980,5 @@ size_t uxNetworkInterfaceAllocateRAMToBuffers( NetworkBufferDescriptor_t pxNetwo
980980
}
981981
}
982982

983-
return( BUFFER_SIZE_ROUNDED_UP - BUFFER_SIZE_ROUNDED_UP );
983+
return( BUFFER_SIZE_ROUNDED_UP - ipBUFFER_PADDING );
984984
}

source/portable/NetworkInterface/board_family/NetworkInterface.c

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -67,6 +67,7 @@ BaseType_t xNetworkInterfaceOutput( NetworkBufferDescriptor_t * const pxNetworkB
6767
size_t uxNetworkInterfaceAllocateRAMToBuffers( NetworkBufferDescriptor_t pxNetworkBuffers[ ipconfigNUM_NETWORK_BUFFER_DESCRIPTORS ] )
6868
{
6969
/* FIX ME. */
70+
return 0;
7071
}
7172

7273
BaseType_t xGetPhyLinkStatus( void )

test/cbmc/proofs/ARP/ARP_OutputARPRequest_buffer_alloc1/OutputARPRequest_harness.c

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -34,12 +34,11 @@ size_t uxNetworkInterfaceAllocateRAMToBuffers( NetworkBufferDescriptor_t pxNetwo
3434
* configASSERT( ( uxMaxNetworkInterfaceAllocatedSizeBytes >= ( ipconfigNETWORK_MTU + ipSIZE_OF_ETH_HEADER ) ) );
3535
*
3636
*/
37-
size_t xAllocSize = 0;
37+
size_t xAllocSize = ipconfigNETWORK_MTU + ipSIZE_OF_ETH_HEADER;
3838

3939
for( int x = 0; x < ipconfigNUM_NETWORK_BUFFER_DESCRIPTORS; x++ )
4040
{
4141
NetworkBufferDescriptor_t * current = &pxNetworkBuffers[ x ];
42-
xAllocSize = ipconfigNETWORK_MTU + ipSIZE_OF_ETH_HEADER;
4342
current->pucEthernetBuffer = malloc( xAllocSize );
4443
__CPROVER_assume( current->pucEthernetBuffer != NULL );
4544
current->xDataLength = sizeof( ARPPacket_t );

0 commit comments

Comments
 (0)