RE: Adding a function to ip_output

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

 



just wondered what steps u r following for re-compiling the kernel.
if u can elaborate on that, probably we can help u...

Avni :-)


-----Original Message-----
From: linux-net-owner@vger.kernel.org
[mailto:linux-net-owner@vger.kernel.org]On Behalf Of Vasu
Sent: Thursday, 2 May 2002 10:16 PM
To: linux-net
Subject: Adding a function to ip_output



Hi all,

I added some lines of code in ip_output to define a new function ( which
is a module ), and added that function name in netsyms.c as directed by a
book on the Net.. this is for injecting packets in the kernel, about which
I wrote some days ago.

This line is added in the beginning of the file ip_output.c

int (*test_function)(struct sk_buff *)=0;

The following lines are added in function ip_finish_output2

// original definitions

 if((*test_function)(skb))
 {       kfree_skb(skb);
         return 0;}
 else
 {
// original code



The kernel compiles, but it is having problems as on restarting, there is
some stack problem in rpc.statd and the comp hangs.

Could anyone guide me as what maybe causing trouble. As the module is not
loaded on startup, I guess that won't be a problem.

Regards,

Vasu
III yr undergrad ( EE )


-
: send the line "unsubscribe linux-net" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html

***************************************************************************
This message is proprietary to Future Software Limited (FSL) 
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. 
FSL accepts no responsibility for loss or damage arising from 
the use of the information transmitted by this email including
damage from virus.
***************************************************************************
-
: send the line "unsubscribe linux-net" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html


[Index of Archives]     [Netdev]     [Ethernet Bridging]     [Linux 802.1Q VLAN]     [Linux Wireless]     [Kernel Newbies]     [Security]     [Linux for Hams]     [Netfilter]     [Git]     [Bugtraq]     [Yosemite News and Information]     [MIPS Linux]     [ARM Linux]     [Linux RAID]     [Linux PCI]     [Linux Admin]     [Samba]

  Powered by Linux