<feed xmlns='http://www.w3.org/2005/Atom'>
<title>conntrack-tools.git/src/fds.c, branch hydrogen</title>
<subtitle>conntrack-tools i.e. conntrack and conntrackd (mirror of https://github.com/vyos/conntrack-tools.git)
</subtitle>
<id>https://git.amelek.net/vyos/conntrack-tools.git/atom?h=hydrogen</id>
<link rel='self' href='https://git.amelek.net/vyos/conntrack-tools.git/atom?h=hydrogen'/>
<link rel='alternate' type='text/html' href='https://git.amelek.net/vyos/conntrack-tools.git/'/>
<updated>2012-05-28T10:34:32+00:00</updated>
<entry>
<title>conntrackd: generalize file descriptor infrastructure</title>
<updated>2012-05-28T10:34:32+00:00</updated>
<author>
<name>Pablo Neira Ayuso</name>
<email>pablo@netfilter.org</email>
</author>
<published>2012-04-24T08:55:33+00:00</published>
<link rel='alternate' type='text/html' href='https://git.amelek.net/vyos/conntrack-tools.git/commit/?id=1250135046b96f2778bda51517c8a722171a6c16'/>
<id>urn:sha1:1250135046b96f2778bda51517c8a722171a6c16</id>
<content type='text'>
This patch generalizes the select-based file descriptor infrastructure
by allowing you to register file descriptors and its callbacks. Instead
of hardcoding the descriptors that needs to be checked.

Now, struct fds_item contains a callback and pointer to data that is
passed to it:

  struct fds_item {
         struct list_head        head;
         int                     fd;
 +       void                    (*cb)(void *data);
 +       void                    *data;
  };

Then, we check which ones are active in the select_main_step() function:

 list_for_each_entry(cur, &amp;STATE(fds)-&gt;list, head) {
         if (FD_ISSET(cur-&gt;fd, &amp;readfds))
                 cur-&gt;cb(cur-&gt;data);
 }

And it invoked the corresponding callback.

I had to slightly modify the channel infrastructure to fit it into
the changes.

This modularity is required for the upcoming cthelper support.

Signed-off-by: Pablo Neira Ayuso &lt;pablo@netfilter.org&gt;
</content>
</entry>
<entry>
<title>conntrackd: fix wrong calculation of new maxfd on unregister_fds()</title>
<updated>2009-09-25T22:19:45+00:00</updated>
<author>
<name>Pablo Neira Ayuso</name>
<email>pablo@netfilter.org</email>
</author>
<published>2009-09-25T22:19:45+00:00</published>
<link rel='alternate' type='text/html' href='https://git.amelek.net/vyos/conntrack-tools.git/commit/?id=bde8891c60cd31590b38459081886bb5d1910f97'/>
<id>urn:sha1:bde8891c60cd31590b38459081886bb5d1910f97</id>
<content type='text'>
This patch fixes a missing calculation of maxfd when a file descriptor
is unregistered.

Reported-by: Jean Mickael Guerin &lt;jean-mickael.guerin@6wind.com&gt;
Signed-off-by: Pablo Neira Ayuso &lt;pablo@netfilter.org&gt;
</content>
</entry>
<entry>
<title>conntrackd: allow to remove file descriptors from set</title>
<updated>2009-08-21T14:06:11+00:00</updated>
<author>
<name>Pablo Neira Ayuso</name>
<email>pablo@netfilter.org</email>
</author>
<published>2009-08-21T14:06:11+00:00</published>
<link rel='alternate' type='text/html' href='https://git.amelek.net/vyos/conntrack-tools.git/commit/?id=9d99a7699d7021a1c219d6553e037ac7ba4a5a37'/>
<id>urn:sha1:9d99a7699d7021a1c219d6553e037ac7ba4a5a37</id>
<content type='text'>
With this patch, we can remove file descriptors dinamically
from our own file descriptor pool.

Signed-off-by: Pablo Neira Ayuso &lt;pablo@netfilter.org&gt;
</content>
</entry>
<entry>
<title>fds: remove unused array of file descriptors</title>
<updated>2008-11-25T23:16:57+00:00</updated>
<author>
<name>Pablo Neira Ayuso</name>
<email>pablo@netfilter.org</email>
</author>
<published>2008-11-25T23:16:57+00:00</published>
<link rel='alternate' type='text/html' href='https://git.amelek.net/vyos/conntrack-tools.git/commit/?id=22353928caf9c821e70d15c2dd827c8725f6ac40'/>
<id>urn:sha1:22353928caf9c821e70d15c2dd827c8725f6ac40</id>
<content type='text'>
This patch removes an unused array of file descriptors inside the
fds structure.

Signed-off-by: Pablo Neira Ayuso &lt;pablo@netfilter.org&gt;
</content>
</entry>
<entry>
<title>revert relicensing... still we use linux_list.h code which seems to be GPLv2 only which is incompatible AFAIK</title>
<updated>2008-03-08T11:35:02+00:00</updated>
<author>
<name>/C=EU/ST=EU/CN=Pablo Neira Ayuso/emailAddress=pablo@netfilter.org</name>
<email>/C=EU/ST=EU/CN=Pablo Neira Ayuso/emailAddress=pablo@netfilter.org</email>
</author>
<published>2008-03-08T11:35:02+00:00</published>
<link rel='alternate' type='text/html' href='https://git.amelek.net/vyos/conntrack-tools.git/commit/?id=4f0edbba3cca03e4816c015cbf2c1a29fb62d073'/>
<id>urn:sha1:4f0edbba3cca03e4816c015cbf2c1a29fb62d073</id>
<content type='text'>
</content>
</entry>
<entry>
<title>relicense conntrack-tools as GPLv3+, so far the most significant contributor has been Max Kellermann and has no issues with relicensing their contributions.</title>
<updated>2008-03-08T11:28:05+00:00</updated>
<author>
<name>/C=EU/ST=EU/CN=Pablo Neira Ayuso/emailAddress=pablo@netfilter.org</name>
<email>/C=EU/ST=EU/CN=Pablo Neira Ayuso/emailAddress=pablo@netfilter.org</email>
</author>
<published>2008-03-08T11:28:05+00:00</published>
<link rel='alternate' type='text/html' href='https://git.amelek.net/vyos/conntrack-tools.git/commit/?id=2d92fdb0912f3546492b114485951287fca4e5ab'/>
<id>urn:sha1:2d92fdb0912f3546492b114485951287fca4e5ab</id>
<content type='text'>
</content>
</entry>
<entry>
<title>compose the file descriptor set at initialization stage to save some cycles</title>
<updated>2008-02-19T23:04:49+00:00</updated>
<author>
<name>/C=EU/ST=EU/CN=Pablo Neira Ayuso/emailAddress=pablo@netfilter.org</name>
<email>/C=EU/ST=EU/CN=Pablo Neira Ayuso/emailAddress=pablo@netfilter.org</email>
</author>
<published>2008-02-19T23:04:49+00:00</published>
<link rel='alternate' type='text/html' href='https://git.amelek.net/vyos/conntrack-tools.git/commit/?id=13f4c15f214dd807899c10ebdff74ab5148d650f'/>
<id>urn:sha1:13f4c15f214dd807899c10ebdff74ab5148d650f</id>
<content type='text'>
</content>
</entry>
</feed>
