mirror of https://lore.kernel.org/lkml/
 help / color / mirror / Atom feed
From: Rafael Almeida <almeidaraf@gmail.com>
To: linux-kernel@vger.kernel.org
Subject: using ioctl to change the interface's IP
Date: Mon, 20 Jul 2009 13:39:21 -0300	[thread overview]
Message-ID: <6de6b1650907200939t471bbb49m5d10f343267faee2@mail.gmail.com> (raw)

Hello,

I was studying ioctl recently and I found out that, in order to change
the IP of a certain interface, you have to create a dummy socket with
socket(2) and use the returned file descriptor in the ioctl call. That
seems strange to me because the IP is not changed only for that
particular descriptor, but globally. Why wasn't a new system call
created for handling situations such as that?

[]'s
Rafael

             reply	other threads:[~2009-07-20 16:39 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2009-07-20 16:39 Rafael Almeida [this message]
2009-07-20 16:49 ` Alan Cox

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=6de6b1650907200939t471bbb49m5d10f343267faee2@mail.gmail.com \
    --to=almeidaraf@gmail.com \
    --cc=linux-kernel@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

all inboxes | Powered by JetHome®