NetSim Source Code Help
Loading...
Searching...
No Matches
VPN.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
/** 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);
NETSIM_ID
unsigned int NETSIM_ID
Definition:
Animation.h:45
VPN_PACKET
struct stru_VPN_Packet VPN_PACKET
getVirtualIP
NETSIM_IPAddress getVirtualIP(NETSIM_ID ndeviceId)
Definition:
VPN.c:313
VPN
struct stru_VPN VPN
PACKET_TYPE
enum enum_PacketType PACKET_TYPE
Definition:
main.h:123
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
stru_VPN::LocalIP
NETSIM_IPAddress * LocalIP
Definition:
VPN.h:18
stru_VPN::nConnectedDeviceCount
unsigned int nConnectedDeviceCount
Definition:
VPN.h:17
stru_VPN::InternetIP
NETSIM_IPAddress * InternetIP
Definition:
VPN.h:19
stru_ip
Definition:
IP_Addressing.h:35
ALL
Component 3
IP
VPN.h
Generated on Fri Dec 9 2022 10:22:46 for NetSim Source Code Help by
1.9.5