Skip to contentSkip to conversation

where can I find the IP address ?

DISCUSSION sébastien person 1 participant 1 message Apr 25, 2001 1 message not in the archive

lore
Share & tools
lore

A message that is not in the archive (sent off-list or not yet received): [email protected]

#1 lore raw

Le Wed, 25 Apr 2001 15:17:59 +0200
Helge Hafting <[email protected]> à écrit :

Quoted 11 lines
Quoted 10 lines · sébastien person

Début du message transféré :

Date: Tue, 24 Apr 2001 16:43:18 +0200
From: sébastien person <[email protected]>
To: liste noyau linux <[email protected]>
Subject: where can I find the IP address ?

I'm dealing with a driver wich need the IP address for specifics using.

Quoted 8 lines

The IP address of what?
Rememeber, a computer can have an arbitrary number of different IP addresses assigned to various interfaces. It may even have several IP addresses on the same network card.

So, which of them do you want?

Helge Hafting

Yes that's right. In fact (excuse my bad english), my driver is 'iconfiged- up' with an IP in a script, and there is only one IP attach to the adapter. The adapter is a serial modem wich will work like an ethernet card, I'm working on the encapsulation of packets on the serial line and I need the IP that ifconfig attach to it.

I've seen in the rubini linux device driver that it exists one field in the struture that contain the IP but it doesn't exist in my structure so I though that I can find it elsewhere. So the IP that I need for the driver of the device, is the one the device is attached to. I expect to explain myself clearly else don't hesitate to tell me more.

thanks

sebastien person