trema/trema — Issue #157: Inconsistent API definition for sending Stats Requests
Author: chibacchie
Created: 2012-01-23 04:49:25+00:00
State: open
Labels: API

It is required to call "to_packet" method if we send a stats request while other requests do not require it.

* Stats Request

request = FlowStatsRequest.new( :match => Match.new )
send_message datapath_id, request.to_packet.buffer

"send_message datapath_id, request" is not allowed.

* Other requests

request = FeaturesRequest.new
send_message datapath_id, request