{ unsigned short ttype, tlength, toffset;  LOG("Adding packet to stream\n"); packetsToRelease[numPacketsToRelease++] = pck;  for (int i = 0; i < templ->getFieldCount(); i++) { templ->getFieldInfo(i, &ttype, &tlength, &toffset); ipfix_put_data_field(exporter, pck->getPacketData(toffset), tlength); } }
{ unsigned short ttype, tlength, toffset;  DPRINTF("Adding packet to stream\n"); packetsToRelease[numPacketsToRelease++] = pck;  for(int i = 0; i < templ->getFieldCount(); i++) { templ->getFieldInfo(i, &ttype, &tlength, &toffset); ipfix_put_data_field(exporter, pck->getPacketData(toffset), tlength); } }
  void AddPacket(Packet *pck)  {    unsigned short ttype, tlength, toffset;    // first, store the packet to be released later, after we have sent the data    LOG("Adding packet to stream\n");    packetsToRelease[numPacketsToRelease++] = pck;        for (int i = 0; i < templ->getFieldCount(); i++)    {      templ->getFieldInfo(i, &ttype, &tlength, &toffset);      ipfix_put_data_field(exporter, pck->getPacketData(toffset), tlength);    }  }