[<prev] [next>] [thread-next>] [day] [month] [year] [list]
Message-ID: <6de6b1650907200939t471bbb49m5d10f343267faee2@mail.gmail.com>
Date: Mon, 20 Jul 2009 13:39:21 -0300
From: Rafael Almeida <almeidaraf@...il.com>
To: linux-kernel@...r.kernel.org
Subject: using ioctl to change the interface's IP
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
--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@...r.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/
Powered by blists - more mailing lists