tcpdump mailing list archives

What happened to alarm()?


From: "Gisle Vanem" <giva () bgnett no>
Date: Sat, 29 Nov 2003 18:18:39 +0100

Why has the use of alarm() been removed from the 3.8 version
of getname()? Non-portable issue?

Allthough not supported by most Windows environments,
it can be simulated easily. For others there should IMHO be a
HAVE_ALARM because IMHO it's handy to timeout gethostbyaddr() 
especially in offline captures full of 192.168.* addresses that
resolves to nothing.

Latest tcpdump is rather slow at exiting from a SIGINT now and 
even more so with the new pcap_break_loop().

Any ideas how this could best be done? Running gethostbyaddr()
in a separate thread (for Win32) or use setitimer()/alarm() where 
available?

Gisle V.

# rm /bin/laden 
/bin/laden: Not found 

-
This is the TCPDUMP workers list. It is archived at
http://www.tcpdump.org/lists/workers/index.html
To unsubscribe use mailto:tcpdump-workers-request () tcpdump org?body=unsubscribe


Current thread: