Hi Malveeka, thanks for quick answer.
Using with Python flow fetcher worked fine too, but with C++ I am having
these problems...
The ofp_flow_stats_request is a struct that has the fields:
* struct ofp_match match*; /* Fields to match. */
*uint8_t table_id*; /* ID of table to read (from
ofp_table_stats),
0xff for all tables or 0xfe for emergency.
*/
*uint8_t pad*; /* Align to 32 bits. */
*uint16_t out_port*;
I didn't change the way that Flow_fetcher request the flows.
So, the *flows* vector is only instantiated when the
*send_openflow_command(dpid,
&oh, false)* is sent (oh is a ofp_header type) and when there are matching
entries?
Thank you so much for help.
2011/3/8 <[email protected]>
> Hi Ricardo
>
> I've used the nox flow fetcher component and it worked fine for me.
> One thing to look at is how you're specifying the ofp_match object while
> requesting for flows.
> The ofp_flow_stats_request will return counters for flow table entries that
> match the specified ofp_match object ?
>
> If there no matching entries in the forwarding table <Flow_stats>flows
> vector will be empty.
>
> Hope this helped
>
> Best!
> Malveeka
>
>
>
> ----- Original Message -----
> From: "Ricardo Bennesby" <[email protected]>
> To: [email protected]
> Sent: Tuesday, March 8, 2011 1:01:44 PM GMT -08:00 US/Canada Pacific
> Subject: [nox-dev] Problem in getting flows statistics
>
> Hi,
> I am trying to get flows statistics in my C++ component using flow fetcher,
> but all fields of flows seems not instanciated. For example, I need to know
> flow size, number of packets, number of bytes and other information.
> I created a *ofp_flow_stats_request request* in my component, set it
> as:
> *request.table_id = 0xff;
> request.out_port = OFPP_NONE;* , in datapath_join_event and passed
> it to flow_fetcher as a parameter of start_fetch.
> But when the handler of Flow_stats_in_event is called, the size of the
> *vector<Flow_stats>
> flows* still zero as all of it other fields.
> Is the error in my request?
> Am I missing something?
> Sorry if I didn't made myself clear.
> Thank you for help.
> Regards.
>
> --
> Happy Women's Day
> Ricardo Bennesby da Silva
> Ciência da Computação - UFAM
> LabCIA - Laboratório de Computação Inteligente e Autonômica
>
>
> _______________________________________________ nox-dev mailing list
> [email protected] http://noxrepo.org/mailman/listinfo/nox-dev
>
--
Happy Women's Day
Ricardo Bennesby da Silva
Ciência da Computação - UFAM
LabCIA - Laboratório de Computação Inteligente e Autonômica
_______________________________________________
nox-dev mailing list
[email protected]
http://noxrepo.org/mailman/listinfo/nox-dev