Hello Alok,
--- Alok <[EMAIL PROTECTED]> wrote:
> hi everyone ...
>> first of all I am coding it in Linux kernel 2.6
Which 2.6 kernel version and distro u r using??
>>... I have to read data payload of SKB structure
(Struct sk_buff) and modify it
No problem you can do that by using netfilter
hooks
>> ... now when i try to do this .. always kernel
panics.
Now .. what all things do I have to take care of
while doing this.
That mean u r facing kernel underpanic. might be
u tried to increase skb buffer space
>> The data payload is basically stored in pages .. so
when i try to read or write into that page .. kernel
goes to panic state. how can i do it?? i tried locatin
page using kmap funtion ... n all ... then memcpy(), I
also tried using skb_copy finction to make skb
"Writable" etc. but all in vain.
Why u went directly on pages in memory? u can
try to use ksymoops to debug the panic message?
And one more thing it will be good if u provide
actually what modifcation u are trying in kernel for
each packet? The problem u facing is not beacuse of
some problem in page memory rather improper skb
handling.
I have worked on skb modification, so i
think at least what changes you require in skb
processing must be specified to answer you.
reagards,
linux_lover.
____________________________________________
> Pune GNU/Linux Users Group Mailing List:
> ([email protected])
> List Information:
> http://plug.org.in/mailing-list/listinfo/plug-mail
> Send 'help' to [EMAIL PROTECTED] for
> mailing instructions.
>
__________________________________
Celebrate Yahoo!'s 10th Birthday!
Yahoo! Netrospective: 100 Moments of the Web
http://birthday.yahoo.com/netrospective/
--
______________________________________________________________________
Pune GNU/Linux Users Group Mailing List: ([email protected])
List Information: http://plug.org.in/mailing-list/listinfo/plug-mail
Send 'help' to [EMAIL PROTECTED] for mailing instructions.