Netdev List
 help / color / mirror / Atom feed
From: Liu Jiusheng <liujiusheng@gmail.com>
To: Pawel Pastuszak <pawelpastuszak@gmail.com>
Cc: netdev@vger.kernel.org
Subject: Re: Getting IP Address for netdev
Date: Fri, 25 Sep 2009 21:43:52 +0800	[thread overview]
Message-ID: <20090925134352.GA13465@liujiusheng-laptop> (raw)
In-Reply-To: <8ff29df80909241953j6c6ce8ebpaa5760504158062e@mail.gmail.com>

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

      reply	other threads:[~2009-09-25 13:44 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2009-09-25  2:53 Getting IP Address for netdev Pawel Pastuszak
2009-09-25 13:43 ` Liu Jiusheng [this message]

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20090925134352.GA13465@liujiusheng-laptop \
    --to=liujiusheng@gmail.com \
    --cc=netdev@vger.kernel.org \
    --cc=pawelpastuszak@gmail.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox