<div dir="ltr">Hi all,<div><br></div><div>I&#39;m working for a network security prototype and I would like to know the best way to read diferent configs from the memory, for example:</div><div><br></div><div>My program will receive many pkts from network interface and it needs to know what&#39;s profile it will use based on source ip address.</div><div><br></div><div>First all, I&#39;m thinking to use array in C, for example:</div><div><br></div><div>for (i=0;i&lt;=PROFILES;i++) {</div><div>    if (pkt.ip_addr == source_ip[i])</div><div>        do_something(pkt,i)</div><div>}</div><div><br></div><div>I will process at about millions entries per second and ~100 profiles. What do you think? It will work fine? fast? any suggest?</div><div><br></div><div>thanks</div><div>Victor</div></div>