X-Git-Url: http://git.droids-corp.org/?a=blobdiff_plain;f=app%2Ftest%2Fpacket_burst_generator.h;h=edc104417b46eec5a3c85197fefdb357e54215a5;hb=dd0eedb1cfcf0cb7423d859177c5bc6f931eaf8a;hp=666cc8e59778346d4523f978859d79d21bd4f148;hpb=ecd9d5193b85f22ff3d5fa76fb26d1363b293d94;p=dpdk.git diff --git a/app/test/packet_burst_generator.h b/app/test/packet_burst_generator.h index 666cc8e597..edc104417b 100644 --- a/app/test/packet_burst_generator.h +++ b/app/test/packet_burst_generator.h @@ -40,6 +40,7 @@ extern "C" { #include #include +#include #include #include @@ -50,11 +51,15 @@ extern "C" { #define PACKET_BURST_GEN_PKT_LEN 60 #define PACKET_BURST_GEN_PKT_LEN_128 128 - void initialize_eth_header(struct ether_hdr *eth_hdr, struct ether_addr *src_mac, - struct ether_addr *dst_mac, uint8_t ipv4, uint8_t vlan_enabled, - uint16_t van_id); + struct ether_addr *dst_mac, uint16_t ether_type, + uint8_t vlan_enabled, uint16_t van_id); + +void +initialize_arp_header(struct arp_hdr *arp_hdr, struct ether_addr *src_mac, + struct ether_addr *dst_mac, uint32_t src_ip, uint32_t dst_ip, + uint32_t opcode); uint16_t initialize_udp_header(struct udp_hdr *udp_hdr, uint16_t src_port,