Project

General

Profile

Actions

Bug #7037

closed

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

Added by Victor Julien 4 months ago. Updated 4 months 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
Actions #1

Updated by OISF Ticketbot 4 months ago

  • Subtask #7038 added
Actions #2

Updated by OISF Ticketbot 4 months ago

  • Label deleted (Needs backport to 7.0)
Actions #3

Updated by Victor Julien 4 months ago

  • Status changed from Assigned to In Review
Actions #4

Updated by Victor Julien 4 months ago

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

Updated by Victor Julien 4 months ago

  • Status changed from In Review to Resolved
Actions #6

Updated by Victor Julien 4 months ago

  • Status changed from Resolved to Closed
Actions #7

Updated by Philippe Antoine 3 months ago

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

Also available in: Atom PDF