aboutsummaryrefslogtreecommitdiff
path: root/lib/if2ip.c
AgeCommit message (Collapse)Author
2011-12-13if2ip.[ch]: fix compilation with MinGWYang Tse
Avoid 'interface' literal that some MinGW versions define as a macro
2011-12-13if2ip.c: fix compiler warning 'unused parameter'Yang Tse
2011-12-13if2ip.c: fix compiler warning 'enumerated type is mixed with another type'Yang Tse
2011-12-12CURLOPT_INTERFACE: avoid resolving interfaces namesJason Glasgow
Do not try to resolve interfaces names via DNS by recognizing interface names in a few ways. If the interface option argument has a prefix of "if!" then treat the argument as only an interface. Similarly, if the interface argument is the name of an interface (even if it does not have an IP address assigned), treat it as an interface name. Finally, if the interface argument is prefixed by "host!" treat it as a hostname that must be resolved by /etc/hosts or DNS. These changes allow a client using the multi interfaces to avoid blocking on name resolution if the interface loses its IP address or disappears.
2011-04-27source cleanup: unify look, style and indent levelsDaniel Stenberg
By the use of a the new lib/checksrc.pl script that checks that our basic source style rules are followed.
2010-03-24remove the CVSish $Id$ linesDaniel Stenberg
2009-12-30VMS specific preprocessor symbol checking adjustmentsYang Tse
2009-04-21libcurl's memory.h renamed to curl_memory.hYang Tse
2009-04-11Use 'curl_socket_t' instead of 'int' for socket.Yang Tse
Avoid unnecessary'if-else' nesting.
2008-12-30changed HAVE_SIN6_SCOPE_ID define to HAVE_SOCKADDR_IN6_SIN6_SCOPE_ID since ↵Gunter Knauf
just found that ares already uses this define.
2008-12-04Fixed the getifaddrs version of Curl_if2ip to work on systems without IPv6Dan Fandrich
support (e.g. Minix)
2008-11-17the IP address we want/request/use from the interface is the 'local'Yang Tse
address, the one on the box libcurl is running, not the 'remote' one.
2008-11-17fix commentYang Tse
2008-11-17if2ip.c related preprocessor cleanupYang Tse
2008-11-07The getifaddrs() version of Curl_if2ip() crashed when used on a LinuxDan Fandrich
system with a TEQL load-balancing device configured, which doesn't have an address. Thanks to Adam Sampson for spotting this (bug #2234923).
2008-10-25add missing header inclusionsYang Tse
2008-10-12Changed Curl_strlcat to strlcat, which is the one guaranteed to existDan Fandrich
2008-10-09Fixed the --interface option to work with IPv6 connections on glibcDan Fandrich
systems supporting getifaddrs(). Also fixed a problem where an IPv6 address could be chosen instead of an IPv4 one for --interface when it involved a name lookup.
2008-07-02Support Open Watcom C on Linux (as well as Windows).Dan Fandrich
2008-04-22Added support for running on Symbian OS.Dan Fandrich
2007-11-07if () => if()Daniel Stenberg
while () => while() and some other minor re-indentings
2007-04-12Song Ma found a memory leak in the if2ip code if you pass in an interfaceDaniel Stenberg
name longer than the name field of the ifreq struct (typically 6 bytes), as then it wouldn't close the used dummy socket.
2007-02-28proper symbol definition check for all AmigaOS flavoursYang Tse
2006-10-25updated copyright yearDaniel Stenberg
2006-08-16Minor portability fixes to get things running on UNICOS 9.0 on a Cray Y-MPDan Fandrich
2006-08-11Use __minix to detect Minix, which works on both ACK and GCC.Dan Fandrich
2006-08-04Initial stab at making libcurl compile under Minix 3.Dan Fandrich
2006-06-08Brian Dessent's fixes for cygwin buildsDaniel Stenberg
2005-07-13Diego Casorran patches to make (lib)curl build fine on Amiga againDaniel Stenberg
2005-04-08cast the call to Curl_inet_ntop for DECC compiler squawkMarty Kuhrt
2005-03-31Updated the copyright year since changes have been this year.Daniel Stenberg
2005-03-16Fixed some compiler warnings I should have noticed before.Dan Fandrich
2005-03-15Fixed ftp support with uClibc due to differing inet_ntoa_r() behaviour.Dan Fandrich
2005-03-14hushing up more warningsDaniel Stenberg
2004-11-02Paul Nolan fix to make libcurl build nicely on Windows CEDaniel Stenberg
2004-10-06untabifyDaniel Stenberg
2004-06-30passing in a very long interface name could make a buffer overflowDaniel Stenberg
2004-06-24Source cleanups. The major one being that we now _always_ use a Curl_addrinfoDaniel Stenberg
linked list for name resolved data, even on hosts/systems with only IPv4 stacks as this simplifies a lot of code.
2004-05-11curl_global_init_mem() allows the memory functions to be replaced.Daniel Stenberg
memory.h is included everywhere for this.
2004-05-05Gisle-fix: constified the 'interface' argument.Daniel Stenberg
2004-03-17Günter Knauf's NetWare changes.Daniel Stenberg
2004-02-02set the 'retry' bit to TRUE when the connection is about to be retried,Daniel Stenberg
this allows the HTTP code to *not* return a failure just because no data has been received from the server
2004-01-29moved the definitions of IOCTL_3_ARGS to setup.hDaniel Stenberg
2004-01-29Dan Fandrich's cleanup patch to make pedantic compiler options cause lessDaniel Stenberg
warnings. Minor edits by me.
2004-01-16Avoid Curl_if2ip() on Interix as well. Fix by Rodney.Daniel Stenberg
2004-01-07updated year in the copyright stringDaniel Stenberg
2003-06-26use CURLDEBUG instead of MALLOCDEBUG for preprocessor conditionsDaniel Stenberg
2003-05-23DJGPP fix by Gisle VanemDaniel Stenberg
2003-02-28James Bursa made it compile on RISC OS as well.Daniel Stenberg
2003-01-29removed the local variables for emacs and vim, use the new sample.emacsDaniel Stenberg
way for emacs, and vim users should provide a similar non-polluting style