*/
private static final String STR_SSH_USERNAME_ROUTER = "root";
private static final String STR_SSH_USERNAME_HOST = "iotuser";
- private static final String STR_TCP_PROTOCOL = "tcp";
- private static final String STR_UDP_PROTOCOL = "udp";
- private static final String STR_TCPGW_PROTOCOL = "tcpgw";
- private static final String STR_NO_PROTOCOL = "nopro";
+ private static final String STR_TCP_PROTOCOL = "tcp";
+ private static final String STR_UDP_PROTOCOL = "udp";
+ private static final String STR_TCPGW_PROTOCOL = "tcpgw";
+ private static final String STR_NO_PROTOCOL = "nopro";
private static final String STR_ADD_MAC_EXT = ".tomoyo";
private static final String STR_MAC_POLICY_EXT = ".tomoyo.pol";
*/
public void getAddressList(String strRouterAddress) {
- //HashMap<String,String> hmMACToIPAdd = new HashMap<String,String>();
try {
// We can replace "cat /tmp/dhcp.leases" with "cat /proc/net/arp"
String cmd = "ssh " + STR_SSH_USERNAME_ROUTER + "@" + strRouterAddress +
replace(STR_OBJECT_CLASS_NAME, strObjectClassName).
replace(STR_MASTER_IP_ADDRESS, strMasterIPAddress).
replace(STR_MASTER_COM_PORT, String.valueOf(iComPort));
- //replace(STR_RMI_REG_PORT, String.valueOf(iRMIRegPort)).
- //replace(STR_RMI_STUB_PORT, String.valueOf(iRMIStubPort));
pwConfig.println("\n");
pwConfig.print(strNewPolicyList);
pwConfig.println("network inet stream bind/listen :: " + iRMIRegPort);
public void configureProcessJailInetAddressPolicies(String strConfigHost, String strRouterAddress, String strAddress) {
PrintWriter pwConfig = getPrintWriter(strConfigHost);
- //System.out.println("\n\nDEBUG: Writing the config host address setup!!!\n\n");
pwConfig.println("file read /etc/resolv.conf");
pwConfig.println("file read /etc/hosts");
pwConfig.println("file read /etc/host.conf");