8/6 In linux what is the device name to read and write to and from
tcp/ip?
\_ There is no IP or Ethernet raw device, like on some other Unix
systems. Typically you would use socket calls (accept(2),
connect(2), etc.); there is a socket type called SOCK_RAW,
which lets you use some network facilities more directly.
\_ I thought all I/O traffic goes through /dev/* ? Then what
does accept(2) and connect(2) read and write to?
\_ They don't read(2) or write(2) to anything; they are just
their own system calls that act on kernel data structures
called sockets. /dev is not involved here.
\_ My grandmother knew this already.
called sockets. /dev is not involved here.
\_ My grandmother knew this already. |