libosmo-sigtran
1.9.0.1-797d
Osmocom SIGTRAN library
|
#include <osmocom/mtp/mtp_pcap.h>
#include <sys/time.h>
#include <unistd.h>
Data Structures | |
struct | pcap_hdr |
struct | pcaprec_hdr |
Functions | |
struct pcap_hdr | __attribute__ ((packed)) |
int | mtp_pcap_write_header (int fd) |
int | mtp_pcap_write_msu (int fd, const uint8_t *data, int length) |
Variables | |
uint32_t | magic_number |
uint16_t | version_major |
uint16_t | version_minor |
int32_t | thiszone |
uint32_t | sigfigs |
uint32_t | snaplen |
uint32_t | network |
uint32_t | ts_sec |
uint32_t | ts_usec |
uint32_t | incl_len |
uint32_t | orig_len |
struct pcap_hdr __attribute__ | ( | (packed) | ) |
int mtp_pcap_write_header | ( | int | fd | ) |
References pcap_hdr::magic_number.
int mtp_pcap_write_msu | ( | int | fd, |
const uint8_t * | data, | ||
int | length | ||
) |
References pcaprec_hdr::ts_sec, and pcaprec_hdr::ts_usec.
uint32_t incl_len |
uint32_t magic_number |
uint32_t network |
uint32_t orig_len |
uint32_t sigfigs |
uint32_t snaplen |
int32_t thiszone |
uint32_t ts_sec |
uint32_t ts_usec |
uint16_t version_major |
uint16_t version_minor |