RDK Documentation (Open Sourced RDK Components)
TR-069 Object (Device.DHCPv4.Interface.{i}) Public Classes

Description

Describe the details about classes used in TR069 Device DHCPv4 Client.

Data Structures

class  hostIf_DHCPv4Client
 This class provides the interface for getting device DHCPv4 Client information. More...
 

Data Structure Documentation

◆ hostIf_DHCPv4Client

class hostIf_DHCPv4Client

This class provides the interface for getting device DHCPv4 Client information.

Definition at line 151 of file Device_DHCPv4_Client.h.

Collaboration diagram for hostIf_DHCPv4Client:
Collaboration graph

Public Member Functions

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 devices. More...
 
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 devices. More...
 
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 devices. More...
 

Static Public Member Functions

static hostIf_DHCPv4ClientgetInstance (int dev_id)
 
static GList * getAllInstances ()
 
static void closeInstance (hostIf_DHCPv4Client *pDev)
 
static void closeAllInstances ()
 
static int get_Device_DHCPv4_ClientNumberOfEntries (HOSTIF_MsgData_t *stMsgData)
 
static void getLock ()
 
static void releaseLock ()
 
static GHashTable * getNotifyHash ()
 

Private Member Functions

 hostIf_DHCPv4Client (int dev_id)
 Class Constructor of the class hostIf_DHCPv4Client. More...
 
int get_Device_DHCPv4_Client_Fields (DHCPv4ClientMembers dhclientMember)
 
bool isIfnameInroutetoDNSServer (char *dnsServer, char *ifName)
 
bool isValidIPAddr (char *addr)
 
int getInterfaceName (char *ifname)
 

Private Attributes

int dev_id
 
DHCPv4Client backupDhcpClient
 
DHCPv4ClientParamBackUpFlag bBackUpFlags
 

Static Private Attributes

static GHashTable * dhcpv4ClientHash = NULL
 
static GMutex * m_mutex = NULL
 
static GHashTable * m_notifyHash = NULL
 
static DHCPv4Client dhcpClient = {{'\0'}, {'\0'}, {'\0'}}
 

Constructor & Destructor Documentation

◆ hostIf_DHCPv4Client()

hostIf_DHCPv4Client::hostIf_DHCPv4Client ( int  dev_id)
private

Class Constructor of the class hostIf_DHCPv4Client.

It will initialize the device id, interface, dns servers and ipRouters.

Parameters
[in]devidDevice identification Number.

Definition at line 49 of file Device_DHCPv4_Client.cpp.