[ovs-discuss] Message payload

Rajasekaran, Monica Monica.Rajasekaran at us.fujitsu.com
Mon Jun 6 17:41:24 UTC 2016


If anyone else is interested in knowing how to fetch the payload info from packetOut, create an object for ofputil_packet_out (eg:po). Use ofputil_decode_packet_out to decode the packet and use the object with attributes of structure ofputil_packet_out to get any packetOut related information.

Thanks,
Monica

From: Rajasekaran, Monica
Sent: Friday, June 03, 2016 4:36 PM
To: discuss at openvswitch.org
Cc: Ben Pfaff <blp at ovn.org>
Subject: RE: Message payload

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<mailto: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/20160606/3da78d1a/attachment-0002.html>


More information about the discuss mailing list