Re: [nox-dev] IP header rewriting in PySwitch

2011-08-24 Thread Kalapriya Kannan1
have mentioned in mininet? regards, kalapriya. From: Murphy McCauley jam...@nau.edu To: Kalapriya Kannan1/India/IBM@IBMIN Cc: nox-dev@noxrepo.org Date: 08/24/2011 07:30 AM Subject:Re: [nox-dev] IP header rewriting in PySwitch It's difficult to guess from here. One

Re: [nox-dev] IP header rewriting in PySwitch

2011-08-24 Thread Murphy McCauley
:Murphy McCauley jam...@nau.edu To:Kalapriya Kannan1/India/IBM@IBMIN Cc:nox-dev@noxrepo.org Date:08/21/2011 01:04 AM Subject:Re: [nox-dev] IP header rewriting in PySwitch Well for one thing, the checksum in the TCP portion is going to be wrong since you

Re: [nox-dev] IP header rewriting in PySwitch

2011-08-23 Thread Kalapriya Kannan1
To: Kalapriya Kannan1/India/IBM@IBMIN Cc: nox-dev@noxrepo.org Date: 08/21/2011 01:04 AM Subject:Re: [nox-dev] IP header rewriting in PySwitch Well for one thing, the checksum in the TCP portion is going to be wrong since you changed the IP address. So you'll need to have something similar

Re: [nox-dev] IP header rewriting in PySwitch

2011-08-23 Thread Murphy McCauley
To:Kalapriya Kannan1/India/IBM@IBMIN Cc:nox-dev@noxrepo.org Date:08/21/2011 01:04 AM Subject:Re: [nox-dev] IP header rewriting in PySwitch Well for one thing, the checksum in the TCP portion is going to be wrong since you changed the IP address. So you'll

[nox-dev] IP header rewriting in PySwitch

2011-08-20 Thread Kalapriya Kannan1
hi, I am trying to re-write IP header in pyswitch using the following code below /* obtain ip header and packet for the incoming packet*. if packet.type == ethernet.IP_TYPE: iph = packet.find('ipv4') /* if there is a incoming packet in port 1, rewrite the header to have

Re: [nox-dev] IP header rewriting in PySwitch

2011-08-20 Thread Murphy McCauley
Well for one thing, the checksum in the TCP portion is going to be wrong since you changed the IP address. So you'll need to have something similar to the following in there before you actually send it: tcppkt = replypkt.find('tcp') if tcppkt is not None: tcppkt.csum = tcppkt.checksum() (That's