bool _setMacEthernet(string mac) { bool ret = false; //get logsytem var prop_logsystem = testingInfo.GetType().GetProperty("logSystem"); string log_value = (string)prop_logsystem.GetValue(testingInfo); //get log uart var prop_loguart = testingInfo.GetType().GetProperty("logUart"); log_value += string.Format("\n-------------------------------\n"); log_value += string.Format("{0}, set mac ethernet\n", DateTime.Now); prop_logsystem.SetValue(testingInfo, log_value); int count = 0; RE_SET: count++; ret = camera.setMacEthernetViaUboot(mac); if (!ret) { if (count < 3) { goto RE_SET; } } return(ret); }