mirror of
https://github.com/FreeRTOS/FreeRTOS-Kernel.git
synced 2025-10-16 09:47:44 -04:00
* move CBMC proofs to FreeRTOS+ directory * Failing proofs corrected * ParseDNSReply proof added back * removed queue_init.h from -Plus/Test Co-authored-by: Yuhui Zheng <10982575+yuhui-zheng@users.noreply.github.com>
22 lines
No EOL
843 B
C
22 lines
No EOL
843 B
C
/* FreeRTOS includes. */
|
|
#include "FreeRTOS.h"
|
|
#include "list.h"
|
|
|
|
/* FreeRTOS+TCP includes. */
|
|
#include "FreeRTOS_IP.h"
|
|
#include "FreeRTOS_IP_Private.h"
|
|
#include "FreeRTOS_ARP.h"
|
|
|
|
//We assume that the pxGetNetworkBufferWithDescriptor function is implemented correctly and returns a valid data structure.
|
|
//This is the mock to mimic the correct expected bahvior. If this allocation fails, this might invalidate the proof.
|
|
NetworkBufferDescriptor_t *pxGetNetworkBufferWithDescriptor( size_t xRequestedSizeBytes, TickType_t xBlockTimeTicks ){
|
|
NetworkBufferDescriptor_t *pxNetworkBuffer = (NetworkBufferDescriptor_t *) malloc(sizeof(NetworkBufferDescriptor_t));
|
|
pxNetworkBuffer->pucEthernetBuffer = malloc(xRequestedSizeBytes);
|
|
pxNetworkBuffer->xDataLength = xRequestedSizeBytes;
|
|
return pxNetworkBuffer;
|
|
}
|
|
|
|
void harness()
|
|
{
|
|
vARPAgeCache();
|
|
} |