net: add rte prefix to udp structure
[dpdk.git] / test / test / packet_burst_generator.c
index d7888ac..2ddc334 100644 (file)
@@ -90,12 +90,12 @@ initialize_arp_header(struct rte_arp_hdr *arp_hdr, struct rte_ether_addr *src_ma
 }
 
 uint16_t
-initialize_udp_header(struct udp_hdr *udp_hdr, uint16_t src_port,
+initialize_udp_header(struct rte_udp_hdr *udp_hdr, uint16_t src_port,
                uint16_t dst_port, uint16_t pkt_data_len)
 {
        uint16_t pkt_len;
 
-       pkt_len = (uint16_t) (pkt_data_len + sizeof(struct udp_hdr));
+       pkt_len = (uint16_t) (pkt_data_len + sizeof(struct rte_udp_hdr));
 
        udp_hdr->src_port = rte_cpu_to_be_16(src_port);
        udp_hdr->dst_port = rte_cpu_to_be_16(dst_port);
@@ -126,7 +126,7 @@ initialize_sctp_header(struct rte_sctp_hdr *sctp_hdr, uint16_t src_port,
 {
        uint16_t pkt_len;
 
-       pkt_len = (uint16_t) (pkt_data_len + sizeof(struct udp_hdr));
+       pkt_len = (uint16_t) (pkt_data_len + sizeof(struct rte_udp_hdr));
 
        sctp_hdr->src_port = rte_cpu_to_be_16(src_port);
        sctp_hdr->dst_port = rte_cpu_to_be_16(dst_port);
@@ -257,7 +257,7 @@ initialize_ipv4_header_proto(struct rte_ipv4_hdr *ip_hdr, uint32_t src_addr,
 int
 generate_packet_burst(struct rte_mempool *mp, struct rte_mbuf **pkts_burst,
                struct rte_ether_hdr *eth_hdr, uint8_t vlan_enabled, void *ip_hdr,
-               uint8_t ipv4, struct udp_hdr *udp_hdr, int nb_pkt_per_burst,
+               uint8_t ipv4, struct rte_udp_hdr *udp_hdr, int nb_pkt_per_burst,
                uint8_t pkt_len, uint8_t nb_pkt_segs)
 {
        int i, nb_pkt = 0;
@@ -384,7 +384,7 @@ nomore_mbuf:
                        switch (proto) {
                        case IPPROTO_UDP:
                                copy_buf_to_pkt(proto_hdr,
-                                       sizeof(struct udp_hdr), pkt,
+                                       sizeof(struct rte_udp_hdr), pkt,
                                        eth_hdr_size + sizeof(struct rte_ipv4_hdr));
                                break;
                        case IPPROTO_TCP:
@@ -406,7 +406,7 @@ nomore_mbuf:
                        switch (proto) {
                        case IPPROTO_UDP:
                                copy_buf_to_pkt(proto_hdr,
-                                       sizeof(struct udp_hdr), pkt,
+                                       sizeof(struct rte_udp_hdr), pkt,
                                        eth_hdr_size + sizeof(struct ipv6_hdr));
                                break;
                        case IPPROTO_TCP: