Tom Decanio originally wrote that part of the code, so I will let him respond as to why.

I will look into using that API.

-Ken

From: Eric Leblond [mailto:notifications@github.com]
Sent: Wednesday, June 26, 2013 4:24 AM
To: inliniac/suricata
Cc: Kenneth Steele
Subject: Re: [suricata] Initial Tile mPIPE support (#403)


In src/runmode-tile.c:

> +            SCLogInfo("Invalid mode (no in tap, ips)");

> +        }

> +    }

> +    return aconf;

> +}

> +

> +/**

> + * \brief RunModeIdsTileMpipeWorkers set up to process all modules in each thread.

> + *

> + * \param de_ctx pointer to the Detection Engine

> + * \param iface pointer to the name of the interface from which we will

> + *              fetch the packets

> + * \retval 0 if all goes well. (If any problem is detected the engine will

> + *           exit())

> + */

> +int RunModeIdsTileMpipeWorkers(DetectEngineCtx *de_ctx)

Why did you not use the RunModeSetLiveCaptureWorkers like in other modules (see https://github.com/inliniac/suricata/blob/master/src/runmode-af-packet.c#L492) ?

—
Reply to this email directly or view it on GitHub<https://github.com/inliniac/suricata/pull/403/files#r4886206>.