[<prev] [next>] [<thread-prev] [day] [month] [year] [list]
Date: Fri, 25 Sep 2009 21:43:52 +0800
From: Liu Jiusheng <liujiusheng@...il.com>
To: Pawel Pastuszak <pawelpastuszak@...il.com>
Cc: netdev@...r.kernel.org
Subject: Re: Getting IP Address for netdev
On Thu, Sep 24, 2009 at 10:53:41PM -0400, Pawel Pastuszak wrote:
> Hello everyone,
>
> I am looking for some help, I am writing an netdev driver and i want
> to known how to i get the current ip that is set to the device?
>
use in_dev_get to get in_device;
use macro for_ifa to get the IPv4 address set on the device.
--
Liu Jiusheng
--
To unsubscribe from this list: send the line "unsubscribe netdev" in
the body of a message to majordomo@...r.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Powered by blists - more mailing lists