aboutsummaryrefslogtreecommitdiff
path: root/lib/ofp-print.h
AgeCommit message (Collapse)Author
2012-07-12ovs-ofctl: Add --sort and --rsort options for "dump-flows" command.Ben Pfaff
Feature #8754. Signed-off-by: Arun Sharma <arun.sharma@calsoftinc.com> [blp@nicira.com rewrote most of the code] Signed-off-by: Ben Pfaff <blp@nicira.com>
2012-07-03Introduce ofpacts, an abstraction of OpenFlow actions.Ben Pfaff
OpenFlow actions have always been somewhat awkward to handle. Moreover, over time we've started creating actions that require more complicated parsing. When we maintain those actions internally in their wire format, we end up parsing them multiple times, whenever we have to look at the set of actions. When we add support for OpenFlow 1.1 or later protocols, the situation will get worse, because these newer protocols support many of the same actions but with different representations. It becomes unrealistic to handle each protocol in its wire format. This commit adopts a new strategy, by converting OpenFlow actions into an internal form from the wire format when they are read, and converting them back to the wire format when flows are dumped. I believe that this will be more maintainable over time. Thanks to Simon Horman and Pravin Shelar for reviews. Signed-off-by: Ben Pfaff <blp@nicira.com>
2012-06-12openflow-1.0: Rename ofp_match to ofp10_match, OFPFW_* to OFPFW10_*.Ben Pfaff
This better fits our general policy of adding a version number suffix to structures and constants whose values differ from one OpenFlow version to the next. Reviewed-by: Simon Horman <horms@verge.net.au> Signed-off-by: Ben Pfaff <blp@nicira.com>
2012-05-02Global replace of Nicira Networks.Raju Subramanian
Replaced all instances of Nicira Networks(, Inc) to Nicira, Inc. Feature #10593 Signed-off-by: Raju Subramanian <rsubramanian@nicira.com> Signed-off-by: Ben Pfaff <blp@nicira.com>
2012-03-07ofp-print: Remove unused function ofp_message_type_to_string().Ben Pfaff
ofputil_msg_type_name() is a better interface. Reviewed-by: Simon Horman <horms@verge.net.au> Signed-off-by: Ben Pfaff <blp@nicira.com>
2012-01-10ofp-print: Remove vestigial 'total_len' argument.Ethan Jackson
ofp_print_packet() and ofp_packet_to_string() don't use the 'total_len' argument which they require callers to supply. Signed-off-by: Ethan Jackson <ethan@nicira.com>
2011-06-30ofp-util: Simplify iteration through OpenFlow actions.Ben Pfaff
The existing actions_first() and actions_next() iterator functions are not much like the other iteration constructs found throughout the Open vSwitch tree. Also, they only work with actions that have already been validated, so there are cases where they cannot be used. This commit adds new macros for iterating through OpenFlow actions, one for actions that have been validated and one for actions that have not, and adapts the existing users. The following commit will further refine action parsing and add more users.
2009-07-29vswitchd: Add unixctl command to dump all flows, including hidden onesJustin Pettit
Previously, the only way to query the flow table was to run "ovs-ofctl dump-flows". This returned most flows, but not those marked hidden by secchan. Hidden flows are setup by mechanisms such as in-band control, since they must not be modified by users of the controller. However, when debugging problems on the switch, it is often useful to see what the flow table is actually doing. The new "bridge/dump-flows" command added to ovs-appctl shows all flows being used by the OpenFlow stack.
2009-06-15Update primary code license to Apache 2.0.Ben Pfaff
2009-07-08Import from old repository commit 61ef2b42a9c4ba8e1600f15bb0236765edc2ad45.v0.90.0Ben Pfaff