X-Git-Url: https://gerrit.opnfv.org/gerrit/gitweb?a=blobdiff_plain;f=VNFs%2FDPPD-PROX%2Fvxlangpe_nsh.h;h=5f83650cd74f2b38e82b47a03a58a9665c522de9;hb=0bfbba8d05de385535db9c376f69023206bad9bd;hp=2e7cfc764653a2dffd0014df314c87ea634db2c3;hpb=cb94e0036256c6a3fb0aadb682a04d8ad30ddd2a;p=samplevnf.git diff --git a/VNFs/DPPD-PROX/vxlangpe_nsh.h b/VNFs/DPPD-PROX/vxlangpe_nsh.h index 2e7cfc76..5f83650c 100644 --- a/VNFs/DPPD-PROX/vxlangpe_nsh.h +++ b/VNFs/DPPD-PROX/vxlangpe_nsh.h @@ -17,6 +17,8 @@ #ifndef _VXLANGPE_NSH_H_ #define _VXLANGPE_NSH_H_ +#include + struct nsh_hdr { uint16_t version :2; uint16_t oa_flag :1; @@ -33,12 +35,13 @@ struct nsh_hdr { uint32_t ctx_4; } __attribute__((__packed__)); +#if RTE_VERSION < RTE_VERSION_NUM(18,5,0,0) struct vxlan_gpe_hdr { uint8_t flag_0; uint8_t flag_1; uint8_t reserved; - uint8_t next_proto; + uint8_t proto; uint32_t vni_res; } __attribute__((__packed__)); - +#endif #endif /* _VXLANGPE_NSH_H_ */