PcapFileEx.Flows.Summary (pcap_file_ex v0.5.7)

View Source

Aggregated traffic summary for network topology analysis.

Provides a network-administrator view of captured traffic, grouping flows by:

  • UDP: destination service (IP:port) with per-client statistics
  • HTTP/1: server service (IP:port) with per-client request/response metrics
  • HTTP/2: server service (IP:port) with per-client stream statistics

This summary is used by the Diagram API for clean topology rendering.

Summary

Functions

Builds a traffic summary from analyzed flows.

Types

t()

@type t() :: %PcapFileEx.Flows.Summary{
  http1: [PcapFileEx.Flows.Summary.HTTPService.t()],
  http2: [PcapFileEx.Flows.Summary.HTTPService.t()],
  udp: [PcapFileEx.Flows.Summary.UDPService.t()]
}

Functions

build(http1_flows, http2_flows, udp_flows, hosts_map \\ %{})

@spec build(list(), list(), list(), map()) :: t()

Builds a traffic summary from analyzed flows.

Parameters

  • http1_flows - List of HTTP1.Flow structs
  • http2_flows - List of HTTP2.Flow structs
  • udp_flows - List of UDP.Flow structs
  • hosts_map - Optional map of IP -> hostname for display

Returns

A Summary struct with aggregated traffic data per protocol.