NetSim Source Code Help
Loading...
Searching...
No Matches
DHCP.h
Go to the documentation of this file.
1
/************************************************************************************
2
* Copyright (C) 2020 *
3
* TETCOS, Bangalore. India *
4
* *
5
* Tetcos owns the intellectual property rights in the Product and its content. *
6
* The copying, redistribution, reselling or publication of any or all of the *
7
* Product or its content without express prior written consent of Tetcos is *
8
* prohibited. Ownership and / or any other right relating to the software and all *
9
* intellectual property rights therein shall remain at all times with Tetcos. *
10
* *
11
* Author: Shashi Kant Suman *
12
* *
13
* ---------------------------------------------------------------------------------*/
14
#include "
IP_Addressing.h
"
15
#ifndef _NETSIM_DHCP_H_
16
#define _NETSIM_DHCP_H_
17
#ifdef __cplusplus
18
extern
"C"
{
19
#endif
20
21
typedef
struct
stru_IP_DHCP
22
{
23
NETSIM_IPAddress
ip
;
24
NETSIM_IPAddress
subnet
;
25
NETSIM_IPAddress
gateway
;
26
NETSIM_IPAddress
*
iplist
;
27
unsigned
int
count
;
28
}
IP_DHCP
;
29
30
_declspec
(dllexport)
IP_DHCP
*
DHCP_Init
(
NETSIM_IPAddress
ip,
NETSIM_IPAddress
subnet,
NETSIM_IPAddress
gateway,
struct
stru_NetSim_Network
*
NETWORK
);
31
_declspec
(dllexport)
NETSIM_IPAddress
DHCP_GET_NEW_IP
(
IP_DHCP
* dhcp);
32
_declspec
(dllexport)
unsigned
int
DHCP_DELETE_IP
(
IP_DHCP
* dhcp,
NETSIM_IPAddress
ip);
33
#ifdef __cplusplus
34
}
35
#endif
36
#endif
IP_DHCP
struct stru_IP_DHCP IP_DHCP
DHCP_GET_NEW_IP
NETSIM_IPAddress DHCP_GET_NEW_IP(IP_DHCP *dhcp)
DHCP_DELETE_IP
unsigned int DHCP_DELETE_IP(IP_DHCP *dhcp, NETSIM_IPAddress ip)
DHCP_Init
IP_DHCP * DHCP_Init(NETSIM_IPAddress ip, NETSIM_IPAddress subnet, NETSIM_IPAddress gateway, struct stru_NetSim_Network *NETWORK)
IP_Addressing.h
_declspec
#define _declspec(dllexport)
This function is used to trigger the update.
Definition:
Linux.h:41
NETWORK
EXPORTED struct stru_NetSim_Network * NETWORK
Definition:
Stack.h:742
stru_IP_DHCP
Definition:
DHCP.h:22
stru_IP_DHCP::subnet
NETSIM_IPAddress subnet
Definition:
DHCP.h:24
stru_IP_DHCP::count
unsigned int count
Definition:
DHCP.h:27
stru_IP_DHCP::iplist
NETSIM_IPAddress * iplist
Definition:
DHCP.h:26
stru_IP_DHCP::ip
NETSIM_IPAddress ip
Definition:
DHCP.h:23
stru_IP_DHCP::gateway
NETSIM_IPAddress gateway
Definition:
DHCP.h:25
stru_NetSim_Network
Definition:
Stack.h:733
stru_ip
Definition:
IP_Addressing.h:35
ALL
Component 1
Part 4
Include
DHCP.h
Generated on Fri Dec 9 2022 10:22:45 for NetSim Source Code Help by
1.9.5