Class: Trema::GetConfigReply
- Inherits:
-
Object
- Object
- Trema::GetConfigReply
- Defined in:
- ruby/trema/get-config-reply.c
Instance Method Summary collapse
-
#datapath_id ⇒ Number
Message originator identifier.
-
#flags ⇒ Number
Flags indicate how IP fragments should be treated (no special handling, dropped or reassembled).
-
#initialize(options = {}) ⇒ GetConfigReply
constructor
Handles the response to
OFPT_GET_CONFIG_REQUESTmessage. -
#miss_send_len ⇒ Number
The maximum number of bytes to send on flow table miss or flow destined to controller.
-
#transaction_id ⇒ Number
Transaction ids, message sequence numbers matching requests to replies.
Constructor Details
#initialize(options = {}) ⇒ GetConfigReply
Handles the response to OFPT_GET_CONFIG_REQUEST message. The user would not explicitly instantiate a Trema::GetConfigReply object but would be created while parsing the OFPT_GET_CONFIG_REPLY message. The Trema::GetConfigReply object is an object whose attributes represent the return values of the message.
62 63 64 65 66 |
# File 'ruby/trema/get-config-reply.c', line 62
static VALUE
get_config_reply_init( VALUE self, VALUE options ) {
rb_iv_set( self, "@attribute", options );
return self;
}
|
Instance Method Details
#datapath_id ⇒ Number
Message originator identifier.
74 75 76 77 |
# File 'ruby/trema/get-config-reply.c', line 74 static VALUE get_config_reply_datapath_id( VALUE self ) { return rb_hash_aref( rb_iv_get( self, "@attribute" ), ID2SYM( rb_intern( "datapath_id" ) ) ); } |
#flags ⇒ Number
Flags indicate how IP fragments should be treated (no special handling, dropped or reassembled).
97 98 99 100 |
# File 'ruby/trema/get-config-reply.c', line 97 static VALUE get_config_reply_flags( VALUE self ) { return rb_hash_aref( rb_iv_get( self, "@attribute" ), ID2SYM( rb_intern( "flags" ) ) ); } |
#miss_send_len ⇒ Number
The maximum number of bytes to send on flow table miss or flow destined to controller.
108 109 110 111 |
# File 'ruby/trema/get-config-reply.c', line 108 static VALUE get_config_reply_miss_send_len( VALUE self ) { return rb_hash_aref( rb_iv_get( self, "@attribute" ), ID2SYM( rb_intern( "miss_send_len" ) ) ); } |
#transaction_id ⇒ Number
Transaction ids, message sequence numbers matching requests to replies.
85 86 87 88 |
# File 'ruby/trema/get-config-reply.c', line 85 static VALUE get_config_reply_transaction_id( VALUE self ) { return rb_hash_aref( rb_iv_get( self, "@attribute" ), ID2SYM( rb_intern( "transaction_id" ) ) ); } |