frenetic-lang / pyretic

The Pyretic language and runtime system
http://frenetic-lang.org/pyretic/
159 stars 99 forks source link

Fixed modify() to also be able to change packets' srcport and dstport #23

Closed etanzapinsky closed 10 years ago

etanzapinsky commented 10 years ago

Hey Pyretic team,

I was doing some work with Pyretic and I was trying to use the modify method to change the source and destination ports of the packet but it wasn't working. I looked through the pox_client and noticed that when installing the open flow actions it would only install an action to modify the source MAC or IP or the destination MAC or IP, but not the source or destination port. All I did to solve this problem was add lines to use the POX method to set the correct action if a source or destination port action was requested.

Best, Etan Zapinsky

joshreich commented 10 years ago

Thanks Etan!