3 ms·
> [SIOCSIFADDR] is a thing, although it targets a socket on the interface, not the interface itself. If we're cheating by using file descriptors instead of fil
by dozzie 8y ago
> [SIOCSIFADDR] is a thing, although it targets a socket on the interface, not the interface itself.
If we're cheating by using file descriptors instead of files, then you
could go all the way and used AF_NETLINK sockets, they allow you even to set
routing or firewall. That's kind of not the point.
- gpderetta 8y agoThe whole point of Linus's rant is that the actual Unix mantra is that everything is a file descriptor.
- dozzie 8y agoAnd then we go back to processes, System V-like IPC (shmget()/semget()/msgget()), and network configuration subsystem (routing, firewall, bringing interfaces up or down, and the like; netlink is only a recent development, after 2000). What was it about the mantra again?
- gpderetta 8y agoWell, the mantra is of course an aspiration. In practice things are not always done that way, especially in the past. SysV ipc is hopefully a thing of the past though. (I did upvote you btw)