X-Git-Url: http://git.onelab.eu/?a=blobdiff_plain;f=lib%2Fofp-util.h;h=db28c5839e7b691a8ef7c6fa452068dbb26e2151;hb=4d5f814dfb737aae820b8ce70ff0a8b94c291ec3;hp=77162bf29cfc0ff001fbf75e9f995902b544f485;hpb=3e6c955de6fc7c50ea30ee9ea2148c6734e5df11;p=sliver-openvswitch.git diff --git a/lib/ofp-util.h b/lib/ofp-util.h index 77162bf29..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. @@ -508,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. * @@ -615,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 @@ -688,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;