Difference between revisions of "Unit DHCP"

From Ultibo.org
Jump to: navigation, search
Line 10: Line 10:
 
----
 
----
  
''To be documented''
+
 
 +
<div class="toccolours mw-collapsible mw-collapsed" style="border: 1; font-family: arial; padding-top: 20px; padding-bottom: 15px;">
 +
<div style="font-size: 14px; padding-left: 12px;">'''DHCP specific constants''' <code> BOOTP_* </code></div>
 +
<div class="mw-collapsible-content" style="text-align: left; padding-left: 5px;">
 +
{| class="wikitable" style="font-size: 14px; background: white;"
 +
|-
 +
| <code>BOOTP_DELAY = 1000;</code>
 +
| (Previously 0)
 +
|-
 +
| <code>BOOTP_TIMEOUT = 8000;</code>
 +
| (Previously 4000) We wait for 8 seconds for a BOOTP reply
 +
|-
 +
| <code>BOOTP_RETRIES = 6;</code>
 +
| (Previously 4) Try the request 6 times
 +
|-
 +
|colspan="2"|&nbsp;
 +
|-
 +
| <code>BOOTP_MIN_DELAY = 0;</code>
 +
| &nbsp;
 +
|-
 +
| <code>BOOTP_MAX_DELAY = 10000;</code>
 +
| &nbsp;
 +
|-
 +
| <code>BOOTP_MIN_TIMEOUT = 500;</code>
 +
| &nbsp;
 +
|-
 +
| <code>BOOTP_MAX_TIMEOUT = 15000;</code>
 +
| &nbsp;
 +
|-
 +
| <code>BOOTP_MIN_RETRIES = 1;</code>
 +
| &nbsp;
 +
|-
 +
| <code>BOOTP_MAX_RETRIES = 100;</code>
 +
| &nbsp;
 +
|-
 +
|colspan="2"|&nbsp;
 +
|-
 +
| <code>DHCP_DELAY = 1000;</code>
 +
| (Previously 0)
 +
|-
 +
| <code>DHCP_TIMEOUT = 8000;</code>
 +
| (Previously 4000) We wait for 8 seconds for a DHCP reply
 +
|-
 +
| <code>DHCP_RETRIES = 6;</code>
 +
| (Previously 4) Try the request 6 times
 +
|-
 +
|colspan="2"|&nbsp;
 +
|-
 +
| <code>DHCP_MIN_DELAY = 0;</code>
 +
| &nbsp;
 +
|-
 +
| <code>DHCP_MAX_DELAY = 10000;</code>
 +
| &nbsp;
 +
|-
 +
| <code>DHCP_MIN_TIMEOUT = 500;</code>
 +
| &nbsp;
 +
|-
 +
| <code>DHCP_MAX_TIMEOUT = 15000;</code>
 +
| &nbsp;
 +
|-
 +
| <code>DHCP_MIN_RETRIES = 1;</code>
 +
| &nbsp;
 +
|-
 +
| <code>DHCP_MAX_RETRIES = 100;</code>
 +
| &nbsp;
 +
|-
 +
|colspan="2"|&nbsp;
 +
|-
 +
| <code>BOOTP_VENDOR_SIZE = 64;</code>
 +
| Size of the Vendor area
 +
|-
 +
|colspan="2"|&nbsp;
 +
|-
 +
| <code>DHCP_OPTIONS_SIZE = 312;</code>
 +
| Size of the Options area
 +
|-
 +
| <code>DHCP_MESSAGE_SIZE = 576;</code>
 +
| Size of the max message
 +
|-
 +
|}
 +
</div></div>
 +
<br />
 +
<div class="toccolours mw-collapsible mw-collapsed" style="border: 1; font-family: arial; padding-top: 20px; padding-bottom: 15px;">
 +
<div style="font-size: 14px; padding-left: 12px;">'''BOOTP/DHCP request constants''' <code> BOOTP_REQUEST* </code></div>
 +
<div class="mw-collapsible-content" style="text-align: left; padding-left: 5px;">
 +
{| class="wikitable" style="font-size: 14px; background: white;"
 +
|-
 +
| <code>BOOTP_REQUEST = 1;</code>
 +
| style="width: 50%;"|&nbsp;
 +
|-
 +
| <code>BOOTP_REPLY = 2;</code>
 +
| &nbsp;
 +
|-
 +
|}
 +
</div></div>
 +
<br />
 +
<div class="toccolours mw-collapsible mw-collapsed" style="border: 1; font-family: arial; padding-top: 20px; padding-bottom: 15px;">
 +
<div style="font-size: 14px; padding-left: 12px;">'''DHCP message constants''' <code> DHCP_* </code></div>
 +
<div class="mw-collapsible-content" style="text-align: left; padding-left: 5px;">
 +
{| class="wikitable" style="font-size: 14px; background: white;"
 +
|-
 +
| <code>DHCP_DISCOVER = 1;</code>
 +
| style="width: 50%;"|&nbsp;
 +
|-
 +
| <code>DHCP_OFFER = 2;</code>
 +
| &nbsp;
 +
|-
 +
| <code>DHCP_REQUEST = 3;</code>
 +
| &nbsp;
 +
|-
 +
| <code>DHCP_DECLINE = 4;</code>
 +
| &nbsp;
 +
|-
 +
| <code>DHCP_ACK = 5;</code>
 +
| &nbsp;
 +
|-
 +
| <code>DHCP_NAK = 6;</code>
 +
| &nbsp;
 +
|-
 +
| <code>DHCP_RELEASE = 7;</code>
 +
| &nbsp;
 +
|-
 +
| <code>DHCP_INFORM = 8;</code>
 +
| &nbsp;
 +
|-
 +
|colspan="2"|&nbsp;
 +
|-
 +
| <code>DHCP_RENEWAL_TO = 1;</code>
 +
| &nbsp;
 +
|-
 +
| <code>DHCP_REBIND_TO = 2;</code>
 +
| &nbsp;
 +
|-
 +
|}
 +
</div></div>
 +
<br />
 +
<div class="toccolours mw-collapsible mw-collapsed" style="border: 1; font-family: arial; padding-top: 20px; padding-bottom: 15px;">
 +
<div style="font-size: 14px; padding-left: 12px;">'''BOOTP/DHCP constants'''</div>
 +
<div class="mw-collapsible-content" style="text-align: left; padding-left: 5px;">
 +
{| class="wikitable" style="font-size: 14px; background: white;"
 +
|-
 +
| <code>PAD_OPT = 0;</code>
 +
| style="width: 50%;"|&nbsp;
 +
|-
 +
| <code>END_OPT = 255;</code>
 +
| &nbsp;
 +
|-
 +
| <code>SUBNET_MASK = 1;</code>
 +
| &nbsp;
 +
|-
 +
| <code>TIME_OFFSET = 2;</code>
 +
| &nbsp;
 +
|-
 +
| <code>ROUTERS_ON_SNET = 3;</code>
 +
| &nbsp;
 +
|-
 +
| <code>TIME_SRV = 4;</code>
 +
| &nbsp;
 +
|-
 +
| <code>NAME_SRV = 5;</code>
 +
| &nbsp;
 +
|-
 +
| <code>DNS_SRV = 6;</code>
 +
| &nbsp;
 +
|-
 +
| <code>LOG_SRV = 7;</code>
 +
| &nbsp;
 +
|-
 +
| <code>COOKIE_SRV = 8;</code>
 +
| &nbsp;
 +
|-
 +
| <code>LPR_SRV = 9;</code>
 +
| &nbsp;
 +
|-
 +
| <code>IMPRESS_SRV = 10;</code>
 +
| &nbsp;
 +
|-
 +
| <code>RES_LOCATION_SRV = 11;</code>
 +
| &nbsp;
 +
|-
 +
| <code>HOST_NAME = 12;</code>
 +
| &nbsp;
 +
|-
 +
| <code>BOOT_FSIZE = 13;</code>
 +
| &nbsp;
 +
|-
 +
| <code>MERIT_DUMPFILE = 14;</code>
 +
| &nbsp;
 +
|-
 +
| <code>DOMAIN_NAME = 15;</code>
 +
| &nbsp;
 +
|-
 +
| <code>SWAP_SRV = 16;</code>
 +
| &nbsp;
 +
|-
 +
| <code>ROOT_PATH = 17;</code>
 +
| &nbsp;
 +
|-
 +
| <code>EXTENTIONS_PATH = 18;</code>
 +
| &nbsp;
 +
|-
 +
| <code>IP_FORWARDING = 19;</code>
 +
| &nbsp;
 +
|-
 +
| <code>NON_LOCAL_SRC_ROUTE = 20;</code>
 +
| &nbsp;
 +
|-
 +
| <code>POLICY_FILTER = 21;</code>
 +
| &nbsp;
 +
|-
 +
| <code>MAX_DGRAM_REASM_SIZE = 22;</code>
 +
| &nbsp;
 +
|-
 +
| <code>IP_DEFAULT_TTL = 23;</code>
 +
| &nbsp;
 +
|-
 +
| <code>PATH_MTU_AGING_TIMEOUT = 24;</code>
 +
| &nbsp;
 +
|-
 +
| <code>PATH_MTU_PLATEAU_TABLE = 25;</code>
 +
| &nbsp;
 +
|-
 +
| <code>IF_MTU = 26;</code>
 +
| &nbsp;
 +
|-
 +
| <code>ALL_SUBNETS_LOCAL = 27;</code>
 +
| &nbsp;
 +
|-
 +
| <code>BROADCAST_ADDR = 28;</code>
 +
| &nbsp;
 +
|-
 +
| <code>PERFORM_MASK_DISCOVERY = 29;</code>
 +
| &nbsp;
 +
|-
 +
| <code>MASK_SUPPLIER = 30;</code>
 +
| &nbsp;
 +
|-
 +
| <code>PERFORM_ROUTER_DISCOVERY = 31;</code>
 +
| &nbsp;
 +
|-
 +
| <code>ROUTER_SOLICITATION_ADDR = 32;</code>
 +
| &nbsp;
 +
|-
 +
| <code>STATIC_ROUTE = 33;</code>
 +
| &nbsp;
 +
|-
 +
| <code>TRAILER_ENCAPSULATION = 34;</code>
 +
| &nbsp;
 +
|-
 +
| <code>ARP_CACHE_TIMEOUT = 35;</code>
 +
| &nbsp;
 +
|-
 +
| <code>ETHERNET_ENCAPSULATION = 36;</code>
 +
| &nbsp;
 +
|-
 +
| <code>TCP_DEFAULT_TTL = 37;</code>
 +
| &nbsp;
 +
|-
 +
| <code>TCP_KEEPALIVE_INTERVAL = 38;</code>
 +
| &nbsp;
 +
|-
 +
| <code>TCP_KEEPALIVE_GARBAGE = 39;</code>
 +
| &nbsp;
 +
|-
 +
| <code>NIS_DOMAIN_NAME = 40;</code>
 +
| &nbsp;
 +
|-
 +
| <code>NIS_SRVS = 41;</code>
 +
| &nbsp;
 +
|-
 +
| <code>NTP_SRVS = 42;</code>
 +
| &nbsp;
 +
|-
 +
| <code>VENDOR_SPECIFIC_INFO = 43;</code>
 +
| &nbsp;
 +
|-
 +
| <code>NBIOS_NAME_SRV = 44;</code>
 +
| &nbsp;
 +
|-
 +
| <code>NBIOS_DGRAM_DIST_SRV = 45;</code>
 +
| &nbsp;
 +
|-
 +
| <code>NBIOS_NODE_TYPE = 46;</code>
 +
| &nbsp;
 +
|-
 +
| <code>NBIOS_SCOPE = 47;</code>
 +
| &nbsp;
 +
|-
 +
| <code>XFONT_SRV = 48;</code>
 +
| &nbsp;
 +
|-
 +
| <code>XDISPLAY_MANAGER = 49;</code>
 +
| &nbsp;
 +
|-
 +
|colspan="2"|''DHCP Options''
 +
|-
 +
| <code>DHCP_REQUESTED_IP_ADDR = 50;</code>
 +
| &nbsp;
 +
|-
 +
| <code>DHCP_IP_ADDR_LEASE_TIME = 51;</code>
 +
| &nbsp;
 +
|-
 +
| <code>DHCP_OPT_OVERLOAD = 52;</code>
 +
| &nbsp;
 +
|-
 +
| <code>DHCP_MSG_TYPE = 53;</code>
 +
| &nbsp;
 +
|-
 +
| <code>DHCP_SRV_IDENTIFIER = 54;</code>
 +
| &nbsp;
 +
|-
 +
| <code>DHCP_PARAM_REQUEST = 55;</code>
 +
| &nbsp;
 +
|-
 +
| <code>DHCP_MSG = 56;</code>
 +
| &nbsp;
 +
|-
 +
| <code>DHCP_MAX_MSG_SIZE = 57;</code>
 +
| &nbsp;
 +
|-
 +
| <code>DHCP_T1_VALUE = 58;</code>
 +
| &nbsp;
 +
|-
 +
| <code>DHCP_T2_VALUE = 59;</code>
 +
| &nbsp;
 +
|-
 +
| <code>DHCP_CLASS_ID = 60;</code>
 +
| &nbsp;
 +
|-
 +
| <code>DHCP_CLIENT_ID = 61;</code>
 +
| &nbsp;
 +
|-
 +
| <code>DHCP_NIS_DOMAIN_OPT = 64;</code>
 +
| &nbsp;
 +
|-
 +
| <code>DHCP_NIS_SRV_OPT = 65;</code>
 +
| &nbsp;
 +
|-
 +
| <code>DHCP_TFTP_SERVER = 66;</code>
 +
| &nbsp;
 +
|-
 +
| <code>DHCP_BOOT_FILENAME = 67;</code>
 +
| &nbsp;
 +
|-
 +
| <code>DHCP_MOBIP_HOME_AGENTS = 68;</code>
 +
| &nbsp;
 +
|-
 +
| <code>DHCP_SMTP_SRVS = 69;</code>
 +
| &nbsp;
 +
|-
 +
| <code>DHCP_POP3_SRVS = 70;</code>
 +
| &nbsp;
 +
|-
 +
| <code>DHCP_NNTP_SRVS = 71;</code>
 +
| &nbsp;
 +
|-
 +
| <code>DHCP_WWW_SRVS = 72;</code>
 +
| &nbsp;
 +
|-
 +
| <code>DHCP_FINGER_SRVS = 73;</code>
 +
| &nbsp;
 +
|-
 +
| <code>DHCP_IRC_SRVS = 74;</code>
 +
| &nbsp;
 +
|-
 +
| <code>DHCP_STREET_TALK_SRVS = 75;</code>
 +
| &nbsp;
 +
|-
 +
| <code>DHCP_STDA_SRVS = 76;</code>
 +
| &nbsp;
 +
|-
 +
|}
 +
</div></div>
 +
<br />
 +
<div class="toccolours mw-collapsible mw-collapsed" style="border: 1; font-family: arial; padding-top: 20px; padding-bottom: 15px;">
 +
<div style="font-size: 14px; padding-left: 12px;">'''DHCP flag constants''' <code> DHCP_FLAG_* </code></div>
 +
<div class="mw-collapsible-content" style="text-align: left; padding-left: 5px;">
 +
{| class="wikitable" style="font-size: 14px; background: white;"
 +
|-
 +
| <code>DHCP_FLAG_BROADCAST = $8000;</code>
 +
| style="width: 50%;"|&nbsp;
 +
|-
 +
|}
 +
</div></div>
 +
<br />
 +
<div class="toccolours mw-collapsible mw-collapsed" style="border: 1; font-family: arial; padding-top: 20px; padding-bottom: 15px;">
 +
<div style="font-size: 14px; padding-left: 12px;">'''ARP config constants''' <code> ARP_CONFIG_* </code></div>
 +
<div class="mw-collapsible-content" style="text-align: left; padding-left: 5px;">
 +
{| class="wikitable" style="font-size: 14px; background: white;"
 +
|-
 +
| <code>ARP_CONFIG_START = $C0A86401;</code>
 +
| 192.168.100.1
 +
|-
 +
| <code>ARP_CONFIG_STOP = $C0A864FE;</code>
 +
| 192.168.100.254
 +
|-
 +
|}
 +
</div></div>
 +
<br />
  
 
=== Type definitions ===
 
=== Type definitions ===

Revision as of 02:45, 9 December 2016

Return to Unit Reference


Description


To be documented

Constants



[Expand]
DHCP specific constants BOOTP_*


[Expand]
BOOTP/DHCP request constants BOOTP_REQUEST*


[Expand]
DHCP message constants DHCP_*


[Expand]
BOOTP/DHCP constants


[Expand]
DHCP flag constants DHCP_FLAG_*


[Expand]
ARP config constants ARP_CONFIG_*


Type definitions


To be documented

Public variables


To be documented

Function declarations



Initialization functions

[Expand]
procedure DHCPInit;
Description: To be documented


Return to Unit Reference