2
0
mirror of https://gitlab.isc.org/isc-projects/dhcp synced 2025-08-31 06:15:55 +00:00

Make header lengths signed rather than unsigned, fix snoop_time().

This commit is contained in:
Ted Lemon
2001-02-22 06:42:32 +00:00
parent af5ad6dff0
commit 9560d30a7f

View File

@@ -47,8 +47,8 @@
typedef struct {
u_int32_t magic; /* Magic number for trace file. */
u_int32_t version; /* Version of file. */
u_int32_t hlen; /* Length of this header. */
u_int32_t phlen; /* Length of packet headers. */
int32_t hlen; /* Length of this header. */
int32_t phlen; /* Length of packet headers. */
} tracefile_header_t;
/* The trace file is composed of a bunch of trace packets. Each such packet
@@ -120,4 +120,4 @@ isc_result_t trace_get_next_packet (trace_type_t **, tracepacket_t *,
isc_result_t trace_get_file (trace_type_t *,
const char *, unsigned *, char **);
isc_result_t trace_get_packet (trace_type_t **, unsigned *, char **);
time_t trace_snoop_time (void);
time_t trace_snoop_time (trace_type_t **);