D Framework for packet manipulation