Project

General

Profile

Actions

Bug #7037

closed
VJ VJ

pcap/log: MacOS rotates file well before limit is reached

Bug #7037: pcap/log: MacOS rotates file well before limit is reached

Added by Victor Julien almost 2 years ago. Updated almost 2 years ago.

Status:
Closed
Priority:
Normal
Assignee:
Target version:
Affected Versions:
Effort:
Difficulty:
Label:

Description

Calculation uses sizeof(struct pcap_pktdir), which gives 24 on linux. However on apple, it gives 280.

struct pcap_pkthdr {
        struct timeval ts;      /* time stamp */ 
        bpf_u_int32 caplen;     /* length of portion present */
        bpf_u_int32 len;        /* length of this packet (off wire) */
#ifdef __APPLE__ 
        char comment[256];
#endif
};

No comment.


Subtasks 1 (0 open1 closed)

Bug #7038: pcap/log: MacOS rotates file well before limit is reached (7.0.x backport)ClosedVictor JulienActions

Related issues 1 (0 open1 closed)

Related to Suricata - Bug #4237: Pcap file length is not correct calculated.ClosedActions

OT Updated by OISF Ticketbot almost 2 years ago Actions #1

  • Subtask #7038 added

OT Updated by OISF Ticketbot almost 2 years ago Actions #2

  • Label deleted (Needs backport to 7.0)

VJ Updated by Victor Julien almost 2 years ago Actions #3

  • Status changed from Assigned to In Review

VJ Updated by Victor Julien almost 2 years ago Actions #4

  • Subject changed from pcap/log: Macos rotates file well before limit is reached to pcap/log: MacOS rotates file well before limit is reached

VJ Updated by Victor Julien almost 2 years ago Actions #5

  • Status changed from In Review to Resolved

VJ Updated by Victor Julien almost 2 years ago Actions #6

  • Status changed from Resolved to Closed

PA Updated by Philippe Antoine almost 2 years ago Actions #7

  • Related to Bug #4237: Pcap file length is not correct calculated. added
Actions

Also available in: PDF Atom