Bai_14_-_Thu_vien_lap_trinh

Bai_14_-_Thu_vien_lap_trinh - LINUX OPERATING SYSTEM...

Info iconThis preview shows pages 1–5. Sign up to view the full content.

View Full Document Right Arrow Icon
LINUX OPERATING SYSTEM Lê Ngọc Sơn [email protected] NETWORK PROGRAMING LIBRARIES
Background image of page 1

Info iconThis preview has intentionally blurred sections. Sign up to view the full version.

View Full Document Right Arrow Icon
Contents Libipq Libnet Libcap
Background image of page 2
Libipq The development library for iptables userspace packet queuing. Netfilter provides a mechanism for passing packets out of the stack for queueing to userspace, then receiving these packets back into the kernel with a verdict specifying what to do with the packets (such as ACCEPT or DROP). These packets may also be modified in userspace prior to reinjection back into the kernel.
Background image of page 3

Info iconThis preview has intentionally blurred sections. Sign up to view the full version.

View Full Document Right Arrow Icon
Libipq For each supported protocol, a kernel module called a queue handler may register with Netfilter to perform the mechanics of passing packets to and from userspace. The standard queue handler for IPv4 is ip_queue. It is provided as an experimental module with 2.4 kernels, and uses a Netlink socket for kernel/userspace communication. Once ip_queue is loaded, IP packets may be selected with iptables and queued for userspace processing via the QUEUE target 4
Background image of page 4
Image of page 5
This is the end of the preview. Sign up to access the rest of the document.

{[ snackBarMessage ]}

Page1 / 15

Bai_14_-_Thu_vien_lap_trinh - LINUX OPERATING SYSTEM...

This preview shows document pages 1 - 5. Sign up to view the full document.

View Full Document Right Arrow Icon
Ask a homework question - tutors are online