* using ioctl to change the interface's IP
@ 2009-07-20 16:39 Rafael Almeida
2009-07-20 16:49 ` Alan Cox
0 siblings, 1 reply; 2+ messages in thread
From: Rafael Almeida @ 2009-07-20 16:39 UTC (permalink / raw)
To: linux-kernel
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
^ permalink raw reply [flat|nested] 2+ messages in thread
* Re: using ioctl to change the interface's IP
2009-07-20 16:39 using ioctl to change the interface's IP Rafael Almeida
@ 2009-07-20 16:49 ` Alan Cox
0 siblings, 0 replies; 2+ messages in thread
From: Alan Cox @ 2009-07-20 16:49 UTC (permalink / raw)
To: Rafael Almeida; +Cc: linux-kernel
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
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2009-07-20 16:48 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2009-07-20 16:39 using ioctl to change the interface's IP Rafael Almeida
2009-07-20 16:49 ` Alan Cox
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®