]> git.proxmox.com Git - mirror_frr.git/commit - zebra/zebra_vxlan_private.h
Zebra: Handle VxLAN encap in netlink rtmsg for FPM
authorAmeya Dharkar <adharkar@vmware.com>
Fri, 17 May 2019 01:38:03 +0000 (18:38 -0700)
committerAmeya Dharkar <adharkar@vmware.com>
Fri, 17 May 2019 17:50:21 +0000 (10:50 -0700)
commit9d21b7c6f04146b518d0275d1c7f4388d9b33444
tree33cad7f29db19cc034d5a1a9a2cae80ea8ce4c6d
parent4d6124b45f670b8eec94143527c7afb3d4440825
Zebra: Handle VxLAN encap in netlink rtmsg for FPM

- For data plane processing of VxLAN routes, add encap type and L3VNI info to
  rtmsg message for FPM.
- Add "RTA_ENCAP_TYPE" attribute for VxLAN encap with value 100.
  This value is not currently used for RTA_ENCAP_TYPE for any encap.
- If "RTA_ENCAP_TYPE" is 100, add "RTA_ENCAP" attribute with "RTA_VNI" as a
  nested attribute of RTA_ENCAP

Format of RTA_VNI attribute:
Len(2 bytes)       type (2 bytes)      Value(4 bytes)(VNI)
   00    08     :     00    00     :      1000

RTA_VNI attribute is a custom attribute.

Signed-off-by: Ameya Dharkar <adharkar@vmware.com>
zebra/zebra_fpm_netlink.c
zebra/zebra_vxlan.c
zebra/zebra_vxlan_private.h