bootp.h 789 B

12345678910111213141516171819202122232425262728
  1. /*
  2. * this file used by (at least) snoopy, tboot and bootp
  3. */
  4. enum
  5. {
  6. Bootrequest = 1,
  7. Bootreply = 2,
  8. };
  9. typedef struct Bootp Bootp;
  10. struct Bootp
  11. {
  12. uchar op; /* opcode */
  13. uchar htype; /* hardware type */
  14. uchar hlen; /* hardware address len */
  15. uchar hops; /* hops */
  16. uchar xid[4]; /* a random number */
  17. uchar secs[2]; /* elapsed snce client started booting */
  18. uchar flag[2];
  19. uchar ciaddr[4]; /* client IP address (client tells server) */
  20. uchar yiaddr[4]; /* client IP address (server tells client) */
  21. uchar siaddr[4]; /* server IP address */
  22. uchar giaddr[4]; /* gateway IP address */
  23. uchar chaddr[16]; /* client hardware address */
  24. char sname[64]; /* server host name (optional) */
  25. char file[128]; /* boot file name */
  26. char vend[128]; /* vendor-specific goo */
  27. };