NetSim Source Code Help v14.4
All 13 Components
 
Loading...
Searching...
No Matches
DHCP.h
1/************************************************************************************
2 * Copyright (C) 2023 *
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
18extern "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