public override bool ModuleStart() { data = Load <ArpData>(); if (data == null) { data = new ArpData(); } return(true); }
public override bool ModuleStop() { if (data != null) { ArpData d = data; if (!d.Save) { d.arpCache = new SerializableDictionary <IPAddr, MACAddr>(); } Save <ArpData>(d); } return(true); }
public override ModuleError ModuleStart() { LoadConfig(); if (PersistentData == null) { data = new ArpData(); } else { data = (ArpData)PersistentData; } ModuleError me = new ModuleError(); me.errorType = ModuleErrorType.Success; return me; }
public override ModuleError ModuleStart() { LoadConfig(); if (PersistentData == null) { data = new ArpData(); } else { data = (ArpData)PersistentData; } ModuleError me = new ModuleError(); me.errorType = ModuleErrorType.Success; return(me); }
public override bool ModuleStart() { data = Load<ArpData>(); if (data == null) { data = new ArpData(); } return true; }