Hi, On 2015年02月11日 02:03, Clément Rault wrote: > Hi, > > In the documentation it's written "SET_FIELD Set a “field” using > “value” (The set of keywords available for “field” is the same as > match field)" > > so basically I could use a set-field on any of these fields. > > But when I look at the OpenFlow specification I see the following > processing pipeline > > "copy TTL inwards: apply copy TTL inward actions to the packet > pop: apply all tag pop actions to the packet > push-MPLS: apply MPLS tag push action to the packet > push-PBB: apply PBB tag push action to the packet > push-VLAN: apply VLAN tag push action to the packet > copy TTL outwards: apply copy TTL outwards action to the packet > decrement TTL: apply decrement TTL action to the packet > set: apply all set-field actions to the packet" > > So for all the set-field except MPLS, PBB and VLAN where I need to > push the headers first I can directly use the set-field action even if > the fields have not been set before? And I was also wondering what > values they would have if they haven't been set yet.
Most fields except MPLS, PBB and VLAN can be set by using the set-field action without push/pop actions, because these fields(IP_DSCP,IPV4_SRC,UDP_DST,etc) are included in IPv4,TCP,UDP,etc headers. And default value of these depend on its communication messages. > > Best, > Clément > > ------------------------------------------------------------------------------ > Dive into the World of Parallel Programming. The Go Parallel Website, > sponsored by Intel and developed in partnership with Slashdot Media, is your > hub for all things parallel software development, from weekly thought > leadership blogs to news, videos, case studies, tutorials and more. Take a > look and join the conversation now. http://goparallel.sourceforge.net/ > _______________________________________________ > Ryu-devel mailing list > [email protected] > https://lists.sourceforge.net/lists/listinfo/ryu-devel > ------------------------------------------------------------------------------ Dive into the World of Parallel Programming. The Go Parallel Website, sponsored by Intel and developed in partnership with Slashdot Media, is your hub for all things parallel software development, from weekly thought leadership blogs to news, videos, case studies, tutorials and more. Take a look and join the conversation now. http://goparallel.sourceforge.net/ _______________________________________________ Ryu-devel mailing list [email protected] https://lists.sourceforge.net/lists/listinfo/ryu-devel
