Sisyphus repositório
Última atualização: 1 outubro 2023 | SRPMs: 18631 | Visitas: 37736278
en ru br
ALT Linux repositórios
S:1.1.6-alt1
5.0: 1.1.2.1-alt4
4.1: 1.1.2.1-alt3
4.0: 1.1.2.1-alt2
3.0: 1.1.2.1-alt1

Group :: Sistema/Bibliotecas
RPM: libnet2

 Main   Changelog   Spec   Patches   Sources   Download   Gear   Bugs e FR  Repocop 

Patch: libnet-1.1.2.1-deb-libnet_cq_end_loop.patch
Download


--- 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
 
projeto & código: Vladimir Lettiev aka crux © 2004-2005, Andrew Avramenko aka liks © 2007-2008
mantenedor atual: Michael Shigorin
mantenedor da tradução: Fernando Martini aka fmartini © 2009