[ovs-dev] Adding a new field to ovs-ofctl

Jarno Rajahalme jrajahalme at nicira.com
Thu Nov 7 14:12:48 UTC 2013



> On Nov 6, 2013, at 5:32 PM, Anu Mercian <anumercian at live.com> wrote:
> 
> 
> 
> Hi Jarno,
> 
> Thank you very much for the reply. 
> 
> 1. I want to recognize a new routing scheme over Ethertype, so keeping dl_type as ethertype, I want to add a new field that recognizes the new routing protocol. In this case, which files of ovs-ofctl do I have to modify?
> 
> 2. Another way of seeing this is, as of now (as per man pages of ovs-ofctl), nw_proto recognizes ip (0x0800), ipv6 (0x86dd), arp (0x0806) and rarp (0x8035), what if I want to recognize another protocol (say 0x0802), do I have to modify the ovs-ofctl.c file?

You can match on any ethertype you want. In your case you would match on "dl_type=0x0802". Matching anything within a new ethertype, however, is not possible.

  Jarno

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.openvswitch.org/pipermail/ovs-dev/attachments/20131107/0375d1a0/attachment-0003.html>


More information about the dev mailing list