[PATCH 1/3] introduce packet capturing abstraction