
Libpcap (Packet CAPture) provides a portable framework for low-level network monitoring. Applications include network statistics collection, security monitoring, network debugging, etc.
pcaprub provide a consistent interface for using libcap in Ruby.
It does not provide packet processing functionality, only the interface for capturing packets, and passing yielding those packets.