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: [email protected]
Cc: Ben Pfaff <[email protected]>
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:[email protected]] On Behalf Of 
Rajasekaran, Monica
Sent: Thursday, June 02, 2016 11:00 AM
To: [email protected]<mailto:[email protected]>
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

_______________________________________________
discuss mailing list
[email protected]
http://openvswitch.org/mailman/listinfo/discuss

Reply via email to