#1146633 ITP: pcapfix -- repair broken pcap and pcapng files

Package:
wnpp
Source:
wnpp
Submitter:
Pedro Oliveira Do Carmo
Date:
2026-09-04 02:19:02 UTC
Severity:
normal
#1146633#5
Date:
2026-09-04 02:17:42 UTC
From:
To:
* Package name    : pcapfix
  Version         : 1.1.5
  Upstream Contact: Robert Krause <ruport@f00l.de>
* URL             : https://f00l.de/pcapfix
* License         : GPL-3+
  Programming Lang: C
  Description     : repair broken pcap and pcapng files

 To fix your pcap files the tool first checks for an intact
 pcap global header and repairs it if there are some corrupted
 bytes. It there seems to be no global header at all, pcapfix
 adds a self-created one at the beginning of the file. In a
 second step the tool tries to find pcap packet headers inside
 the file, below the global header. It checks if the values are
 correct (or seem to be correct) and tries to repair a packet if
 there is something wrong.
 .
 To fix your pcapng files the tool loops through all packet
 headers that can be found in the file. It checks for mandatory
 Section Header and Interface Description Block and creates them
 if missing. Pcapfix checks for correct block sizes and valid
 option fields. If something is wrong, invalid fields are repaired
 (if possible) or skipped and adjusted to finally get a proper
 pcapng file.