Main Page   Alphabetical List   Data Structures   File List   Data Fields   Globals  

dhcp_packet Struct Reference

Structure of a DHCP packet. More...

#include <packets_data.h>


Data Fields

unsigned char op
 opcode.

unsigned char htype
 Hardware type.

unsigned char hlen
 Hardware address length.

unsigned char hops
 Hop count (used only by gateway, otherwise 0).

unsigned long int xid
 Transaction ID (random number).

unsigned short int secs
 Number of seconds since first request.

unsigned short int flags
 See RFC 1542.

unsigned long int ciaddr
 Client IP address.

unsigned long int yiaddr
 Your IP address.

unsigned long int siaddr
 Server IP address.

unsigned long int giaddr
 Gateway IP address.

char chaddr [16]
 Client hardware address.

char sname [64]
 Server host name.

char file [128]
 Boot file name. Form 'op' to 'file' (included), there are 236 bytes.

char options [OPTION_SIZE]
 options part (4 bytes magic number + raw options).

op_control ctrl
 Operation data.


Detailed Description

Structure of a DHCP packet.

Definition at line 239 of file packets_data.h.


The documentation for this struct was generated from the following file:
Generated on Mon Jun 19 12:31:07 2006 for MyDhcp_V2 by doxygen1.2.15