]> git.ipfire.org Git - thirdparty/dhcp.git/commitdiff
Make header lengths signed rather than unsigned, fix snoop_time().
authorTed Lemon <source@isc.org>
Thu, 22 Feb 2001 06:42:32 +0000 (06:42 +0000)
committerTed Lemon <source@isc.org>
Thu, 22 Feb 2001 06:42:32 +0000 (06:42 +0000)
includes/omapip/trace.h

index b80c72e4b238a29e10a4277640fba26d6c0957ba..7bc0e509948703ef3b0cde7a6fbd288aad182e08 100644 (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 **);