Re: [vpp-dev] Regarding vlib_buffer_t construction for tx of a self-made packet

2018-10-29 Thread Dave Barach via Lists.Fd.Io
Cool, glad you found what you needed... -Original Message- From: Prashant Upadhyaya Sent: Monday, October 29, 2018 11:48 AM To: Dave Barach (dbarach) Cc: vpp-dev@lists.fd.io Subject: Re: [vpp-dev] Regarding vlib_buffer_t construction for tx of a self-made packet Thanks a bunch Dave

Re: [vpp-dev] Regarding vlib_buffer_t construction for tx of a self-made packet

2018-10-29 Thread Prashant Upadhyaya
l Message- > From: vpp-dev@lists.fd.io On Behalf Of Prashant > Upadhyaya > Sent: Sunday, October 28, 2018 3:13 AM > To: vpp-dev@lists.fd.io > Subject: [vpp-dev] Regarding vlib_buffer_t construction for tx of a self-made > packet > > Hi, > > I have a situation wher

Re: [vpp-dev] Regarding vlib_buffer_t construction for tx of a self-made packet

2018-10-28 Thread Dave Barach via Lists.Fd.Io
: [vpp-dev] Regarding vlib_buffer_t construction for tx of a self-made packet Hi, I have a situation where one of my plugins needs to construct an l2 packet (containing an ip datagram inside). So I have a local buffer which contains the following bytes laid out -- dst mac src mac ethertype ip

[vpp-dev] Regarding vlib_buffer_t construction for tx of a self-made packet

2018-10-28 Thread Prashant Upadhyaya
Hi, I have a situation where one of my plugins needs to construct an l2 packet (containing an ip datagram inside). So I have a local buffer which contains the following bytes laid out -- dst mac src mac ethertype ip header + payload Assume for the sake of generality that the above buffer is 4K