diff -Naur libnet/src/libnet_cq.c libnet.oden/src/libnet_cq.c --- libnet/src/libnet_cq.c 2004-01-28 20:45:00.000000000 +0100 +++ libnet.oden/src/libnet_cq.c 2005-10-05 19:42:26.000000000 +0200 @@ -393,3 +393,15 @@ { return (l_cqd.node); } + +u_int32_t +libnet_cq_end_loop() +{ + + if (! clear_cq_lock(CQ_LOCK_WRITE)) + { + return (0); + } + l_cqd.current = l_cq; + return (1); +} diff -Naur libnet/include/libnet/libnet-functions.h libnet.oden/include/libnet/libnet-functions.h --- libnet/include/libnet/libnet-functions.h 2004-03-25 19:50:48.000000000 +0100 +++ libnet.oden/include/libnet/libnet-functions.h 2005-10-05 19:42:27.000000000 +0200 @@ -2148,4 +2148,7 @@ #endif #endif /* __LIBNET_FUNCTIONS_H */ +u_int32_t +libnet_cq_end_loop(); + /* EOF */