[dpdk-dev] Crafting a packet for transmission.
sabu kurian
sabu2kurian at gmail.com
Thu Mar 13 12:15:54 CET 2014
Hai friends,
My requirement is to create a packet generator. So I could use
struct rte_mbuf * m;
to create a single packet holder. So how am I suppose to fill in the packet
details like the MAC source , destination and also the IP source ,
destination (in case of IPv4 packets).
Following the l2fwd example, which has got the TAP interface to write the
data to and read the data from.
using the ether_hdr , one could read the MAC address from the packet
eth = rte_pktmbuf_mtod(m, struct ether_hdr *);
tmp = ð->s_addr.addr_bytes[0];
But how am I suppose to craft a packet and supply in all these details , so
that I could sent the packet via rte_eth_tx_burst
Thanks in advance
More information about the dev
mailing list