7 #define ADDITIONAL_SIZE 14
8 #define MAC_ADDR_SIZE 6
10 static const uint8_t simple_arp_packet[] = {
11 0xff, 0xff, 0xff, 0xff, 0xff, 0xff,
12 0x00, 0xaa, 0xbb, 0xcc, 0xdd, 0xee,
19 0x00, 0xaa, 0xbb, 0xcc, 0xdd, 0xee,
20 0x00, 0x00, 0x00, 0x00,
21 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
23 0x0a, 0x0a, 0x0a, 0x0a
28 size_t eth_composeSampleFrameTypeII(uint8_t *ethFrame, uint8_t *dstMAC, uint8_t *srcMAC, uint16_t etherType, uint8_t *payload,
size_t payloadLen);
29 int isArpRequest(uint8_t *ethFrame,
size_t length);
30 int isArpReply(uint8_t *ethFrame,
size_t length);
31 int getSourceMAC(uint8_t *ethFrame);
33 #endif // ETH_SMB_UTIL_H