We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 236f798 commit cb0f319Copy full SHA for cb0f319
examples/src/vuln_74.c
@@ -1,21 +1,15 @@
1
-#include "FreeRTOS.h"
2
-#include "list.h"
3
-#include "task.h"
4
-#include "FreeRTOS_IP.h"
5
-#include "FreeRTOS_IP_Private.h"
6
-#include "FreeRTOS_ARP.h"
+#include <freertos_10_0_1_helper.h>
7
8
char data[] =
9
// Ethernet header
10
- "\0\0\0\0\0\0\0\0\0\0\0\0\0\0"
11
- // IP header
12
- "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0"
+ "\x00\x00\x00\x00\x00\x00" // destination
+ "\x00\x00\x00\x00\x00\x00" // source
+ "\x08\x06" // ether type: ARP
13
// ARP header
14
- "\0\0" // hardware address space
+ "\x00\x00" // hardware address space
15
;
16
17
int main()
18
{
19
- eFrameProcessingResult_t result = eARPProcessPacket ((ARPPacket_t *)data);
+ process_ethernet (data, sizeof(data));
20
}
21
-
0 commit comments