Re: context queue limit.
Frédéric Raynal <[email protected]>
| Newsgroups | gmane.comp.security.libnet |
|---|---|
| Message-ID | <20040225075240.A8268@batman> |
Hi, On Fri, Feb 20, 2004 at 03:53:32AM -0000, Mathew Pham wrote: > > > Hi, > I was just playing around with context queues, and notice I can't > add more then 1021 context's in a queue. Can someone confirm this > for me, just in case it's on system setup related. I've tested this > in Redhat 9, 7.3 and Suse 8.0. same thing occurs. I use > "icmp_echo_cq.c" as the testing method. > > This is the error I get when I try to add 1022 contextes: > > libnet_init() failed: libnet_select_device(): ifaddrlist : socket: Too many open files Context queue is implemanted as a list, so there is no such limit. In fact, the limit you are reaching is a "process limit" as you cant open more than 1024 file descriptors per process in most Linux configuration. See getrlimit() man page for RLIMIT_NOFILE resource. Fred Raynal