mirror of
https://gitlab.isc.org/isc-projects/dhcp
synced 2025-09-02 07:15:44 +00:00
Make header lengths signed rather than unsigned, fix snoop_time().
This commit is contained in:
@@ -47,8 +47,8 @@
|
|||||||
typedef struct {
|
typedef struct {
|
||||||
u_int32_t magic; /* Magic number for trace file. */
|
u_int32_t magic; /* Magic number for trace file. */
|
||||||
u_int32_t version; /* Version of file. */
|
u_int32_t version; /* Version of file. */
|
||||||
u_int32_t hlen; /* Length of this header. */
|
int32_t hlen; /* Length of this header. */
|
||||||
u_int32_t phlen; /* Length of packet headers. */
|
int32_t phlen; /* Length of packet headers. */
|
||||||
} tracefile_header_t;
|
} tracefile_header_t;
|
||||||
|
|
||||||
/* The trace file is composed of a bunch of trace packets. Each such packet
|
/* 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 *,
|
isc_result_t trace_get_file (trace_type_t *,
|
||||||
const char *, unsigned *, char **);
|
const char *, unsigned *, char **);
|
||||||
isc_result_t trace_get_packet (trace_type_t **, 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 **);
|
||||||
|
Reference in New Issue
Block a user