Choco OS  V.0.16.9.0
Join to the chocolate world
DHCP

Dynamic Host Configuration Protocol. More...

Data Structures

struct  PACKED
 stores IPv6 address More...
 

Macros

#define oC_DHCP_MAGIC_COOKIE   0x63825363
 Magic cookie for the DHCP message.
 
#define oC_DHCP_END_OPTION   0xFF
 Value for marking last entry in the options array.
 

Typedefs

typedef struct PACKED oC_Dhcp_Message_t
 stores DHCP message More...
 

Enumerations

Detailed Description

The module is for communication with DHCP server (or client)

Typedef Documentation

typedef struct PACKED oC_Dhcp_Message_t

The type is for storing DHCP message format.

Enumeration Type Documentation

The type is for storing flags used in the oC_Dhcp_Message_t type.

Enumerator
oC_Dhcp_Flags_None 

None flag is set.

oC_Dhcp_Flags_Broadcast 

Broadcast flag - a client does not know its own IP address so it send the message as broadcast.

The server receives the message and responds for it also as a broadcast

Definition at line 125 of file oc_dhcp.h.

The type is for storing hardware type used for the local network.

Enumerator
oC_Dhcp_HardwareType_Ethernet 

Ethernet (10Mb)

oC_Dhcp_HardwareType_IEEE802Networks 

IEEE 802 Networks.

oC_Dhcp_HardwareType_ARCNET 

ARCNET.

oC_Dhcp_HardwareType_LocalTalk 

LocalTalk.

oC_Dhcp_HardwareType_LocalNet 

LocalNet (IBM PCNet or SYTEK LocalNET)

oC_Dhcp_HardwareType_SMDS 

SMDS.

oC_Dhcp_HardwareType_FrameRelay 

Frame Relay.

oC_Dhcp_HardwareType_AsynchronousTransferMode 

Asynchronous Transfer Mode (ATM)

oC_Dhcp_HardwareType_HDLC 

HDLC.

oC_Dhcp_HardwareType_FibreChannel 

Fibre Channel.

oC_Dhcp_HardwareType_SerialLine 

Serial Line.

Definition at line 102 of file oc_dhcp.h.

Enumerator
oC_Dhcp_OperationCode_Request 

Request to a server.

oC_Dhcp_OperationCode_Reply 

Reply from the server.

Definition at line 88 of file oc_dhcp.h.

The type is for storing DHCP options that can be placed in the DHCP message. You should use oC_Dhcp_OptionLength_t type to receive size in bytes required for the given option.

See also
oC_Dhcp_OptionLength_t
Enumerator
oC_Dhcp_Option_Pad 

The PAD value used to align word bound.

oC_Dhcp_Option_End 

The end option marks end of the options array.

oC_Dhcp_Option_SubnetMask 

Specifies subnetwork mask.

oC_Dhcp_Option_TimeOffset 

Offset of the client subnetwork in seconds from Coordinated Universal Time (UTC).

oC_Dhcp_Option_Router 

The router option specifies a list of IP addresses on the client subnetwork.

oC_Dhcp_Option_DnsServer 

List of DNS servers in the subnetwork.

oC_Dhcp_Option_Hostname 

Specifies name of the client.

oC_Dhcp_Option_DefaultTTL 

Specifies default TTL value for packets.

oC_Dhcp_Option_MTU 

Specifies MTU for the interface.

oC_Dhcp_Option_Broadcast 

Address to use in client subnetwork for sending broadcast packets.

oC_Dhcp_Option_TcpTTL 

Default TTL value for TCP segments.

oC_Dhcp_Option_Ntp 

List of Network Time Protocol Servers available in the subnetwork.

oC_Dhcp_Option_RequestedIp 

The option allows to request the specified static IP.

oC_Dhcp_Option_LeaseTime 

Allows the client to request a lease time for the IP address.

The time is in seconds

oC_Dhcp_Option_Overload 

Used by the DHCP server to mark, that File or SName or both of these fields are overloaded to store DHCP options.

oC_Dhcp_Option_ServerId 

Destination IP address of DHCP server.

oC_Dhcp_Option_RequestedList 

Used by the DHCP client to request values for specified configuration parameters.

oC_Dhcp_Option_MessageType 

Used to mark type of the message - 1 for Discover, 2 - Offer, 3 - Request, 4 - Declide, 5 - Pack , 6 - Pnak, 7 - Release, 8 - Inform

oC_Dhcp_Option_T1RenewalTime 

Time interval from address assignment until the client have to renew the address.

oC_Dhcp_Option_T2RebingingTime 

Time interval until the client transitions to the REBINDING state.

oC_Dhcp_Option_ClientId 

Used by the DHCP clients to specify their unique ID.

oC_Dhcp_Option_TftpServerName 

When the SName field is used for options, this field specifies name of the TFTP server.

oC_Dhcp_Option_Bootfile 

When the File field is used for options, this field specifies a boot file name.

Definition at line 142 of file oc_dhcp.h.