From: Alan Cox <alan@lxorguk.ukuu.org.uk>
To: Rafael Almeida <almeidaraf@gmail.com>
Cc: linux-kernel@vger.kernel.org
Subject: Re: using ioctl to change the interface's IP
Date: Mon, 20 Jul 2009 17:49:41 +0100 [thread overview]
Message-ID: <20090720174941.6251bbcf@lxorguk.ukuu.org.uk> (raw)
In-Reply-To: <6de6b1650907200939t471bbb49m5d10f343267faee2@mail.gmail.com>
On Mon, 20 Jul 2009 13:39:21 -0300
Rafael Almeida <almeidaraf@gmail.com> wrote:
> 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?
You would have to ask the people who invented the Unix interface in
question about thirty years ago
prev parent reply other threads:[~2009-07-20 16:48 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
2009-07-20 16:39 Rafael Almeida
2009-07-20 16:49 ` Alan Cox [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=20090720174941.6251bbcf@lxorguk.ukuu.org.uk \
--to=alan@lxorguk.ukuu.org.uk \
--cc=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®