Flexible Software-Defined Packet Processing Using Low-Area Hardware