File nut/boot/bootmon/dhcp.h

Included in: nut/boot/bootmon/bootmon.c
  nut/boot/bootmon/bootmon.h
  nut/boot/bootmon/dhcp.c

Preprocessor definitions

#define _DHCP_H

#define DHCP_SERVERPORT 0x4300

#define DHCP_CLIENTPORT 0x4400

#define DHCPOPT_PAD 0

#define DHCPOPT_NETMASK 1

#define DHCPOPT_GATEWAY 3

#define DHCPOPT_DNS 6

#define DHCPOPT_HOSTNAME 12

#define DHCPOPT_DOMAIN 15

#define DHCPOPT_BROADCAST 28

#define DHCPOPT_REQUESTIP 50

#define DHCPOPT_LEASETIME 51

#define DHCPOPT_MSGTYPE 53

#define DHCPOPT_SID 54

#define DHCPOPT_RENEWALTIME 58

#define DHCPOPT_REBINDTIME 59

#define DHCPOPT_END 255

#define DHCP_DISCOVER 1

#define DHCP_OFFER 2

#define DHCP_REQUEST 3

#define DHCP_DECLINE 4

#define DHCP_ACK 5

#define DHCP_NAK 6

#define DHCP_RELEASE 7

#define DHCP_INFORM 8


Typedef BOOTPHDR

typedef struct bootp BOOTPHDR
struct bootp  
   {  
      unsigned char bp_op;  
      unsigned char bp_htype;  
      unsigned char bp_hlen;  
      unsigned char bp_hops;  
      unsigned long bp_xid;  
      unsigned short bp_secs;  
      unsigned short bp_flags;  
      unsigned long bp_ciaddr;  
      unsigned long bp_yiaddr;  
      unsigned long bp_siaddr;  
      unsigned long bp_giaddr;  
      unsigned char bp_chaddr[16];  
      char bp_sname[64];  
      char bp_file[128];  
      unsigned long bp_cookie;  
      unsigned char bp_options[312];  
   }