X-Git-Url: http://git.droids-corp.org/?p=dpdk.git;a=blobdiff_plain;f=examples%2Ftep_termination%2Fvxlan.c;h=1add9904a2b89257cd90e7c2a7421e0cc61b369d;hp=084b06e195d183987d7ed8cfe1cf855edd5ea730;hb=09d9ae1ac9820c216991edc0d3c853fe28d37a66;hpb=24ac604ef7469eb5773c2504b313dd00257f8df3 diff --git a/examples/tep_termination/vxlan.c b/examples/tep_termination/vxlan.c index 084b06e195..1add9904a2 100644 --- a/examples/tep_termination/vxlan.c +++ b/examples/tep_termination/vxlan.c @@ -79,7 +79,7 @@ process_inner_cksums(struct rte_ether_hdr *eth_hdr, struct rte_ipv6_hdr *ipv6_hdr; struct udp_hdr *udp_hdr; struct tcp_hdr *tcp_hdr; - struct sctp_hdr *sctp_hdr; + struct rte_sctp_hdr *sctp_hdr; uint64_t ol_flags = 0; info->l2_len = sizeof(struct rte_ether_hdr); @@ -129,7 +129,8 @@ process_inner_cksums(struct rte_ether_hdr *eth_hdr, tcp_hdr->cksum = get_psd_sum(l3_hdr, ethertype, ol_flags); } else if (l4_proto == IPPROTO_SCTP) { - sctp_hdr = (struct sctp_hdr *)((char *)l3_hdr + info->l3_len); + sctp_hdr = (struct rte_sctp_hdr *) + ((char *)l3_hdr + info->l3_len); sctp_hdr->cksum = 0; ol_flags |= PKT_TX_SCTP_CKSUM; }