theactiveactor
theactiveactor

Reputation: 7554

What Linux library supports sockets, ioctl calls, tuntap, etc...?

What is the name of the runtime library which implements Linux network interfaces, like sockets, tuntaps, netlink, etc...? For example when I create an UDP socket and make an ioctl call to fetch network interface info, which library actually implements that call? What are the corresponding *.so files on most linux dstirbutions?

Upvotes: 2

Views: 1613

Answers (3)

MarkR
MarkR

Reputation: 63538

The C library exports the functions, but they are just wrappers for sys calls. The actual socket functions themselves are implemented inside the kernel.

So pull it to pieces starting with sys_socket - it's not that difficult, and LXR makes it easy.

Upvotes: 1

Andrew McGregor
Andrew McGregor

Reputation: 34602

They're not all in libc, although many are. Tun/Tap has its own library, so does netlink. Basic socket operations are in libc.

Upvotes: 0

Craig H
Craig H

Reputation: 7989

These are c library calls, and as such are in the libc library.

Upvotes: 2

Related Questions