netdev
[Top] [All Lists]

ip stack programming question

To: netdev@xxxxxxxxxxx
Subject: ip stack programming question
From: optyx <optyx@xxxxxxxxxxxxxxx>
Date: Fri, 11 May 2001 11:57:57 -0700 (PDT)
Sender: owner-netdev@xxxxxxxxxxx
I'm trying to write a module that takes all the packets in via hooking
ip_rcv() and send a packet out to another host with the size and other
statistics about that packet.

the problem:
        when I call sock_sendmsg inside the ip_rcv() loop I get kernel
panic.

I've tried scheduling another task to call sock_sendmsg, same results,
I've tried cloning and modifying the sk_buff passed into ip_rcv() and
sending it out, same results.

is there a global lock in both 2.2 and 2.4 that I can poll on until I can
call sock_sendmsg?  

Any help?

-optyx


<Prev in Thread] Current Thread [Next in Thread>
  • ip stack programming question, optyx <=