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 */
15typedef 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. */
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
29}VPN_PACKET;
30
31NETSIM_IPAddress getVirtualIP(NETSIM_ID ndeviceId);
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