43 const uint8_t *pkt, uint32_t
len)
54 if (!PacketIncreaseCheckLayers(p)) {
57 EthernetHdr *ethh = PacketSetEthernet(p, pkt);
72 static int DecodeEthernetTest01 (
void)
76 0x00, 0x10, 0x94, 0x55, 0x00, 0x01, 0x00, 0x10,
77 0x94, 0x56, 0x00, 0x01, 0x88, 0x64, 0x11, 0x00,
78 0x00, 0x01, 0x00, 0x68, 0x00, 0x21, 0x45, 0xc0,
79 0x00, 0x64, 0x00, 0x1e, 0x00, 0x00, 0xff, 0x01,
80 0xa7, 0x78, 0x0a, 0x00, 0x00, 0x02, 0x0a, 0x00,
81 0x00, 0x01, 0x08, 0x00, 0x4a, 0x61, 0x00, 0x06,
82 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x0f,
83 0x3b, 0xd4, 0xab, 0xcd, 0xab, 0xcd, 0xab, 0xcd,
84 0xab, 0xcd, 0xab, 0xcd, 0xab, 0xcd, 0xab, 0xcd,
85 0xab, 0xcd, 0xab, 0xcd, 0xab, 0xcd, 0xab, 0xcd,
86 0xab, 0xcd, 0xab, 0xcd, 0xab, 0xcd, 0xab, 0xcd,
87 0xab, 0xcd, 0xab, 0xcd, 0xab, 0xcd, 0xab, 0xcd,
88 0xab, 0xcd, 0xab, 0xcd, 0xab, 0xcd, 0xab, 0xcd,
89 0xab, 0xcd, 0xab, 0xcd, 0xab, 0xcd, 0xab, 0xcd,
90 0xab, 0xcd, 0xab, 0xcd, 0xab, 0xcd, 0xab, 0xcd,
111 static int DecodeEthernetTestDceTooSmall(
void)
113 uint8_t raw_eth[] = {
114 0x00, 0x10, 0x94, 0x55, 0x00, 0x01, 0x00, 0x10,
115 0x94, 0x56, 0x00, 0x01, 0x89, 0x03,
141 static int DecodeEthernetTestDceNextTooSmall(
void)
143 uint8_t raw_eth[] = {
144 0x00, 0x10, 0x94, 0x55, 0x00, 0x01, 0x00, 0x10,
145 0x94, 0x56, 0x00, 0x01, 0x89, 0x03,
149 0x00, 0x10, 0x94, 0x55, 0x00, 0x01, 0x00, 0x10,
150 0x94, 0x56, 0x00, 0x01,
181 DecodeEthernetTestDceNextTooSmall);
183 DecodeEthernetTestDceTooSmall);