|
RDK Documentation (Open Sourced RDK Components)
|
Go to the documentation of this file.
101 #ifndef DEVICE_DHCPv4_CLIENT_H_
102 #define DEVICE_DHCPv4_CLIENT_H_
105 #include "hostIf_tr69ReqHandler.h"
106 #include "hostIf_utils.h"
107 #include "hostIf_updateHandler.h"
109 #define MAX_IF_LEN 256 //Length of interface. http://www.broadband-forum.org/cwmp/tr-181-2-8-0.html#D.Device:2.Device.DHCPv4.Client.{i}.Interface
110 #define MAX_DNS_SERVER_LEN 256 //Length of DNS servers. http://www.broadband-forum.org/cwmp/tr-181-2-8-0.html#D.Device:2.Device.DHCPv4.Client.{i}.DNSServers
111 #define MAX_IP_ROUTER_LEN 256 //Length of IP Routers. http://www.broadband-forum.org/cwmp/tr-181-2-8-0.html#D.Device:2.Device.DHCPv4.Client.{i}.IPRouters
121 char interface[MAX_IF_LEN];
122 char dnsservers[MAX_DNS_SERVER_LEN];
123 char ipRouters[MAX_IP_ROUTER_LEN];
130 unsigned int interface:1;
131 unsigned int dnsservers:1;
132 unsigned int ipRouters:1;
153 static GHashTable *dhcpv4ClientHash;
154 static GMutex *m_mutex;
155 static GHashTable *m_notifyHash;
162 bool isIfnameInroutetoDNSServer(
char* dnsServer,
char* ifName);
163 bool isValidIPAddr(
char* addr);
164 int getInterfaceName(
char* ifname);
167 static GList* getAllInstances();
169 static void closeAllInstances();
170 static int get_Device_DHCPv4_ClientNumberOfEntries(
HOSTIF_MsgData_t *stMsgData);
174 static void getLock();
175 static void releaseLock();
176 static GHashTable* getNotifyHash();
hostIf_DHCPv4Client(int dev_id)
Class Constructor of the class hostIf_DHCPv4Client.
This class provides the interface for getting device DHCPv4 Client information.
struct DHCPv4Client DHCPv4Client
These values are the members variables of the DHCPv4Client structure.
int get_Device_DHCPv4_Client_DnsServer(HOSTIF_MsgData_t *stMsgData, bool *pChanged=NULL)
This gets the DNS server information used by the DHCP(Dynamic Host Configuration Protocol) v4 client ...
These values are the members variables of the DHCPv4Client structure.
These values are the members variables of the DHCPv4ClientParamBackUpFlag structure.
struct DHCPv4ClientParamBackUpFlag DHCPv4ClientParamBackUpFlag
These values are the members variables of the DHCPv4ClientParamBackUpFlag structure.
DHCPv4ClientMembers
These values are the members of the DHCPv4ClientMembers.
int get_Device_DHCPv4_Client_InterfaceReference(HOSTIF_MsgData_t *stMsgData, bool *pChanged=NULL)
This gets the interface information used by the DHCP(Dynamic Host Configuration Protocol) v4 client d...
int get_Device_DHCPv4_Client_IPRouters(HOSTIF_MsgData_t *stMsgData, bool *pChanged=NULL)
This gets the IP Routers information used by the DHCP(Dynamic Host Configuration Protocol) v4 client ...