示例#1
0
 public static void Initialize(ARP arpSession)
 {
     DebugPrint("Creating new IP module\n");
     arp = arpSession;
     UDP.Initialize();
     //TCP.Initialize();
     hostConfiguration = new HostConfiguration();
 }
示例#2
0
        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;
        }
示例#3
0
        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;
        }
示例#4
0
        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.");
            }
        }
示例#5
0
 public static void Initialize(ARP arpSession)
 {
     arp = arpSession;
 }