netdev
[Top] [All Lists]

help

To: netdev@xxxxxxxxxxx
Subject: help
From: Dhiman Barman <dhiman@xxxxxxxxx>
Date: Thu, 29 Mar 2001 23:06:53 -0500
Reply-to: dhiman@xxxxxxxxx
Sender: owner-netdev@xxxxxxxxxxx
User-agent: Mutt/1.2.5i
Hi,
  I am trying to write this module to linux kernel but while 
I get all kinds of silly errors. What wrong with the header files ?
I am just stuck here in writing another big module. Any help will be
appreciated. 
Dhiman

/************************/
define MODULE 
#define MAX_UNSIGNED_SHORT  65535

#include<linux/module.h>
#include<linux/kernel.h>
#include<linux/skbuff.h>


int packet_dropper(struct sk_buff *skb)
{
}

int init_module()
{
}

void cleanup_module(void)
{
}

/***********************/

Errors are :


In file included from /usr/include/linux/sched.h:15,
                 from /usr/include/linux/skbuff.h:19,
                 from test.c:6:
/usr/include/linux/timex.h:171: field `time' has incomplete type
In file included from /usr/include/asm/smp.h:15,
                 from /usr/include/linux/smp.h:14,
                 from /usr/include/linux/sched.h:23,
                 from /usr/include/linux/skbuff.h:19,
                 from test.c:6:
/usr/include/asm/fixmap.h:72: parse error before `pgprot_t'
In file included from /usr/include/linux/sched.h:23,
                 from /usr/include/linux/skbuff.h:19,
                 from test.c:6:
/usr/include/linux/smp.h:30: parse error before `('
In file included from /usr/include/linux/sched.h:80,
                 from /usr/include/linux/skbuff.h:19,
                 from test.c:6:
/usr/include/linux/timer.h:21: field `list' has incomplete type


<Prev in Thread] Current Thread [Next in Thread>
  • help, Dhiman Barman <=