I just realized that I sent the following post to the wrong list ...
Jacques
----- Original Message -----
From: "Jacques Nilo" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Sunday, January 27, 2002 11:00 PM
Subject: [Leaf-user] Needs some help with C


> Here is my problem:
> I am preparing a pcmcia-cs package for the next 2.4.16 ("Bering") LEAF
> release.
> The /etc/pcmcia/network script is using a ifuser utility to see if any
of a
> list of hosts or network  addresses are routed through a specified
interface.
>
> This small program call netstat and I would like to modify it in order
to get
> read of it. I would like to remove the
>     f = popen("netstat -nr", "r");
> by something like
>     f = popen("cat /proc/net/route","r")
> but I am a bit lost in the processing of this file (IP in hex + tabs)
> Is there someone around for which this would be a 101 type of C
programming
> exercice?
> Fortran is the only language I have ever practised in my life.
> I really feel like a dinosaur...
> The program is attached.
> gcc ifuser.c -o ifuser
> is enough to compile it.
> Thanks
> Jacques
>

Attachment: ifuser.c
Description: Binary data

Reply via email to