Hi Bin, You can use the set-field action for such a purpose. http://ryu.readthedocs.org/en/latest/ofproto_v1_3_ref.html#ryu.ofproto.ofproto_v1_3_parser.OFPActionSetField
For installing the flow entries, please refer to the FlowMod message. http://ryu.readthedocs.org/en/latest/ofproto_v1_3_ref.html#ryu.ofproto.ofproto_v1_3_parser.OFPFlowMod Thanks, Iwase On 2015年10月12日 14:23, YB wrote: > Hi, all > > I'm new to SDN and RYU. > > How can I modify the packets' header fields with RYU? > For example, I want to change a packet's source IP address from "10.0.0.1" to > "10.0.0.2". > > How can I do this? > I've scanned the RYU book. > But there is no specific codes about this. > > Can you provided detailed codes? > Thanks in advance! > > Best, > Bin > > > ------------------------------------------------------------------------------ > > > > _______________________________________________ > Ryu-devel mailing list > [email protected] > https://lists.sourceforge.net/lists/listinfo/ryu-devel > ------------------------------------------------------------------------------ _______________________________________________ Ryu-devel mailing list [email protected] https://lists.sourceforge.net/lists/listinfo/ryu-devel
