Dhcp client api
Download
1 / 5

DHCP Client API - PowerPoint PPT Presentation


  • 77 Views
  • Uploaded on

DHCP Client API. 1. Discover. 2. Offer. 3. 4. Request. Acknowledge. Auto-Configuration with DHCP. DHCP Server. NETWORK. Using Appconf.h Set APP_USE_NVRAM to 0 Set APP_IP_USE_DHCP to 1. Using NVRAM Set APP_USE_NVRAM to 0 Use the useDHCP data member

loader
I am the owner, or an agent authorized to act on behalf of the owner, of the copyrighted work described.
capcha
Download Presentation

PowerPoint Slideshow about ' DHCP Client API' - clodia


An Image/Link below is provided (as is) to download presentation

Download Policy: Content on the Website is provided to you AS IS for your information and personal use and may not be sold / licensed / shared on other websites without getting consent from its author.While downloading, if for some reason you are not able to download a presentation, the publisher may have deleted the file from their server.


- - - - - - - - - - - - - - - - - - - - - - - - - - E N D - - - - - - - - - - - - - - - - - - - - - - - - - -
Presentation Transcript

Auto configuration with dhcp

1

Discover

2

Offer

3

4

Request

Acknowledge

Auto-Configuration with DHCP

DHCP Server

NETWORK


Enabling the dhcp client

Using Appconf.h

Set APP_USE_NVRAM to 0

Set APP_IP_USE_DHCP to 1

Using NVRAM

Set APP_USE_NVRAM to 0

Use the useDHCP datamember

Enable or disable DHCP through the defaultParameters record defaultParams) or NVRAM (nvParams)

Enabling the DHCP Client


After enabling the client
After Enabling, the Client…

  • Configures the TCP/IP protocol stack with the correct IP address, subnet mask, and default gateway

  • Starts a background task that renews the lease whenever it is about to expire

  • Loads any DNS server acquired through DHCP into the list of known DNS servers

  • Calls DhcpNowBound()


Dhcp api

DhcpNowBound()

DhcpLostLease()

Called when DHCP server acknowledges the client.

IP Parameters accessible from within this function:

IP Address

Subnet Mask

Default Gateway

DHCP API

  • Called by lease renewal thread when Client loses IP address lease.

  • Used for “graceful” shutdown, however IP address cannot be re-used.


ad