aboutsummaryrefslogtreecommitdiffstats
path: root/epan/inet_pton.c
AgeCommit message (Collapse)AuthorFilesLines
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
2002-10-29Note why we're including <sys/socket.h> and <winsock2.h> in places whereGuy Harris1-6/+6
we're including them to get AF_ values. Shuffle the order of those includes in "inet_pton.c" to match the order in "inet_ntop.c". Include <winsock2.h> in "resolv.c" and "to_str.c" so that we get AF_ values from it - including AF_INET6 - if they exist, as we want to have everybody who uses AF_INET6 get the same value. svn path=/trunk/; revision=6517
2002-08-03<netinet/in.h> is needed for <arpa/inet.h>, at least on some platforms,Guy Harris1-13/+21
and <sys/types.h> is needed for <netinet/in.h>. On systems with "inet_pton()", the API is defined using "u_char", and we're including <sys/types.h> on platforms that have it (which should be most if not all UNIX platforms) and including <winsock2.h> on platforms that have it (Windows), so we might as well use "u_char" and "u_int", as the BSD version of "inet_pton.c" does. (Besides, we weren't including any GLib include files, so "guchar" and "guint" weren't getting defined in any case.) svn path=/trunk/; revision=5937
2002-08-02Replace the types from sys/types.h and netinet/in.h by their glib.hJörg Mayer1-21/+13
equivalents for the epan/ directory but leave winsock2.h in inet_pton.c and inet_ntop.c for now (can't estimate the consequences). svn path=/trunk/; revision=5928
2002-06-23WinPcap 2.3's <pcap.h> includes <packet32.h>, and WinPcap 2.3'sGuy Harris1-3/+3
<packet32.h> includes <winsock2.h>; we include that rather than <winsock.h>, to avoid errors due to conflicting declarations in <winsock.h> and <winsock2.h>. svn path=/trunk/; revision=5742
2000-10-14Move inet_*.[ch] files to epan.Gilbert Ramirez1-0/+269
svn path=/trunk/; revision=2494