dabbad: prepare seperate capture list.

Signed-off-by: Emmanuel Roullit <emmanuel.roullit@gmail.com>
dabbad: remove type based thread function.

Signed-off-by: Emmanuel Roullit <emmanuel.roullit@gmail.com>
dabbad: add function to find a thread by its id.

Signed-off-by: Emmanuel Roullit <emmanuel.roullit@gmail.com>
dabbad: traverse tail list using foreach().

Signed-off-by: Emmanuel Roullit <emmanuel.roullit@gmail.com>
dabbad: refactor thread list to store its length.

Signed-off-by: Emmanuel Roullit <emmanuel.roullit@gmail.com>
dabbad: keep track of the thread list length.

Signed-off-by: Emmanuel Roullit <emmanuel.roullit@gmail.com>
dabbad: use list length to prepare thread list.

Signed-off-by: Emmanuel Roullit <emmanuel.roullit@gmail.com>
dabbad: only use foreach() to traverse thread list.

Signed-off-by: Emmanuel Roullit <emmanuel.roullit@gmail.com>
dabbad: encapsulate insert/remove list opertion.

Signed-off-by: Emmanuel Roullit <emmanuel.roullit@gmail.com>
dabbad: add thread list length getter.

Signed-off-by: Emmanuel Roullit <emmanuel.roullit@gmail.com>
dabbad: rename 'packet_capture_thread' -> 'packet_capture'

Signed-off-by: Emmanuel Roullit <emmanuel.roullit@gmail.com>
dabbad: make sure capture list mimics thread list.

Signed-off-by: Emmanuel Roullit <emmanuel.roullit@gmail.com>
dabbad: no need to use the libnl link cache here.

Signed-off-by: Emmanuel Roullit <emmanuel.roullit@gmail.com>
dabbad: remove useless libnl includes.

Signed-off-by: Emmanuel Roullit <emmanuel.roullit@gmail.com>
Merge pull request #6 from eroullit/refactor-thread

Refactor thread list handling