Hacker News new | ask | show | jobs
by stingraycharles 1759 days ago
> Having a user space TCP stack could also decrease the need for [root privileges] as far as setting up the network is concerned.

I think it’s important to distinguish between the protocol (TCP) and the hardware device. You would still absolutely need to talk to the device, it’s just that moving a lot of the logic to user space means much less context switching for system calls for the application.

I can imagine on Linux you can talk directly to /dev/eth0 if you would want to (in the same way that you can talk to /dev/sda), and then you would be back at square one regarding root privileges.

1 comments

> I can imagine on Linux you can talk directly to /dev/eth0 if you would want to (in the same way that you can talk to /dev/sda), and then you would be back at square one regarding root privileges.

It's a AF_PACKET, SOCK_RAW socket rather than a device file, but yes.