Jump to main content

##

# TCPIP_DHCPS_Disable Function

## C

    bool TCPIP_DHCPS_Disable(
        TCPIP_NET_HANDLE hNet
    );

## Description

This function disables the DHCP Server for the specified interface. If it is already disabled, no action is taken.

## Preconditions

The DHCP server module must be initialized.

## Parameters

Parameters | Description
--- | ---
hNet | Interface on which to disable the DHCP Server.

## Returns

- True - If successful.
- False - If unsuccessful.

## Remarks

When the interface continues using its old configuration, it is possible that the lease may take sometime to expire. And The communication will be there until it is not expired.Lease time is configured in dhcps_config.h.