packets: packet metadata from flow function instead of macro.