Hi,

I'm trying to add a new OpenFlow action to Open vSwitch.

So far, I'm able to install it using ovs-ofctl. It's clearly in the
flow-table and my entry function is called from do_xlate_actions in
ofproto-dpif-xlate.c.

However, I'm confused if this is the correct place for actually *executing*
the action.  I can see that this code is called twice, and even though the
stuff under ctx->xin looks good (I can see the correct Ethernet type,
addresses, etc.), ctx->xin->packet is set to NULL on both calls.

What I'm trying to do is to build a really simple non-IP protocol.  I match
on a specific Ethernet type, and I want to extract some data from the packet
(just two numbers).

I've been searching for similar work on the net, but as I haven't struck
gold yet I thought I'd just ask instead.

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?

I really hope anyone can give me some clues, as I'm currently stuck.

Regards,

--ยท
Christian Stigen Larsen
_______________________________________________
discuss mailing list
discuss@openvswitch.org
http://openvswitch.org/mailman/listinfo/discuss

Reply via email to