Hi Ricardo,

I mean the result.  Did you run  ntoh<x> on them.

Regards
KK

On 20 March 2011 10:50, Ricardo Bennesby <[email protected]> wrote:
> Hi kk, thanks for quick reply.
>
> I changed request.match.wildcards = htonl(0xffffffff) to:
>
> request.match.wildcards = htons(0xffffffff); -> but it didn't work. Nothing
> was printed about the packets
>
> request.match.wildcards = ntohs(0xffffffff); -> the same that happened with
> htons
>
> request.match.wildcards = ntohl(0xffffffff); -> the same result of use htonl
>
> Sorry kk, but still I missing something?
>
> 2011/3/20 kk yap <[email protected]>
>>
>> Hi Ricardo,
>>
>> Did you consider network/host byte order?
>>
>> Regards
>> KK
>>
>> On 20 March 2011 10:01, Ricardo Bennesby <[email protected]>
>> wrote:
>> > Hi.
>> >
>> > I am running a C++ component that prints statistics of flows collected
>> > in
>> > switches with the flow_stats_in_event.
>> > I am also running the dpctl dump-flows command in mininet to compare the
>> > values and they are very different.
>> >
>> > The request is as follows:
>> >       request.table_id = 0xff;
>> >       request.out_port = OFPP_NONE;
>> >       request.match.wildcards = htonl(0xffffffff);
>> >
>> > Some values printed with dpctl dump-flows are:
>> >   cookie=0, duration_sec=6s, table_id=1, priority=32768, n_packets=9,
>> > n_bytes=882
>> > And it seems correct.
>> >
>> > In Flow_stats_in_event handler I wrote:
>> >     if(fsie.flows.size()>0){
>> >                 lg.dbg("duration_sec:
>> > %"PRIu32,fsie.flows.at(0).duration_sec);
>> >                 lg.dbg("packet_count:
>> > %"PRIu64,fsie.flows.at(0).packet_count);
>> >                 lg.dbg("priority: %"PRIu16,fsie.flows.at(0).priority);
>> >                 lg.dbg("byte_count:
>> > %"PRIu64,fsie.flows.at(0).byte_count);
>> >                 lg.dbg("length: %d",fsie.flows.at(0).length);
>> >                 lg.dbg("table_id: %d",fsie.flows.at(0).table_id);
>> >    }
>> >
>> > But the values printed are:
>> > 00533|openflow-event|DBG:received stats reply from 000000000001
>> > 00534|newcomp|DBG:Size of flows: 2
>> > 00535|newcomp|DBG:duration_sec: 922746880
>> > 00536|newcomp|DBG:packet_count: 7710162562058289152
>> > 00537|newcomp|DBG:priority: 128
>> > 00538|newcomp|DBG:byte_count: 17737427132398698496
>> > 00539|newcomp|DBG:length: 24576
>> > 00540|newcomp|DBG:table_id: 1
>> >
>> > What am I missing?
>> > If I wasn't detailed enough please let me know.
>> >
>> > Best Regards.
>> >
>> > --
>> > 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
>> >
>> >
>
>
>
> --
> 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

Reply via email to