[ovs-discuss] to extract source/dest ip/mac - please help

Ben Pfaff blp at nicira.com
Thu Jul 23 19:36:06 UTC 2015


On Thu, Jul 23, 2015 at 07:23:49PM +0530, Amal R Krishna wrote:
> I am working on an project which involves Openvswitch 2.3.1. In my case I
> am working on an environment when the controller is down. So I need to get
> the source/dest ip/mac in the switches itself (i.e as soon as a packet is
> received and when no flow can be requested to the controller.). Will I have
> to edit the source code of Openvswitch? I think datapath/flow.c or
> lib/flow.c should provide the values, but I am still unable to figure out a
> solution. Kindly let me know which function gets activated as soon as a
> packet arrives in a network device and whether I can extract the required
> info and write it to a file from there in the switch. Thanks in Advance.

It seems like a better approach would be to implement a fallback
OpenFlow controller, running on the same machine as OVS.  Then you
wouldn't need to modify OVS at all.



More information about the discuss mailing list