mirror of
https://github.com/openvswitch/ovs
synced 2025-10-25 15:07:05 +00:00
ofp-util: Use consistent naming convention.
Most of the tree now uses "encode" as the verb for making an OpenFlow message, so adopt it here in this very old code as well. Signed-off-by: Ben Pfaff <blp@ovn.org> Acked-by: Justin Pettit <jpettit@ovn.org>
This commit is contained in:
@@ -176,7 +176,7 @@ ofputil_encode_hello(uint32_t allowed_versions)
|
||||
|
||||
/* Creates and returns an OFPT_ECHO_REQUEST message with an empty payload. */
|
||||
struct ofpbuf *
|
||||
make_echo_request(enum ofp_version ofp_version)
|
||||
ofputil_encode_echo_request(enum ofp_version ofp_version)
|
||||
{
|
||||
return ofpraw_alloc_xid(OFPRAW_OFPT_ECHO_REQUEST, ofp_version,
|
||||
htonl(0), 0);
|
||||
@@ -185,7 +185,7 @@ make_echo_request(enum ofp_version ofp_version)
|
||||
/* Creates and returns an OFPT_ECHO_REPLY message matching the
|
||||
* OFPT_ECHO_REQUEST message in 'rq'. */
|
||||
struct ofpbuf *
|
||||
make_echo_reply(const struct ofp_header *rq)
|
||||
ofputil_encode_echo_reply(const struct ofp_header *rq)
|
||||
{
|
||||
struct ofpbuf rq_buf = ofpbuf_const_initializer(rq, ntohs(rq->length));
|
||||
ofpraw_pull_assert(&rq_buf);
|
||||
|
||||
Reference in New Issue
Block a user