C# Class Ipop.Managed.ManagedNodeHelper

This class implements various methods needed for the ManagedIpopNode
Mostra file Open project: pstjuste/brunet Class Usage Examples

Public Methods

Method Description
GetNetwork ( string networkdevice, MemBlock startip ) : MemBlock

Finds an available IP range on the system

TextTranslate ( MemBlock payload, string old_ss_ip, string old_sd_ip, string new_ss_ip, string new_sd_ip, string packet_id ) : MemBlock

This method replaces IP addresses based on some identifier

Method Details

GetNetwork() public static method

Finds an available IP range on the system
public static GetNetwork ( string networkdevice, MemBlock startip ) : MemBlock
networkdevice string Device to be ignored
startip MemBlock Device to be ignored
return MemBlock

TextTranslate() public static method

This method replaces IP addresses based on some identifier
public static TextTranslate ( MemBlock payload, string old_ss_ip, string old_sd_ip, string new_ss_ip, string new_sd_ip, string packet_id ) : MemBlock
payload MemBlock Payload to be translated
old_ss_ip string Old source IP address
old_sd_ip string Old destination IP
new_ss_ip string New source IP address
new_sd_ip string New destination IP address
packet_id string A packet identifier
return MemBlock