[Snort-devel] timeval stuff

Andreas Östling andreaso at ...387...
Sun Aug 4 09:22:01 EDT 2002


At least OpenBSD 3.1 gets a bit kranky since p->pkth->ts is not a
struct timeval *.

spp_stream4.c:3108: warning: passing arg 2 of `RetransTooFast' from incompatible pointer type


--- spp_stream4.c.org   Sun Aug  4 16:55:31 2002
+++ spp_stream4.c       Sun Aug  4 18:00:38 2002
@@ -3105,7 +3105,7 @@
                 DEBUG_WRAP(DebugMessage(DEBUG_STREAM,
                                         "Checking if we are retranmitting too fast\n"););

-                if(RetransTooFast(&returned->pkth.ts,  &p->pkth->ts))
+                if(RetransTooFast(&returned->pkth.ts, (struct timeval *) & p->pkth->ts))
                 {
                     DEBUG_WRAP(DebugMessage(DEBUG_STREAM,
                                             "Generating packets retranmissions faster than we should\n"););


Regards,
Andreas Östling





More information about the Snort-devel mailing list