aboutsummaryrefslogtreecommitdiffstats
path: root/pcap-util-unix.c
AgeCommit message (Collapse)AuthorFilesLines
2005-11-07This is UN*X-only, so it doesn't need to use the eth_close() wrapper;Guy Harris1-2/+2
close() will be available. svn path=/trunk/; revision=16411
2005-11-06replace *a lot* of file related calls by their GLib counterparts. This is ↵Ulf Lamping1-2/+2
necessary for the switch to GTK 2.6 (at least on WIN32). to do this, I've added file_util.h to wiretap (would file_compat.h be a better name?), and provide compat_macros like eth_open() instead of open(). While at it, move other file related things there, like #include <io.h>, definition of O_BINARY and alike, so it's all in one place. deleted related things from config.h.win32 As of these massive changes, I'm almost certain that this will break the Unix build. I'll keep an eye on the buildbot so hopefully everything is working again soon. svn path=/trunk/; revision=16403
2005-08-08various code cleanup:Ulf Lamping1-4/+5
-use g_snprintf instead of sprintf and snprintf -use g_strdup_printf where appropriate -remove #include "snprintf.h" (as only g_snprintf should be used) -replace some more alloc/realloc/calloc/free with their glib pendants svn path=/trunk/; revision=15264
2005-02-04this file doesn't use any item of the globals.h so remove #include. Ulf Lamping1-2/+0
However, if it needs one of: #include "file.h" #include <epan/timestamp.h> it should include it directly, please let me know if it's required, as I can't test it :-( svn path=/trunk/; revision=13290
2004-07-18Add support for IPv6 addresses for interfaces.Guy Harris1-1/+1
svn path=/trunk/; revision=11411
2004-07-18Get IPv4 addresses and the loopback flag if we don't haveGuy Harris1-11/+17
"pcap_findalldevs()". "if_info_ip()" is used - and can be compiled - only if libpcap has "pcap_findalldevs()". svn path=/trunk/; revision=11402
2004-07-18Set the svn:eol-style property on all text files to "native", so thatGuy Harris1-1/+1
they have LF at the end of the line on UN*X and CR/LF on Windows; hopefully this means that if a CR/LF version is checked in on Windows, the CRs will be stripped so that they show up only when checked out on Windows, not on UN*X. svn path=/trunk/; revision=11400
2004-06-12On Windows, if "get_interface_list()" returns CANT_GET_INTERFACE_LISTGuy Harris1-1/+11
and the error message includes "Not enough storage is available to process this command" or "The operation completed successfully", suggest that the user install a WinPcap version later than 3.0 - this is definitely a Frequently Asked Question on the Ethereal list. svn path=/trunk/; revision=11143
2003-10-10Get the version number of the libpcap/WinPcap with which we're runningGuy Harris1-3/+53
with "pcap_lib_version()", if available. svn path=/trunk/; revision=8656
2003-10-10Use "pcap_findalldevs()" if present.Guy Harris1-0/+273
svn path=/trunk/; revision=8655