Assuming you want to do this in the switch, add flow entries that include the rewrite actions from the OpenFlow specification before they include an output action.
The corresponding rewrite actions are: ofp_tp_port, ofp_nw_addr, and ofp_dl_addr. The easiest way to create this in POX is with factory functions on each of the corresponding classes, e.g.: my_flow_mod.actions.append(of.ofp_tp_port.set_src(80)) See the specification and look at other components for more examples (try grepping for instances of, e.g., ofp_dl_addr). -- Murphy On Aug 12, 2013, at 11:38 PM, Sadia Bashir wrote: > > Hi, I want to modify source port in tcp packet, source ip in ipv4 packet and > source ethernet address and forward it to next hope. How do I rewrite some > fields? Pls be kind enough to help me. Thank you! > -- > >
