mirror of
https://github.com/openvswitch/ovs
synced 2025-08-31 14:25:26 +00:00
ofp-msgs: Open Flow 1.1 and 1.2 Port Status Messages
This allows for encoding and decoding Open Flow 1.1 and 1.2 Port Stats Request and Reply message Signed-off-by: Simon Horman <horms@verge.net.au> [blp@nicira.com added ofputil_count_port_stas(), simplified interface of ofputil_decode_port_stats(), style changes] Signed-off-by: Ben Pfaff <blp@nicira.com>
This commit is contained in:
@@ -620,4 +620,19 @@ 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;
|
||||
};
|
||||
|
||||
struct ofpbuf *ofputil_encode_dump_ports_request(enum ofp_version ofp_version,
|
||||
int16_t port);
|
||||
void ofputil_append_port_stat(struct list *replies,
|
||||
const struct ofputil_port_stats *ops);
|
||||
size_t ofputil_count_port_stats(const struct ofp_header *);
|
||||
int ofputil_decode_port_stats(struct ofputil_port_stats *, struct ofpbuf *msg);
|
||||
enum ofperr ofputil_decode_port_stats_request(const struct ofp_header *request,
|
||||
uint16_t *ofp10_port);
|
||||
#endif /* ofp-util.h */
|
||||
|
Reference in New Issue
Block a user