Skip to content
Success

Changes

Summary

  1. server: Support storing of pcapng format (details)
Commit 5ee862dfe3f1b1d00f9656fb6ed31124de599f07 by Pau Espin Pedrol
server: Support storing of pcapng format

Improve existing logic doing validation on payload data and generalize
the file_hdr field to account for the possibily of receiving recordings
in pcapng format.

This requires, during LINK_HDR when file header is received, discering
whether the recording is being done in pcap vs pcapng, (and in pcapng
figuring out the endianness of the file) and then applying validation
based on that knowledge.

With that knowledge, osmo-pcap-server can now store the pcap(ng) file
using the proper suffix for the file.

Related: SYS#5822
Change-Id: I275d28ab418a1514fa9c5c7c20f3d831cc6af8bb
The file was modifiedinclude/osmo-pcap/osmo_pcap_file.h
The file was modifiedsrc/osmo_pcap_file.c
The file was modifiedtests/rotate_localtime/Makefile.am
The file was modifiedinclude/osmo-pcap/osmo_pcap_server.h
The file was modifiedsrc/osmo_server_network.c
The file was modifiedsrc/Makefile.am