Source code of Windows XP (NT5)
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

60 lines
2.0 KiB

  1. /*
  2. *
  3. * Modifications: $Header: W:/LCS/ARCHIVES/preboot/lsa2/inc/bootp.h_v 1.4 Apr 04 1997 13:57:00 GRGUSTAF $
  4. *
  5. * Copyright(c) 1997 by Intel Corporation. All Rights Reserved.
  6. *
  7. */
  8. #ifndef __BOOTP_H
  9. #define __BOOTP_H
  10. #include "ip.h"
  11. #define BOOTP_VENDOR 64 /* BOOTP standard vendor field size */
  12. #define BOOTP_DHCPVEND 312 /* DHCP standard vendor field size */
  13. #define BOOTP_EXVENDOR 1024 /* .. our max. size (MTU 1500) */
  14. /* BOOTstrap Protocol (BOOTP) header */
  15. typedef struct bootph {
  16. UINT8 opcode, /* operation code */
  17. hardware, /* hardware type */
  18. hardlen, /* length of hardware address */
  19. gatehops; /* gateways hops */
  20. UINT32 ident; /* transaction identification */
  21. UINT16 seconds, /* seconds elapsed since boot began */
  22. flags; /* flags */
  23. UINT8 cip[IPLEN], /* client IP address */
  24. yip[IPLEN], /* your IP address */
  25. sip[IPLEN], /* server IP address */
  26. gip[IPLEN]; /* gateway IP address */
  27. UINT8 caddr[16], /* client hardware address */
  28. sname[64], /* server name */
  29. bootfile[128]; /* bootfile name */
  30. union {
  31. UINT8 d[BOOTP_EXVENDOR]; /* vendor-specific stuff */
  32. struct {
  33. UINT8 magic[4]; /* magic number */
  34. UINT32 flags; /* flags/opcodes etc */
  35. UINT8 pad[56]; /* padding chars */
  36. } v;
  37. } vendor;
  38. } BOOTPLAYER;
  39. #define VM_RFC1048 0x63538263L /* RFC1048 magic number (in network order) */
  40. #define BOOTP_SPORT 67 /* BOOTP server port */
  41. #define BOOTP_CPORT 68 /* .. client port */
  42. #define BOOTP_REQ 1 /* BOOTP request */
  43. #define BOOTP_REP 2 /* .. reply */
  44. /* BOOTP flags field */
  45. #define BOOTP_BCAST 0x8000 /* BOOTP broadcast flag */
  46. #define BOOTP_FLAGS BOOTP_BCAST /* .. for FDDI address transl. */
  47. #endif /* __BOOTP_H */
  48. /* EOF - $Workfile: bootp.h $ */