aboutsummaryrefslogtreecommitdiff
path: root/lib/libnetmap
diff options
context:
space:
mode:
authorJoseph Mingrone <jrm@FreeBSD.org>2024-10-03 19:49:51 +0000
committerJoseph Mingrone <jrm@FreeBSD.org>2024-10-04 13:41:53 +0000
commit34aa6f2c2db5cc9655f201a1ef01adbb9fb484d5 (patch)
tree2e76615d567fd653cac54b6d09b0190095de3506 /lib/libnetmap
parent75734c4360fcd5c70ab9650683ae47ca11aea15f (diff)
pflogd: Move struct definitions out of header file
In libpcap 1.10.5, two structures that we relied on, pcap_timeval and pcap_sf_pkthdr, were made private. As a workaround, we initially defined the structures in pflogd.h. After further investigation, mostly by kp@, we concluded that it is reasonable to define these structures ourselves since they represent a file format and thus are unlikely to change from under us. We will stick with this solution but move the definitions out of the header file to prevent others from using pflogd.h to access them. Another solution that was considered was using libpcap's pcap_dump() function to write packets, but there are blockers. For example, pflogd writes to a memory buffer, and libpcap lacks support for this. Reviewed by: kp MFC after: 3 days Event: EuroBSDCon 2024 Sponsored by: The FreeBSD Foundation Differential Revision: https://reviews.freebsd.org/D46894
Diffstat (limited to 'lib/libnetmap')
0 files changed, 0 insertions, 0 deletions