public static void Initialize(ARP arpSession) { DebugPrint("Creating new IP module\n"); arp = arpSession; UDP.Initialize(); //TCP.Initialize(); hostConfiguration = new HostConfiguration(); }
public ArpTable(ARP arp) { DebugPrint("creating ArpTable size={0}, age={1}\n", defaultSize, MaxAge); arpEntries = new Hashtable(defaultSize); maxEntries = defaultSize; defaultAge = MaxAge; this.arp = arp; }
public ArpTable(int size, int age, ARP arp) { DebugPrint("creating ArpTable size={0}, age={1}\n", size, age); arpEntries = new Hashtable(size); maxEntries = size; defaultAge = age; this.arp = arp; }
internal static int AppMain(ServiceParameters parameters) { NicDeviceContract /*.Imp*/ nicImp = parameters.NicEndpointRef.Acquire(); nicImp.RecvSuccess(); //delete nicImp; DebugStub.WriteLine("Closed nic contract via reflection\n"); ARP arp = new ARP(); IP.Initialize(arp); Ethernet.Initialize(arp); NetStackApplication app = new NetStackApplication(parameters); try { return(app.Run()); } finally { //delete app; Dbg("NetStack is terminating."); } }
public static void Initialize(ARP arpSession) { arp = arpSession; }