]> git.droids-corp.org - dpdk.git/blobdiff - doc/guides/sample_app_ug/ipv4_multicast.rst
examples/ipv4_multicast: fix segments number type
[dpdk.git] / doc / guides / sample_app_ug / ipv4_multicast.rst
index fd1af006625cd48651e1a25e5f72d97da41a1b7b..7a8e7ebce69328e0f5bfd877945ba9fa3b0f8f36 100644 (file)
@@ -339,7 +339,7 @@ It is the mcast_out_pkt() function that performs the packet duplication (either
         /* update header's fields */
 
         hdr->pkt.pkt_len = (uint16_t)(hdr->pkt.data_len + pkt->pkt.pkt_len);
-        hdr->pkt.nb_segs = (uint8_t)(pkt->pkt.nb_segs + 1);
+        hdr->pkt.nb_segs = pkt->pkt.nb_segs + 1;
 
         /* copy metadata from source packet */