[ovs-dev] Decoding packet_out message

Ben Pfaff blp at ovn.org
Tue Nov 24 16:24:15 UTC 2015


On Tue, Nov 24, 2015 at 02:30:13PM +0100, Alvaro Morales Vicente wrote:
> I can get all the fields, except for the actions, with the po variable
> (struct ofputil_packet_out) like po.packet_len, po.in_port… I have also
> tried with ofpacts variable (struct ofpbuf) which creates a buffer to store
> the actions list (without success). To sum up, what I need is to get the
> output port as an integer or as a char.

You can iterate through the actions with OFPACT_FOR_EACH and check for
an OFPACT_OUTPUT action.



More information about the dev mailing list