The Linux Kernel/Networking

From Wikibooks, open books for an open world
Jump to navigation Jump to search

Linux kernel network functionality spans from sockets interface though protocols to network cards.


Shell interfaces:

  • man 8 netstat prints network connections, routing tables, interface statistics and other details
  • man 8 ip shows and configures routing, network devices, interfaces and tunnels
  • man 8 ss - socket statistics utility

Sockets[edit]

sys/socket.h — main sockets header

Key items:

Advanced:

User mode function man 2 sendfile and it's syscall implementation do_sendfile id. See also Zero-copy between file descriptors


References

Networking storage[edit]

Address families[edit]

Internals

Protocols[edit]

Directory /proc/net contains various files and subdirectories containing information about the networking layer.


References

Network device interfaces[edit]

Network drivers[edit]

References