Example #1
0
 public static boolean if_up(String ifname) {
   try {
     IFConfig.if_up(ifname);
     return true;
   } catch (IOException e) {
     return false;
   }
 }
Example #2
0
 public static boolean set_ip(String ifname, String ip, String netmask) {
   try {
     IFConfig.set_ip(ifname, ip, netmask);
     return true;
   } catch (IOException e) {
     return false;
   }
 }