net: add rte prefix to ether defines
[dpdk.git] / app / test / packet_burst_generator.c
index 2ef5d15..feee9e1 100644 (file)
@@ -64,7 +64,7 @@ initialize_eth_header(struct rte_ether_hdr *eth_hdr, struct rte_ether_addr *src_
                struct rte_vlan_hdr *vhdr = (struct rte_vlan_hdr *)((uint8_t *)eth_hdr +
                                sizeof(struct rte_ether_hdr));
 
-               eth_hdr->ether_type = rte_cpu_to_be_16(ETHER_TYPE_VLAN);
+               eth_hdr->ether_type = rte_cpu_to_be_16(RTE_ETHER_TYPE_VLAN);
 
                vhdr->eth_proto =  rte_cpu_to_be_16(ether_type);
                vhdr->vlan_tci = van_id;
@@ -79,8 +79,8 @@ initialize_arp_header(struct rte_arp_hdr *arp_hdr, struct rte_ether_addr *src_ma
                uint32_t opcode)
 {
        arp_hdr->arp_hardware = rte_cpu_to_be_16(RTE_ARP_HRD_ETHER);
-       arp_hdr->arp_protocol = rte_cpu_to_be_16(ETHER_TYPE_IPv4);
-       arp_hdr->arp_hlen = ETHER_ADDR_LEN;
+       arp_hdr->arp_protocol = rte_cpu_to_be_16(RTE_ETHER_TYPE_IPv4);
+       arp_hdr->arp_hlen = RTE_ETHER_ADDR_LEN;
        arp_hdr->arp_plen = sizeof(uint32_t);
        arp_hdr->arp_opcode = rte_cpu_to_be_16(opcode);
        rte_ether_addr_copy(src_mac, &arp_hdr->arp_data.arp_sha);
@@ -318,10 +318,10 @@ nomore_mbuf:
                pkt->l2_len = eth_hdr_size;
 
                if (ipv4) {
-                       pkt->vlan_tci  = ETHER_TYPE_IPv4;
+                       pkt->vlan_tci  = RTE_ETHER_TYPE_IPv4;
                        pkt->l3_len = sizeof(struct ipv4_hdr);
                } else {
-                       pkt->vlan_tci  = ETHER_TYPE_IPv6;
+                       pkt->vlan_tci  = RTE_ETHER_TYPE_IPv6;
                        pkt->l3_len = sizeof(struct ipv6_hdr);
                }
 
@@ -433,10 +433,10 @@ nomore_mbuf:
                pkt->l2_len = eth_hdr_size;
 
                if (ipv4) {
-                       pkt->vlan_tci  = ETHER_TYPE_IPv4;
+                       pkt->vlan_tci  = RTE_ETHER_TYPE_IPv4;
                        pkt->l3_len = sizeof(struct ipv4_hdr);
                } else {
-                       pkt->vlan_tci  = ETHER_TYPE_IPv6;
+                       pkt->vlan_tci  = RTE_ETHER_TYPE_IPv6;
                        pkt->l3_len = sizeof(struct ipv6_hdr);
                }