Re: linux network driver problem..

Publishing User (chenl@mail.sc.cninfo.net)
Tue, 23 Nov 1999 09:40:55 +0800


----- Original Message -----
From: Anandvel <anandvel@sasi.com>
To: <linux-kernel@vger.rutgers.edu>
Sent: Monday, November 22, 1999 7:48 PM
Subject: linux network driver problem..

>
>
> I'm writing a linux network driver for an NIC. I'm using Rubini's book
> Linux device drivers, and was trying to run the example code snull.c
> (which is written for v2.1)
>
> I have linux version 2.2.5-22. My problem is this. While using route add,
> i get the following message.
>
> route add -net snullnet0 sn1
> SIOCADDRT: Invalid argument
>
> Can anyone tell what is going wrong? how do i debug the
> problem?, I'm new to linux drivers, & any help would be

'route' uses ioctl system call to operate kernel's route table, and the ioctl will check the network driver's existence. Maybe you can probe the ioctl system call to find some clue. By the way, do you run 'ifconfig sn1' before 'route'?

> appreciated. I tried going throug route.c, without much success.
>
> Thanks,
> Anand.
>
>
>
> -
> To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
> the body of a message to majordomo@vger.rutgers.edu
> Please read the FAQ at http://www.tux.org/lkml/
>
:.˛mkabzwmb˛mbz_^nrzh&zvy杶ii