Esempio n. 1
0
static void
set_miss_send_len_maximum( uint64_t datapath_id ) {
  uint32_t id = get_transaction_id();
  const uint16_t config_flags = OFPC_FRAG_NORMAL;
  const uint16_t miss_send_len = UINT16_MAX;
  buffer *buf = create_set_config( id, config_flags, miss_send_len );
  send_openflow_message( datapath_id, buf );

  free_buffer( buf );
}
Esempio n. 2
0
int
ofpmsg_send_setconfig( struct switch_info *sw_info ) {
  int ret;
  buffer *buf;

  buf = create_set_config( generate_xid(), sw_info->config_flags,
                           sw_info->miss_send_len );

  ret = send_to_secure_channel( sw_info, buf );
  if ( ret == 0 ) {
    debug( "Send 'set config request' to a switch %#" PRIx64 ".", sw_info->datapath_id );
  }

  return ret;
}