Re: Re: Re: changes require for adding own function to kernel

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

 



  
hello Micha,
        i will explain you what i did now. i add a call in between ip_finish_output to ip_finish_output2. like ip_finish_output will call add_my_header that will actally add my header then pass that skb to ip_finish_output2. 
          Is that correct way  to add new protocol? 
I have few questions on skbuff can you please answer to that it is necessary for me?
1) what is use of unsigned char *raw ?
2) what are the importance of unions at each layer? and what they not contains ethernet header in each unions?
3) where does received packets ethernet header is removed? (hat ment...)
4) what is the cache header concept i.e hh_cache?

Thanking you.
Parag.


On Mon, 24 May 2004 Micha Feigin wrote :
>On Mon, May 24, 2004 at 07:26:48AM -0000, bunty  wrote:
> >
> > hello Michia,
> >             As we have already discussions on kernelnewbies that goes into
> > adding my own protocol to packets. so i decided to call a function in
> > ip_finish_output2 that will pass skb to my function and allocates new header on
> > to it. i want to add header after IP header is added to skb. for that i
> > increase size in alloc statement in ip_build_xmit by 8 bytes. but then what
> > should i do with skb_reserve? should i write it for my header length instead of
> > hh_len?
> >
> > regards,
> > parag.
> >
>


[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