Cast pointer to required struct pointer, for example for ipv4
struct ipv4_hdr *iph;
iph = (struct ipv4_hdr *)rte_pktmbuf_append(m, sizeof(struct ipv4_hdr));
and fill in fields.
Look in lib/librte_net/ directory.
Regards,
Vladimir
2014-03-13 16:04 GMT+04:00 Aravind :
> Thank you for your reply V
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 l2
Hi,
At first look at https://github.com/Pktgen/Pktgen-DPDK
If you need your custom app:
- alloc mbuf with rte_pktmbuf_alloc
- fill up L2-4 headers fields (look at rte_pktmbuf_append func for example)
- send packet via rte_eth_tx_burst
Regards,
Vladimir
2014-03-13 15:15 GMT+04:00 sabu kurian :
I dug deeper into the problem vmxnet-pmd not capturing packets. Whenever pmd
stops capturing, it does not respect the number of rxd. For example, I set rxd
to 512. The pkt mbuf mempool I allocate is 4482, which is much bigger than rxd.
I would expect ~512 mbufs to be removed from mempool at any
Hi
[Cross posting this to dpdk-dev for exposure]
We had excellent technical discussions around network virtualization
at LPC13 last year and would love to provide the same forum at this
year's LPC again.
I believe this would be a good opportunity to discuss integration of
DPDK with the Linux net
On 2014-01-29 21:47, Fran?ois-Fr?d?ric Ozog wrote:
>>> First and easy answer: it is open source, so anyone can recompile. So,
>>> what's the issue?
>>
>> I'm talking from a pure distribution perspective here: Requiring to
>> recompile all DPDK based applications to distribute a bugfix or to add
>>
6 matches
Mail list logo