red hat fix

From: Wesley Eddy (
Date: 01/09/01

  • Next message: Shawn Ostermann: "Re: red hat fix"

    Date: Tue, 9 Jan 2001 14:32:13 -0500
    From: Wesley Eddy <>
    Subject: red hat fix
    Message-ID: <>

    Well, I've managed to build tcptrace on a Redhat system WITH the silly
    libpcap they include. It's actually very easy.

    The trick is to change the two assignments the compiler doesn't like
    in tcpdump.c into four assignments. See the problem is that you can't
    assign a bpf_timeval to a timeval, even though they're the exact same
    thing. So if you have:

            timeval something;
            bpf_timeval something_else;

            something = something_else;
    is a no-no, but,
            something.tv_sec = something_else.tv_sec;
            something.tv_usec = something_else.tv_usec;
    works just fine.

    It's kind of a stupid fix, but it does work.


    This archive was generated by hypermail 2b30 : 01/09/01 EST