The packet capture library contains subroutines that allow users to communicate with the packet capture facility provided by the operating system to read unprocessed network traffic. Applications using these subroutines must be run as root. These subroutines are maintained in the libpcap.a library:
ioctl BPF Control Operations performs packet-capture-related control operations.