VirtualBox

source: vbox/trunk/src/VBox/Devices/PC/Etherboot-src/include/if_arp.h@ 1

Last change on this file since 1 was 1, checked in by vboxsync, 55 years ago

import

  • Property svn:eol-style set to native
  • Property svn:keywords set to Author Date Id Revision
File size: 445 bytes
Line 
1#ifndef _IF_ARP_H
2#define _IF_ARP_H
3
4#define ARP_REQUEST 1
5#define ARP_REPLY 2
6
7/*
8 * A pity sipaddr and tipaddr are not longword aligned or we could use
9 * in_addr. No, I don't want to use #pragma packed.
10 */
11struct arprequest {
12 uint16_t hwtype;
13 uint16_t protocol;
14 uint8_t hwlen;
15 uint8_t protolen;
16 uint16_t opcode;
17 uint8_t shwaddr[6];
18 uint8_t sipaddr[4];
19 uint8_t thwaddr[6];
20 uint8_t tipaddr[4];
21} PACKED;
22
23#endif /* _IF_ARP_H */
Note: See TracBrowser for help on using the repository browser.

© 2024 Oracle Support Privacy / Do Not Sell My Info Terms of Use Trademark Policy Automated Access Etiquette