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 */
15typedef struct stru_VPN
16{
21/** Structure to store the VPN packet. */
22typedef 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
30
unsigned int NETSIM_ID
Definition: Animation.h:45
struct stru_VPN_Packet VPN_PACKET
NETSIM_IPAddress getVirtualIP(NETSIM_ID ndeviceId)
Definition: VPN.c:313
struct stru_VPN VPN
enum enum_PacketType PACKET_TYPE
Definition: main.h:123
void * ipVar
Original IP header.
Definition: VPN.h:26
unsigned int nControlPacketType
Original control packet type.
Definition: VPN.h:28
NETSIM_IPAddress sourceIP
Original source.
Definition: VPN.h:24
PACKET_TYPE nPacketType
Original packet type.
Definition: VPN.h:27
NETSIM_IPAddress destIP
Original destination
Definition: VPN.h:25
Definition: VPN.h:16
NETSIM_IPAddress * LocalIP
Definition: VPN.h:18
unsigned int nConnectedDeviceCount
Definition: VPN.h:17
NETSIM_IPAddress * InternetIP
Definition: VPN.h:19