38 memcpy(nnw, nw,
sizeof* nnw);
65 for(i=0;i<
DEVICE(ndev)->nNumOfInterface;i++)
81 for(i=0;i<
DEVICE(ndev)->nNumOfInterface;i++)
101 for (i = 0; i <
DEVICE(ndev)->nNumOfInterface; i++)
138 for (i = 0; i <
DEVICE(ndev)->nNumOfInterface; i++)
bool isBroadcastIP(NETSIM_IPAddress ip)
NETSIM_IPAddress IP_NETWORK_ADDRESS(NETSIM_IPAddress ip, NETSIM_IPAddress subnet, unsigned int prefix_len)
#define IP_COMPARE(ip1, ip2)
bool isMulticastIP(NETSIM_IPAddress ip)
int fn_NetSim_NAT_NetworkIn(NETSIM_ID ndev, NetSim_PACKET *packet)
static void remove_dest(NetSim_PACKET *packet)
static void add_new_dest(NetSim_PACKET *packet, NETSIM_IPAddress ip)
int fn_NetSim_NAT_NetworkOut(NETSIM_ID ndev, NetSim_PACKET *packet)
NETSIM_ID * get_dest_from_packet(NetSim_PACKET *packet, UINT *count)
#define DEVICE_FIRST_PUBLICIP(DeviceId)
#define DEVICE_NWADDRESS(DeviceId, InterfaceId)
#define DEVICE_INTERFACE(DeviceId, InterfaceId)
struct stru_NetSim_Packet_NetworkLayer * next
void * Packet_RoutingProtocol
NETSIM_IPAddress szDestIP
void * Packet_NetworkProtocol
struct stru_NetSim_Packet_NetworkLayer * pstruNetworkData