summaryrefslogtreecommitdiff
path: root/infra/packet_manager/packet_dump.h
blob: b0fdf77edb79741735d9f5821964da9ed5716c1f (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
#pragma once

#ifdef __cplusplus
extern "C"
{
#endif

#include "stellar/packet.h"

int packet_dump_pcap(const struct packet *pkt, const char *file);
void packet_dump_hex(const struct packet *pkt, int fd);
int packet_dump_str(const struct packet *pkt, char *buff, int size);
void packet_print(const struct packet *pkt);

#ifdef __cplusplus
}
#endif