Packet length is changed as a result of doing push/pull operations on the
packet head/tail.  It is not something that is set explicitly by the
application.

For example:

pkt = odp_packet_alloc(pool, len);    // odp_packet_len() is len
odp_packet_push_tail(pkt, nbytes);  // odp_packet_len() is now len+nbytes

On Wed, Jan 14, 2015 at 6:11 AM, Prashant Upadhyaya <
[email protected]> wrote:

>  Hi,
>
>
>
> I am allocating a packet with odp_packet_alloc.
>
> Now I can write some data into it using odp_packet_copydata_in. Or even by
> getting the buffer payload first by odp_packet_data call.
>
> But now how do I change the frame_len of this odp_packet_t ?
>
>
>
> I see a function static inline void packet_set_len(odp_packet_t pkt,
> uint32_t len), present in odp_packet_internal.h
>
>
>
> But I am an application so I need public access to this.
>
> I would need to send this packet out using pktio api’s which inspect the
> frame_len of the packet.
>
>
>
> Regards
>
> -Prashant
>
>
>  "DISCLAIMER: This message is proprietary to Aricent and is intended
> solely for the use of the individual to whom it is addressed. It may
> contain privileged or confidential information and should not be circulated
> or used for any purpose other than for what it is intended. If you have
> received this message in error, please notify the originator immediately.
> If you are not the intended recipient, you are notified that you are
> strictly prohibited from using, copying, altering, or disclosing the
> contents of this message. Aricent accepts no responsibility for loss or
> damage arising from the use of the information transmitted by this email
> including damage from virus."
>
> _______________________________________________
> lng-odp mailing list
> [email protected]
> http://lists.linaro.org/mailman/listinfo/lng-odp
>
>
_______________________________________________
lng-odp mailing list
[email protected]
http://lists.linaro.org/mailman/listinfo/lng-odp

Reply via email to