Re: Tcpdstat

Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]
From: Otto Moerbeek
Subject: Re: Tcpdstat
Date: Wednesday, May 23, 2007 - 1:45 pm

On Wed, 23 May 2007, Karl SjC6dahl - dunceor wrote:

standard
breakdown

they are not "pretty much the same"; they happen to have the same
field names (a bad design decisison, but we have to live with that),
but they ARE different:

struct bpf_timeval {
        u_int32_t       tv_sec;
        u_int32_t       tv_usec;
};

struct timeval {
        long    tv_sec;         /* seconds */
        long    tv_usec;        /* and microseconds */
};

Apart from the fields being unsigned in the bpf_timeval case, they are
not the same size on 64-bit platforms.

	-Otto
Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]

Messages in current thread:
Re: 4.1 upgrade and squid, Laurens Vets, (Tue May 22, 1:37 am)
Tcpdstat, OBSD, (Tue May 22, 10:28 am)
Re: Tcpdstat, Karl Sjödahl - dunceor, (Wed May 23, 1:17 pm)
Re: Tcpdstat, Otto Moerbeek, (Wed May 23, 1:45 pm)
Re: Tcpdstat, Karl Sjödahl - dunceor, (Wed May 23, 9:46 pm)