[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
alloc_skb problem??
- To: rtl@fsmlabs.com
- Subject: alloc_skb problem??
- From: Amit Srivastava <amit_linux2000@yahoo.co.in>
- Date: Tue, 4 Dec 2001 16:14:17 +0000 (GMT)
- In-Reply-To: <939BE12B0744D211BD5A00A0C9DA3D870492B292@xcgmd009.md.essd.northgrum.com>
Hi friends,
I am not able to compile this code at the
time of compilation it gives undefined reference to
alloc_skb function.
i need ur help immedieatly
PLZ help
amit
#include <linux/skbuff.h>
#include <linux/mm.h>
void test()
{
#ifdef __KERNEL__
unsigned long flags;
struct sk_buff* buffer;
local_irq_save(flags);
buffer = alloc_skb(100,GFP_KERNEL);
local_irq_restore(flags);
#endif
}
#endif
main()
{
test();
}
The ERrror it is giving is:---
/tmp/cc7KXXrU.o: In function `test':
/tmp/cc7KXXrU.o(.text+0x13): undefined reference to
`alloc_skb'
collect2: ld returned 1 exit status
________________________________________________________________________
For Stock Quotes, Finance News, Insurance, Tax Planners, Mutual Funds...
Visit http://in.finance.yahoo.com/