impement buffer_func to take care of packets after demultiplexing channels
Remove the unused {hi, lo}_mappids variables.