Package: libnet Severity: normal Tags: patch Laurent Guignard <[EMAIL PROTECTED]>, which is willing to package dhcp_probe (ITP #495959), contacted me privately (I'm adopting this package) asking me to add a patch to libnet. The patch is attached, this bug is for tracking only (patch described in [1]).
I decided adding this patch because it seems totally harmless; I'm ready to remove it if needed. We've already contacted dhcp_probe's upstream authors to find a different solution (i.e. without any patch for libnet). Regards, David [1] http://www.net.princeton.edu/software/dhcp_probe/INSTALL.dhcp_probe.txt -- . ''`. Debian maintainer | http://wiki.debian.org/DavidPaleino : :' : Linuxer #334216 --|-- http://www.hanskalabs.net/ `. `'` GPG: 1392B174 ----|---- http://snipr.com/qa_page `- 2BAB C625 4E66 E7B8 450A C3E1 E6AA 9017 1392 B174
--- libnet-1.1.2.1.orig/src/libnet_cq.c
+++ libnet-1.1.2.1/src/libnet_cq.c
@@ -393,3 +393,14 @@
{
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);
+}
--- libnet-1.1.2.1.orig/include/libnet/libnet-functions.h
+++ libnet-1.1.2.1/include/libnet/libnet-functions.h
@@ -1886,6 +1886,12 @@
libnet_cq_size();
/**
+ * [Context Queue]
+ */
+u_int32_t
+libnet_cq_end_loop();
+
+/**
* [Diagnostic]
* Prints the contents of the given context.
* @param l pointer to a libnet context
signature.asc
Description: PGP signature

