コード例 #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
ファイル: ARP.cs プロジェクト: vmkc/research-environment
        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
ファイル: ARP.cs プロジェクト: vmkc/research-environment
        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
ファイル: Ethernet.cs プロジェクト: Paul1nh0/Singularity
 public static void Initialize(ARP arpSession)
 {
     arp = arpSession;
 }