On Sat, May 10, 2014 at 06:11:29PM +0200, Christian Stigen Larsen wrote: > > Ben Pfaff <[email protected]>: > >> Is do_xlate_actions ("translate actions"?) the wrong place for this kind of > >> stuff? How can I get a pointer to the raw packet data? > > > > Usually, ofproto-dpif-xlate should not actually implement the OpenFlow > > actions. > > Sorry for being trigger-happy, but even if I chose to implement datapath > actions, how can I inspect the packet data? For some reason I get a > NULL-pointer in ctx->xin->packet, while, e.g., OFPACT_OUTPUT in > do_xlate_actions gets the full packet.
Often the packet data is not available because userspace is not processing a particular packet. Instead, it is deciding what to do with the entire class of packets specified by the flow data. You are only guaranteed to get full packets if during processing you add a flag for "slow" processing as I described earlier. _______________________________________________ discuss mailing list [email protected] http://openvswitch.org/mailman/listinfo/discuss
