memory management for storing pkts.