NetSim Source Code Help
v14.4
All 13 Components
Loading...
Searching...
No Matches
VPN.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
/** Data structure to store the VPN */
15
typedef
struct
stru_VPN
16
{
17
unsigned
int
nConnectedDeviceCount;
18
NETSIM_IPAddress* LocalIP;
19
NETSIM_IPAddress* InternetIP;
20
}VPN;
21
/** Structure to store the VPN packet. */
22
typedef
struct
stru_VPN_Packet
23
{
24
NETSIM_IPAddress
sourceIP
;
///< Original source
25
NETSIM_IPAddress
destIP
;
///< Original destination
26
void
*
ipVar
;
///< Original IP header
27
PACKET_TYPE
nPacketType
;
///< Original packet type
28
unsigned
int
nControlPacketType
;
///< Original control packet type
29
}VPN_PACKET;
30
31
NETSIM_IPAddress getVirtualIP(NETSIM_ID ndeviceId);
stru_VPN_Packet
Definition
VPN.h:23
stru_VPN_Packet::ipVar
void * ipVar
Original IP header.
Definition
VPN.h:26
stru_VPN_Packet::nControlPacketType
unsigned int nControlPacketType
Original control packet type.
Definition
VPN.h:28
stru_VPN_Packet::sourceIP
NETSIM_IPAddress sourceIP
Original source.
Definition
VPN.h:24
stru_VPN_Packet::nPacketType
PACKET_TYPE nPacketType
Original packet type.
Definition
VPN.h:27
stru_VPN_Packet::destIP
NETSIM_IPAddress destIP
Original destination.
Definition
VPN.h:25
stru_VPN
Definition
VPN.h:16
ALL
Component 3
IP
VPN.h
Generated by
1.13.2