X-Git-Url: http://git.onelab.eu/?a=blobdiff_plain;ds=sidebyside;f=lib%2Fofp-util.h;h=db28c5839e7b691a8ef7c6fa452068dbb26e2151;hb=3f0cbe2df696701ad07f61add08692a1eca54f67;hp=f8c4260fea80ae0be11445823e1c95453449025e;hpb=6ea4776bc043089fa307943705002a60ff4983b4;p=sliver-openvswitch.git diff --git a/lib/ofp-util.h b/lib/ofp-util.h index f8c4260fe..db28c5839 100644 --- a/lib/ofp-util.h +++ b/lib/ofp-util.h @@ -1,5 +1,5 @@ /* - * Copyright (c) 2008, 2009, 2010, 2011, 2012 Nicira, Inc. + * Copyright (c) 2008, 2009, 2010, 2011, 2012, 2013 Nicira, Inc. * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. @@ -17,7 +17,6 @@ #ifndef OFP_UTIL_H #define OFP_UTIL_H 1 -#include #include #include #include @@ -509,16 +508,15 @@ struct ofpbuf *ofputil_encode_port_mod(const struct ofputil_port_mod *, /* Abstract ofp_role_request and reply. */ struct ofputil_role_request { - bool request_current_role_only; /* no role change */ + enum ofp12_controller_role role; bool have_generation_id; - enum nx_role role; uint64_t generation_id; }; enum ofperr ofputil_decode_role_message(const struct ofp_header *, struct ofputil_role_request *); struct ofpbuf *ofputil_encode_role_reply(const struct ofp_header *, - enum nx_role current_role); + const struct ofputil_role_request *); /* Abstract table stats. * @@ -616,7 +614,6 @@ bool ofputil_frag_handling_from_string(const char *, enum ofp_config_flags *); * OFPUTIL_NXAST_NOTE * OFPUTIL_NXAST_SET_TUNNEL64 * OFPUTIL_NXAST_MULTIPATH - * OFPUTIL_NXAST_AUTOPATH * OFPUTIL_NXAST_BUNDLE * OFPUTIL_NXAST_BUNDLE_LOAD * OFPUTIL_NXAST_RESUBMIT_TABLE @@ -689,8 +686,6 @@ union ofp_action *ofputil_actions_clone(const union ofp_action *, size_t n); /* Handy utility for parsing flows and actions. */ bool ofputil_parse_key_value(char **stringp, char **keyp, char **valuep); -struct ofpbuf *ofputlil_dump_ports(enum ofp_version ofp_version, int16_t port); - struct ofputil_port_stats { uint16_t port_no; struct netdev_stats stats;