Re: [nox-dev] Adding DNS functionality to nox

2011-08-26 Thread ibrahim mun
, I might try testing using nslookup or dig instead of ping. -- Murphy On Aug 25, 2011, at 9:55 AM, ibrahim mun wrote:Hi Christian, Wireshark shows standard dns replays, and that's why ping works sometimes. The only irregularity I see are icmp port unreachable packets, generated because nothing

Re: [nox-dev] FW: Checksum calculation bug?

2011-08-25 Thread ibrahim mun
-pack the values. -- Murphy On Aug 24, 2011, at 10:43 AM, ibrahim mun wrote:The reason is that wireshark shows checksum error in received packets (I've built). in python prompt I tried:data=array.array('B',example)arr=array.array('H', data)and the result was an array of bytes! modifying the code I

Re: [nox-dev] Adding DNS functionality to nox

2011-08-25 Thread ibrahim mun
Hi again, One last question in this thread :) , about weird dns functionality: In mininet I have a single switch (s1), 4 hosts (h2,h3,h4,h5) (10.0.0.2 - 10.0.0.5) resolve.conf points to 10.0.0.2 as dns server, but actually nox catchs dns requests matching with dst port 53, builds the

Re: [nox-dev] Adding DNS functionality to nox

2011-08-25 Thread ibrahim mun
. - ? For the first possibility, have you tried to capture the DNS traffic with wireshark to see if they are correctly decoded? -Christian On Thu, Aug 25, 2011 at 07:22, ibrahim mun ibrahim.me...@alumnos.upm.es wrote: Hi again, One last question in this thread :) , about weird dns

[nox-dev] FW: Checksum calculation bug?

2011-08-24 Thread ibrahim mun
Hi, I think we have a bug in packet_utils.checksum, please check it: = def checksum(data, start, skip_word = 0): if len(data) % 2 != 0: arr = array.array('H', data[:-1]) else: arr = array.array('H', data) if skip_word: for i

Re: [nox-dev] FW: Checksum calculation bug?

2011-08-24 Thread ibrahim mun
are assuming that arr is an array of bytes. However, if you look at the top of the function, you'll see that it's actually an array.array of H values, which are unsigned two-byte values. -- Murphy On Aug 24, 2011, at 4:19 AM, ibrahim mun wrote:Hi, I think we have a bug in packet_utils.checksum, please

Re: [nox-dev] FW: Checksum calculation bug?

2011-08-24 Thread ibrahim mun
To: ibrahim.me...@alumnos.upm.es CC: jam...@nau.edu; nox-dev@noxrepo.org Fwiw, just looking (very briefly) at the code, I'm not at all convinced that it would work as written and my guess is that it's infrequently called. On Wed, Aug 24, 2011 at 10:43 AM, ibrahim mun ibrahim.me

Re: [nox-dev] Adding DNS functionality to nox

2011-08-19 Thread ibrahim mun
to switch. Thanks, Ibrahim Subject: Re: [nox-dev] Adding DNS functionality to nox From: jam...@nau.edu Date: Thu, 18 Aug 2011 01:34:28 -0700 CC: nox-dev@noxrepo.org To: ibrahim.me...@alumnos.upm.es You're not missing anything; that's about it. -- Murphy On Aug 18, 2011, at 1:30 AM, ibrahim mun

Re: [nox-dev] Adding DNS functionality to nox

2011-08-19 Thread ibrahim mun
2011 01:34:28 -0700 CC: nox-dev@noxrepo.org To: ibrahim.me...@alumnos.upm.es You're not missing anything; that's about it. -- Murphy On Aug 18, 2011, at 1:30 AM, ibrahim mun wrote:Hi, I'm using zaku, I wonder if I can use dnsspy.py to add basic dns functionality to NOX. As I understand, Running

Re: [nox-dev] Adding DNS functionality to nox

2011-08-19 Thread ibrahim mun
an argument to install_datapath_flow), since you want the packet_ins. -- Murphy On Aug 19, 2011, at 4:30 AM, ibrahim mun wrote:Hi Again, I've noted that Packet_match_event is not included in nox/src/etc/nox.json, so I added it like: Packet_match_event:[ dnsspy

[nox-dev] Adding DNS functionality to nox

2011-08-18 Thread ibrahim mun
Hi, I'm using zaku, I wonder if I can use dnsspy.py to add basic dns functionality to NOX. As I understand, Running the dnsspy component will allow nox to match and parse DNS packets, so I can modify handle_dns to create a DNS replay and send it out to the inport, right? Am I missing

Re: [nox-dev] Routing problem

2011-04-27 Thread ibrahim mun
Hi Martin , Ali, All, I'm getting crazy with nox routing module, I was looking in nox mailing list to figure out the problem and from your discussion It seems I wasn't doing things wrong! I have the following topology on mininet: