Still doesn’t work now the message doesn’t even appear in the screen when I use 
wireshark, but if I change the size of the char buffer from 10 to 100 then I 
get Unknown Type 59 or 122 (15231B or 3261B) Ver Warning ! Any ideas ? 

Respectfully,
Eduard Gibert Renart


On ene 27, 2014, at 12:37 PM, Andrew Ferguson <[email protected]> wrote:

> 
> On Jan 27, 2014, at 12:33 PM, Eduard Gibert Renart <[email protected]> 
> wrote:
>> Yes my architecture is little-endian.  So I need to convert the length and 
>> the xid like this ?
>> 
>>     struct ofp_header header;
>>     header.version = OFP_VERSION;
>>     header.type = OFPT_HELLO;
>>     header.length = htons(8);
>>     header.xid = htonl(13);
> 
> yes. I haven't tested your code, but the incorrect length could definitely be 
> the problem (xid not so much). try it and see!
> 
> if you are new to htons and htonl, I suggest this description: 
> http://www.beej.us/guide/bgnet/output/html/multipage/ipstructsdata.html#byteorder
> 
> from the excellent Beej's Guide to Network Programming, which I also 
> recommend: http://www.beej.us/guide/bgnet/
> 
> 
> Andrew

_______________________________________________
openflow-discuss mailing list
[email protected]
https://mailman.stanford.edu/mailman/listinfo/openflow-discuss

Reply via email to