State Management

// Clear all state (e.g., on reposition in file)
stack.clearState();

// Clear specific protocol
stack.clearState(TcpProtocol.class);

// Quiet mode – suppress output during context rebuild
stack.setQuietMode(true);
// ... process packets to rebuild context ...
stack.setQuietMode(false);

Useful patterns:

  • Seeking in large PCAP files

  • Switching analysis modes

  • Restarting streams

Last updated