System-independent interface for user-level packet capture