summaryrefslogtreecommitdiffstats
path: root/src/event.c
Commit message (Collapse)AuthorAgeFilesLines
* sync: unify tx_list and tx_queue into one single tx_queuePablo Neira Ayuso2009-01-151-8/+12
| | | | | | | | | | | | | | | | | | | This patch unifies the tx_list and the tx_queue to have only one transmission queue. Since the tx_list hold state objects and tx_queue control messages, I have introduced a queue node type that can be used to differenciate the kind of information that the node stores: object or control message. This patch also reworks the existing queue class to include a file descriptor that can be used to know if there are new data added to the queue (see QUEUE_F_EVFD flag). In this change, I have also modified the current evfd to make the file descriptor to make read operations non-blocking. Moreover, it keeps a counter that is used to know how many messages are inserted in the queue. Signed-off-by: Pablo Neira Ayuso <pablo@netfilter.org>
* add eventfd emulation to communicate receiver -> senderPablo Neira Ayuso2008-05-251-0/+73