Magellan Linux

Contents of /trunk/mkinitrd-magellan/klibc/usr/kinit/ipconfig/bootp_packet.h

Parent Directory Parent Directory | Revision Log Revision Log


Revision 1122 - (show annotations) (download)
Wed Aug 18 21:11:40 2010 UTC (13 years, 9 months ago) by niro
File MIME type: text/plain
File size: 513 byte(s)
-updated to klibc-1.5.19
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 /* BOOTP_PACKET_H */