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 thatguy1-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. git-svn-id: http://anonsvn.wireshark.org/wireshark/trunk@11400 f5534014-38df-0310-8fa8-9805f1628bb7
2002-10-29Note why we're including <sys/socket.h> and <winsock2.h> in places whereguy1-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. git-svn-id: http://anonsvn.wireshark.org/wireshark/trunk@6517 f5534014-38df-0310-8fa8-9805f1628bb7
2002-08-03<netinet/in.h> is needed for <arpa/inet.h>, at least on some platforms,guy1-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.) git-svn-id: http://anonsvn.wireshark.org/wireshark/trunk@5937 f5534014-38df-0310-8fa8-9805f1628bb7
2002-08-02Replace the types from sys/types.h and netinet/in.h by their glib.hjmayer1-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). git-svn-id: http://anonsvn.wireshark.org/wireshark/trunk@5928 f5534014-38df-0310-8fa8-9805f1628bb7
2002-06-23WinPcap 2.3's <pcap.h> includes <packet32.h>, and WinPcap 2.3'sguy1-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>. git-svn-id: http://anonsvn.wireshark.org/wireshark/trunk@5742 f5534014-38df-0310-8fa8-9805f1628bb7
2000-10-14Move inet_*.[ch] files to epan.gram1-0/+269
git-svn-id: http://anonsvn.wireshark.org/wireshark/trunk@2494 f5534014-38df-0310-8fa8-9805f1628bb7