forked from pandax381/microps
-
Notifications
You must be signed in to change notification settings - Fork 0
/
test.h
31 lines (25 loc) · 700 Bytes
/
test.h
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
#ifndef TEST_H
#define TEST_H
#include <stdint.h>
#define LOOPBACK_IP_ADDR "127.0.0.1"
#define LOOPBACK_NETMASK "255.0.0.0"
#define ETHER_TAP_NAME "tap0"
#define ETHER_TAP_HW_ADDR "00:00:5e:00:53:01"
#define ETHER_TAP_IP_ADDR "192.0.2.2"
#define ETHER_TAP_NETMASK "255.255.255.0"
#define DEFAULT_GATEWAY "192.0.2.1"
const uint8_t test_data[] = {
0x45, 0x00, 0x00, 0x30,
0x00, 0x80, 0x00, 0x00,
0xff, 0x01, 0xbd, 0x4a,
0x7f, 0x00, 0x00, 0x01,
0x7f, 0x00, 0x00, 0x01,
0x08, 0x00, 0x35, 0x64,
0x00, 0x80, 0x00, 0x01,
0x31, 0x32, 0x33, 0x34,
0x35, 0x36, 0x37, 0x38,
0x39, 0x30, 0x21, 0x40,
0x23, 0x24, 0x25, 0x5e,
0x26, 0x2a, 0x28, 0x29
};
#endif