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>
31 lines
871 B
C
31 lines
871 B
C
/* FreeRTOS includes. */
|
|
#include "FreeRTOS.h"
|
|
#include "queue.h"
|
|
|
|
/* FreeRTOS+TCP includes. */
|
|
#include "FreeRTOS_IP.h"
|
|
#include "FreeRTOS_DNS.h"
|
|
#include "FreeRTOS_IP_Private.h"
|
|
|
|
/* Function prvParseDNSReply is proven to be correct separately.
|
|
The proof can be found here: https://github.com/aws/amazon-freertos/tree/master/tools/cbmc/proofs/ParseDNSReply */
|
|
uint32_t prvParseDNSReply( uint8_t *pucUDPPayloadBuffer,
|
|
size_t xBufferLength,
|
|
BaseType_t xExpected ) {}
|
|
|
|
struct xDNSMessage {
|
|
uint16_t usIdentifier;
|
|
uint16_t usFlags;
|
|
uint16_t usQuestions;
|
|
uint16_t usAnswers;
|
|
uint16_t usAuthorityRRs;
|
|
uint16_t usAdditionalRRs;
|
|
};
|
|
|
|
typedef struct xDNSMessage DNSMessage_t;
|
|
|
|
void harness() {
|
|
NetworkBufferDescriptor_t xNetworkBuffer;
|
|
xNetworkBuffer.pucEthernetBuffer = malloc(sizeof(UDPPacket_t)+sizeof(DNSMessage_t));
|
|
ulDNSHandlePacket(&xNetworkBuffer);
|
|
}
|