ptpdump.h 599 Bytes
Newer Older
1 2
#ifndef __PTPDUMP_H__
#define __PTPDUMP_H__
3

4 5 6 7 8 9 10 11 12 13 14
#if __STDC_HOSTED__
#include <time.h>
#include <sys/time.h>
#include <netinet/ip.h>		/* struct iphdr */
#include <netinet/udp.h>	/* struct udphdr */
#include <linux/if_ether.h>	/* struct ethhdr */
#else
#include <ppsi/ppsi.h>
#include "../lib/network_types.h"
#define printf pp_printf
#endif
15

16 17 18
int dump_udppkt(char *prefix, void *buf, int len, struct TimeInternal *ti);
int dump_payloadpkt(char *prefix, void *buf, int len, struct TimeInternal *ti);
int dump_1588pkt(char *prefix, void *buf, int len, struct TimeInternal *ti);
19 20

#endif /* __PTPDUMP_H__ */