Contents of /trunk/mkinitrd-magellan/klibc/usr/kinit/ipconfig/bootp_packet.h
Parent Directory | Revision Log
Revision 532 -
(show annotations)
(download)
Sat Sep 1 22:45:15 2007 UTC (16 years, 8 months ago) by niro
File MIME type: text/plain
File size: 492 byte(s)
Sat Sep 1 22:45:15 2007 UTC (16 years, 8 months ago) by niro
File MIME type: text/plain
File size: 492 byte(s)
-import if magellan mkinitrd; it is a fork of redhats mkinitrd-5.0.8 with all magellan patches and features; deprecates magellan-src/mkinitrd
1 | #ifndef BOOTP_PACKET_H |
2 | #define BOOTP_PACKET_H |
3 | |
4 | #include <sys/uio.h> |
5 | |
6 | struct netdev; |
7 | |
8 | /* packet ops */ |
9 | #define BOOTP_REQUEST 1 |
10 | #define BOOTP_REPLY 2 |
11 | |
12 | /* your basic bootp packet */ |
13 | struct bootp_hdr { |
14 | uint8_t op; |
15 | uint8_t htype; |
16 | uint8_t hlen; |
17 | uint8_t hops; |
18 | uint32_t xid; |
19 | uint16_t secs; |
20 | uint16_t flags; |
21 | uint32_t ciaddr; |
22 | uint32_t yiaddr; |
23 | uint32_t siaddr; |
24 | uint32_t giaddr; |
25 | uint8_t chaddr[16]; |
26 | char server_name[64]; |
27 | char boot_file[128]; |
28 | /* 312 bytes of extensions */ |
29 | }; |
30 | |
31 | #endif |