i'm assuming we're truncating the entry so that we can reuse it for the next vlan.  does it make sense to define a utility function to init the entry and reset the current_bytes field?  or are you planning on getting rid of this code in the next pull request?