lists.openwall.net   lists  /  announce  owl-users  owl-dev  john-users  john-dev  passwdqc-users  yescrypt  popa3d-users  /  oss-security  kernel-hardening  musl  sabotage  tlsify  passwords  /  crypt-dev  xvendor  /  Bugtraq  Full-Disclosure  linux-kernel  linux-netdev  linux-ext4  linux-hardening  linux-cve-announce  PHC 
Open Source and information security mailing list archives
 
Hash Suite: Windows password security audit tool. GUI, reports in PDF.
[<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

Powered by Openwall GNU/*/Linux Powered by OpenVZ