linux-c-programming.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
From: Massimiliano Cialdi <cialdi@firenze.net>
To: linux-c-programming@vger.kernel.org
Subject: retriving a dhcp assigned ip
Date: Sat, 22 Mar 2003 21:42:16 +0100	[thread overview]
Message-ID: <20030322214216.45bc5681.cialdi@firenze.net> (raw)

How can I retrive the ip address assigned to my host by a dhcp server?
I think I need to use ioctl with SIOCGIFADDR parameter, but I don't know
where the address is saved.

thanks

-- 
Massimiliano Cialdi
cialdi@firenze.net
m.cialdi@oksys.it
cialdi@control.dsi.unifi.it

             reply	other threads:[~2003-03-22 20:42 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2003-03-22 20:42 Massimiliano Cialdi [this message]
2003-03-22 20:46 ` retriving a dhcp assigned ip Jan-Benedict Glaw
2003-03-22 22:06 ` Flávio de Ayra Mendes

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=20030322214216.45bc5681.cialdi@firenze.net \
    --to=cialdi@firenze.net \
    --cc=linux-c-programming@vger.kernel.org \
    /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;
as well as URLs for NNTP newsgroup(s).