[ovs-discuss] Message payload

Rajasekaran, Monica Monica.Rajasekaran at us.fujitsu.com
Fri Jun 3 21:35:54 UTC 2016


Hi,

Because I convert the payload from string to bytes and send from the controller (ODL), I thought *oh = msg->data should have this byte version of my sent message string. Am I missing something else here?

I send "abcde" from the controller. I see the packet sent from ODL and when received on OVS, "printf ("%d",*oh)" gives "754978052". I even tried printing in hex which gives something else random.

Thanks

From: discuss [mailto:discuss-bounces at openvswitch.org] On Behalf Of Rajasekaran, Monica
Sent: Thursday, June 02, 2016 11:00 AM
To: discuss at openvswitch.org
Subject: [ovs-discuss] Message payload

Hi,

When the openflow messages are received to ofproto/ofproto.c --> handle_openflow__(), is it possible to get the payload of the message received ? I would like to print that out and see. I can see that the function switches based on the "type" field in the message header and the header info to the corresponding handler functions. But, not sure how to get the payload.

Thanks,
Monica

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://openvswitch.org/pipermail/ovs-discuss/attachments/20160603/539b859d/attachment-0002.html>


More information about the discuss mailing list