forked from virtualopensystems/vapp
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathpacket.h
27 lines (25 loc) · 1021 Bytes
/
packet.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
/*
* packet.h
*
* Copyright (c) 2014 Virtual Open Systems Sarl.
*
* This work is licensed under the terms of the GNU GPL, version 2 or later.
* See the COPYING file in the top-level directory.
*
*/
/* Frame (60 bytes) */
static const unsigned char arp_request[60] = { 0xff, 0xff, 0xff, 0xff, 0xff,
0xff, /* DST MAC - broadcast */
0x01, 0x02, 0x03, 0x04, 0x05, 0x06, /* SRC MAC -01:02:03:04:05:06 */
0x08, 0x06, /* Eth Type - ARP */
0x00, 0x01, /* Ethernet */
0x08, 0x00, /* Protocol - IP */
0x06, /* HW size */
0x04, /* Protocol size */
0x00, 0x01, /* Request */
0x01, 0x02, 0x03, 0x04, 0x05, 0x06, /* Sender MAC */
0xc0, 0xa8, 0x00, 0x02, /* Sender IP - 192.168.0.2*/
0x00, 0x00, 0x00, 0x00, 0x00, 0x00, /* Target MAC */
0xc0, 0xa8, 0x00, 0x01, /* Target IP - 192.168.0.1*/
0x00, 0x00, 0x00, 0x00, 0x00, 0x00, /* Padding */
0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00 };