Re: Add Data to packet header

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On 7/16/14, Robert Clove <cloverobert@xxxxxxxxx> wrote:
> Hi All,
>
>
> I want to add data to the packet header.
>
> I used the skb_copy_expand to make the copy of the skb and data.
> Now in the headroom i want to add some data.
> How can i do that,please suggest .

__skb_push(skb, <your size>) to adjust the skb->data pointer

>
> Regards
>


-- 
Regards,
Denis

_______________________________________________
Kernelnewbies mailing list
Kernelnewbies@xxxxxxxxxxxxxxxxx
http://lists.kernelnewbies.org/mailman/listinfo/kernelnewbies




[Index of Archives]     [Newbies FAQ]     [Linux Kernel Mentors]     [Linux Kernel Development]     [IETF Annouce]     [Git]     [Networking]     [Security]     [Bugtraq]     [Yosemite]     [MIPS Linux]     [ARM Linux]     [Linux RAID]     [Linux SCSI]     [Linux ACPI]
  Powered by Linux