<?xml version="1.0" encoding="utf-8"?>
<feed xml:lang="en" xmlns="http://www.w3.org/2005/Atom"><title>Recent changes to wiki</title><link href="https://sourceforge.net/p/networkemulator/wiki/" rel="alternate"/><link href="https://sourceforge.net/p/networkemulator/wiki/feed.atom" rel="self"/><id>https://sourceforge.net/p/networkemulator/wiki/</id><updated>2013-05-23T09:07:24.917000Z</updated><subtitle>Recent changes to wiki</subtitle><entry><title>UserGuid modified by Zahid Mohammed</title><link href="https://sourceforge.net/p/networkemulator/wiki/UserGuid/" rel="alternate"/><published>2013-05-23T09:07:24.917000Z</published><updated>2013-05-23T09:07:24.917000Z</updated><author><name>Zahid Mohammed</name><uri>https://sourceforge.net/u/kimposte/</uri></author><id>https://sourceforge.net78a7d920c9c203e4a4017e60ccba038813f7812a</id><summary type="html">&lt;div class="markdown_content"&gt;&lt;pre&gt;--- v7
+++ v8
@@ -1,5 +1,11 @@
 ####Abstract####
 This page shows how to use this framework in order to connect many machines (LwCVM, VPCS, Virtual machine and all GNS3 compatible machines) to each other through switches and routers.
+####Requirements####
+This framework can work under boath Linux and Windows. In order to use it you need the following tools:
+Eclipse IDE with C/C++ plugin
+Mingw (Windows)/g++ compiler (Linux)
+Pcap lib (Windows)/Winpcap (Linux)
+pthread library
 ####How connect virtual machine: VirtualBox, Qemu ...####
 In order to connect a Virtual Machine, use the class PCAPHost that accept as argument the network card name. Then, connect this last to a network switch "NESwitch"
 code sample:
@@ -57,4 +63,6 @@
 RouterPort *rp = vmRouter-&gt;addNewPort("\\Device\\NPF_{1F24E6B3-ACE3-4465-A1E6-D399CFCE1AC2}");
 NESwitch *nsSwitch = new NESwitch();
 //connect the router port to the network switch
-nsSwitch-&gt;connect(rp, 1); 
+nsSwitch-&gt;connect(rp, 1);
+####Running the program####
+After defining the network architecture using the elements described above, run every one by using the method start().
&lt;/pre&gt;
&lt;/div&gt;</summary></entry><entry><title>AboutMe modified by Zahid Mohammed</title><link href="https://sourceforge.net/p/networkemulator/wiki/AboutMe/" rel="alternate"/><published>2013-05-21T14:53:05.604000Z</published><updated>2013-05-21T14:53:05.604000Z</updated><author><name>Zahid Mohammed</name><uri>https://sourceforge.net/u/kimposte/</uri></author><id>https://sourceforge.net801afd0abb227ffbe3b31d5516653e20f106a7d9</id><summary type="html">&lt;div class="markdown_content"&gt;&lt;h3 id="senior-software-developer-engineer-and-phd-student-at-the-national-institute-of-post-and-telecommunication-inpt-rabat-morocco"&gt;Senior software developer engineer and  Phd student at the National Institute of Post and Telecommunication (INPT-Rabat, Morocco)&lt;/h3&gt;
&lt;p&gt;&lt;strong&gt;Tel&lt;/strong&gt;: +212669421467&lt;br /&gt;
&lt;strong&gt;Email&lt;/strong&gt;: zahid.med@gmail.com&lt;br /&gt;
I have 4 years experience in software development based on Java/JEE technology, C/C++ and mobile development for Andoid, WindowsPhone and J2ME&lt;br /&gt;
I conduct training missions around Java/JEE architecture and software project management.&lt;/p&gt;&lt;/div&gt;</summary></entry><entry><title>UserGuid modified by Zahid Mohammed</title><link href="https://sourceforge.net/p/networkemulator/wiki/UserGuid/" rel="alternate"/><published>2013-05-21T14:32:35.369000Z</published><updated>2013-05-21T14:32:35.369000Z</updated><author><name>Zahid Mohammed</name><uri>https://sourceforge.net/u/kimposte/</uri></author><id>https://sourceforge.net106d200ad860b344438fc55e3125e44afb592571</id><summary type="html">&lt;div class="markdown_content"&gt;&lt;pre&gt;--- v6
+++ v7
@@ -49,4 +49,12 @@
 //connect the router interface to the network switch
 nsSwitch-&gt;connect(rp, 1); 
 #####Router based on Micro Core Linux over a virtual machine#####
-This kind of router can provide all the feature we can find in usual routers like dynamic configuration through telnet/ssh, routing protocols RIP/OSPF .... To use this router you can download a Virtualbox image from this link
+This kind of router can provide all the feature we can find in usual routers like dynamic configuration through telnet/ssh, routing protocols RIP/OSPF .... To use this router you can download a Virtualbox image from this [link][10]
+[10]: http://sourceforge.net/projects/networkemulator/files/MicroCoreImage/
+then, use the class VMRouter in order to connect to the differents virtual network cards.
+Code sample:
+VMRouter *vmRouter= new VMRouter();
+RouterPort *rp = vmRouter-&gt;addNewPort("\\Device\\NPF_{1F24E6B3-ACE3-4465-A1E6-D399CFCE1AC2}");
+NESwitch *nsSwitch = new NESwitch();
+//connect the router port to the network switch
+nsSwitch-&gt;connect(rp, 1); 
&lt;/pre&gt;
&lt;/div&gt;</summary></entry><entry><title>UserGuid modified by Zahid Mohammed</title><link href="https://sourceforge.net/p/networkemulator/wiki/UserGuid/" rel="alternate"/><published>2013-05-21T14:26:50.822000Z</published><updated>2013-05-21T14:26:50.822000Z</updated><author><name>Zahid Mohammed</name><uri>https://sourceforge.net/u/kimposte/</uri></author><id>https://sourceforge.netbae070f2ce8a908831684e13a891e93d0113bbf5</id><summary type="html">&lt;div class="markdown_content"&gt;&lt;pre&gt;--- v5
+++ v6
@@ -48,3 +48,5 @@
 NESwitch *nsSwitch = new NESwitch();
 //connect the router interface to the network switch
 nsSwitch-&gt;connect(rp, 1); 
+#####Router based on Micro Core Linux over a virtual machine#####
+This kind of router can provide all the feature we can find in usual routers like dynamic configuration through telnet/ssh, routing protocols RIP/OSPF .... To use this router you can download a Virtualbox image from this link
&lt;/pre&gt;
&lt;/div&gt;</summary></entry><entry><title>UserGuid modified by Zahid Mohammed</title><link href="https://sourceforge.net/p/networkemulator/wiki/UserGuid/" rel="alternate"/><published>2013-05-21T14:24:08.047000Z</published><updated>2013-05-21T14:24:08.047000Z</updated><author><name>Zahid Mohammed</name><uri>https://sourceforge.net/u/kimposte/</uri></author><id>https://sourceforge.net9b59df8a353674ad5787c6ee3c1cbb5bbbb304ab</id><summary type="html">&lt;div class="markdown_content"&gt;&lt;pre&gt;--- v4
+++ v5
@@ -26,3 +26,25 @@
 #####Lightweigh router emulator#####
 The lightweigh router emulator is a very basic router that provides routing feature between differents networks, ping and arp protocols. the configuration of this router can't be changed during the programm running. We will make the dynamic configuration in a fearther release.
 Code sample:
+//instanciate the router
+NERouter *router = new NERouter();
+//the first interface IP address
+ip_addr ip;
+ip.addr = LWIP_PLATFORM_HTONL(0xC0A80101L);
+//the first interface network mask
+ip_addr mask;
+mask.addr = LWIP_PLATFORM_HTONL(0xFFFFFF00L);
+//the first interface ethernet address
+eth_addr eth;
+eth.addr[0] = 0;
+eth.addr[1] = 0x50;
+eth.addr[2] = 0x23;
+eth.addr[3] = 0x56;
+eth.addr[4] = 0x68;
+eth.addr[5] = 1;
+//create the first interface and assign to it the IP address, the network mask and the ethernet address
+RouterPort *rp = router-&gt;addNewPort(ip, mask, eth);
+//instanciate a network switch
+NESwitch *nsSwitch = new NESwitch();
+//connect the router interface to the network switch
+nsSwitch-&gt;connect(rp, 1); 
&lt;/pre&gt;
&lt;/div&gt;</summary></entry><entry><title>UserGuid modified by Zahid Mohammed</title><link href="https://sourceforge.net/p/networkemulator/wiki/UserGuid/" rel="alternate"/><published>2013-05-21T14:20:42.144000Z</published><updated>2013-05-21T14:20:42.144000Z</updated><author><name>Zahid Mohammed</name><uri>https://sourceforge.net/u/kimposte/</uri></author><id>https://sourceforge.netdbe690f8a66a0e6c7291b48b98a36cb3546c9af3</id><summary type="html">&lt;div class="markdown_content"&gt;&lt;pre&gt;--- v3
+++ v4
@@ -21,4 +21,8 @@
 NESwitch *neSwitch= new NESwitch();
 neSwitch-&gt;connect(udpHost, 1);
 neSwitch-&gt;connect(vm, 1);
-
+####How connect use a router####
+This framework provides two kinds of routers:
+#####Lightweigh router emulator#####
+The lightweigh router emulator is a very basic router that provides routing feature between differents networks, ping and arp protocols. the configuration of this router can't be changed during the programm running. We will make the dynamic configuration in a fearther release.
+Code sample:
&lt;/pre&gt;
&lt;/div&gt;</summary></entry><entry><title>UserGuid modified by Zahid Mohammed</title><link href="https://sourceforge.net/p/networkemulator/wiki/UserGuid/" rel="alternate"/><published>2013-05-21T10:49:42.912000Z</published><updated>2013-05-21T10:49:42.912000Z</updated><author><name>Zahid Mohammed</name><uri>https://sourceforge.net/u/kimposte/</uri></author><id>https://sourceforge.net567d491062dac69f0e8d327072c07a35f38a8375</id><summary type="html">&lt;div class="markdown_content"&gt;&lt;pre&gt;--- v2
+++ v3
@@ -2,14 +2,23 @@
 This page shows how to use this framework in order to connect many machines (LwCVM, VPCS, Virtual machine and all GNS3 compatible machines) to each other through switches and routers.
 ####How connect virtual machine: VirtualBox, Qemu ...####
 In order to connect a Virtual Machine, use the class PCAPHost that accept as argument the network card name. Then, connect this last to a network switch "NESwitch"
-code example:
-    PCAPHost *vm1= new PCAPHost("\\Device\\NPF_{1F24E6B3-ACE3-4465-A1E6-D399CFCE1AC2}");
+code sample:
+    PCAPHost *vm= new PCAPHost("\\Device\\NPF_{1F24E6B3-ACE3-4465-A1E6-D399CFCE1AC2}");
 **Rq:**
 To get all the network card names (Real or virtual), use the method PCAPHost::getAllDrivers() that returns *pcap_if_t see [pcap lib][1]
 [1]: http://www.winpcap.org/docs/docs_40_2/html/structpcap__if.html
 ####How connect LwCVM or VPCS machine####
 In order to connect a LwCVM or VPCS machine, use the class UDPHost that accept as argument the remote port, the local port and the host name. Those argument are similare to the ones used to connect a VPCS machine to GNS3. Then, connect this last to a network switch "NESwitch"
+code sample:
+UDPHost *udpHost = new UDPHost(20000, 30000, "127.0.0.1");
 ####How connect two machines to each other####
-In order to connect to machines (VM or LwCVM/VPCS) to each other, you can use a switch or router according to network numbers you want to use. 
-#####How connect two machines using a switch#####
+In order to connect to machines (VM or LwCVM/VPCS) to each other, you can use a network switch.
+To do this, instanciate the class NESwitch and use the methode
+NESwitch::connect(Host *host, int vlan) that accept as argument the host you want to connect and the vlan number.
+code sample:
+PCAPHost *vm= new PCAPHost("\\Device\\NPF_{1F24E6B3-ACE3-4465-A1E6-D399CFCE1AC2}");
+UDPHost *udpHost = new UDPHost(20000, 30000, "127.0.0.1");
+NESwitch *neSwitch= new NESwitch();
+neSwitch-&gt;connect(udpHost, 1);
+neSwitch-&gt;connect(vm, 1);

&lt;/pre&gt;
&lt;/div&gt;</summary></entry><entry><title>UserGuid modified by Zahid Mohammed</title><link href="https://sourceforge.net/p/networkemulator/wiki/UserGuid/" rel="alternate"/><published>2013-05-21T10:39:56.666000Z</published><updated>2013-05-21T10:39:56.666000Z</updated><author><name>Zahid Mohammed</name><uri>https://sourceforge.net/u/kimposte/</uri></author><id>https://sourceforge.nete9681daf2a3272eca0ac2e50ca276aec14d1f7b1</id><summary type="html">&lt;div class="markdown_content"&gt;&lt;pre&gt;--- v1
+++ v2
@@ -7,3 +7,9 @@
 **Rq:**
 To get all the network card names (Real or virtual), use the method PCAPHost::getAllDrivers() that returns *pcap_if_t see [pcap lib][1]
 [1]: http://www.winpcap.org/docs/docs_40_2/html/structpcap__if.html
+####How connect LwCVM or VPCS machine####
+In order to connect a LwCVM or VPCS machine, use the class UDPHost that accept as argument the remote port, the local port and the host name. Those argument are similare to the ones used to connect a VPCS machine to GNS3. Then, connect this last to a network switch "NESwitch"
+####How connect two machines to each other####
+In order to connect to machines (VM or LwCVM/VPCS) to each other, you can use a switch or router according to network numbers you want to use. 
+#####How connect two machines using a switch#####
+
&lt;/pre&gt;
&lt;/div&gt;</summary></entry><entry><title>UserGuid modified by Zahid Mohammed</title><link href="https://sourceforge.net/p/networkemulator/wiki/UserGuid/" rel="alternate"/><published>2013-05-21T10:33:54.729000Z</published><updated>2013-05-21T10:33:54.729000Z</updated><author><name>Zahid Mohammed</name><uri>https://sourceforge.net/u/kimposte/</uri></author><id>https://sourceforge.net0bea1f02947dbbdbe512e8138039aaa4a09ea0bd</id><summary type="html">&lt;div class="markdown_content"&gt;&lt;h4 id="abstract"&gt;Abstract&lt;/h4&gt;
&lt;p&gt;This page shows how to use this framework in order to connect many machines (LwCVM, VPCS, Virtual machine and all GNS3 compatible machines) to each other through switches and routers.&lt;/p&gt;
&lt;h4 id="how-connect-virtual-machine-virtualbox-qemu"&gt;How connect virtual machine: VirtualBox, Qemu ...&lt;/h4&gt;
&lt;p&gt;In order to connect a Virtual Machine, use the class PCAPHost that accept as argument the network card name. Then, connect this last to a network switch "NESwitch"&lt;br /&gt;
code example:&lt;br /&gt;
    PCAPHost &lt;em&gt;vm1= new PCAPHost("\Device\NPF_{1F24E6B3-ACE3-4465-A1E6-D399CFCE1AC2}");&lt;br /&gt;
&lt;strong&gt;Rq:&lt;/strong&gt;&lt;br /&gt;
To get all the network card names (Real or virtual), use the method PCAPHost::getAllDrivers() that returns &lt;/em&gt;pcap_if_t see &lt;a href="http://www.winpcap.org/docs/docs_40_2/html/structpcap__if.html"&gt;pcap lib&lt;/a&gt;&lt;/p&gt;&lt;/div&gt;</summary></entry><entry><title>Discussion for Home page</title><link href="https://sourceforge.net/p/networkemulator/wiki/Home/" rel="alternate"/><published>2013-05-18T20:54:04.731000Z</published><updated>2013-05-18T20:54:04.731000Z</updated><author><name>Zahid Mohammed</name><uri>https://sourceforge.net/u/kimposte/</uri></author><id>https://sourceforge.net21fead986378b2b12ac8bc267a93643928ad820e</id><summary type="html">&lt;div class="markdown_content"&gt;&lt;h3 id="senior-software-developer-engineer-and-phd-student-at-the-national-institute-of-post-and-telecommunication-inpt-rabat-morocco"&gt;Senior software developer engineer and  Phd student at the National Institute of Post and Telecommunication (INPT-Rabat, Morocco)&lt;/h3&gt;
&lt;p&gt;&lt;strong&gt;Tel&lt;/strong&gt;: +212669421467&lt;br /&gt;
&lt;strong&gt;Email&lt;/strong&gt;: zahid.med@gmail.com&lt;br /&gt;
I have 4 years experience in software development based on Java/JEE technology, C/C++ and mobile development for Andoid, WindowsPhone and J2ME&lt;br /&gt;
I conduct training missions around Java/JEE architecture and software project management.&lt;/p&gt;&lt;/div&gt;</summary></entry></feed>