source:
vbox/trunk/src/VBox/Devices/PC/Etherboot-src/include/if_arp.h@
35399
最後變更 在這個檔案從35399是 1,由 提交於 55 年 前 | |
---|---|
|
|
檔案大小: 445 位元組 |
行 | |
---|---|
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 | */ |
11 | struct 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 */ |
注意:
瀏覽 TracBrowser
來幫助您使用儲存庫瀏覽器