summaryrefslogtreecommitdiffstats
path: root/lib/util/util_net.c
Commit message (Collapse)AuthorAgeFilesLines
* lib/util: let is_ipaddress_v6() cope with "fe80::1234%3"Stefan Metzmacher2014-03-251-12/+54
| | | | | Signed-off-by: Stefan Metzmacher <metze@samba.org> Reviewed-by: Andrew Bartlett <abartlet@samba.org>
* util: remove accidently committed hunkBjörn Jacke2012-10-311-3/+0
| | | | | Autobuild-User(master): Björn Jacke <bj@sernet.de> Autobuild-Date(master): Wed Oct 31 19:25:30 CET 2012 on sn-devel-104
* wfabuild: fix the -errwarn compile flag testBjörn Jacke2012-10-301-0/+3
| | | | as in the autoconf build this must be "-errwarn=%all"
* util: fix build on platforms without IPv6 supportBjörn Jacke2012-06-071-1/+1
| | | | | | | something like this on World IPv6 Day II ... ;-) Autobuild-User(master): Björn Jacke <bj@sernet.de> Autobuild-Date(master): Thu Jun 7 03:09:49 CEST 2012 on sn-devel-104
* Fix an IPv6 breakage I introduced by adding an strlcpy truncation check. ↵Jeremy Allison2012-03-311-3/+10
| | | | | | | | | | | Found by Matthieu Patou <mat@samba.org>. The truncate of the strlcpy() here was a *desired* side effect. strlcpy()/strlcat() should never be used like that. Be more explicit about the truncation and don't use strlcpy here. Autobuild-User: Jeremy Allison <jra@samba.org> Autobuild-Date: Sat Mar 31 07:59:16 CEST 2012 on sn-devel-104
* Start to add truncate checks on all uses of strlcpy(). Reading lwnJeremy Allison2012-03-291-7/+14
| | | | | | | has it's uses :-). Autobuild-User: Jeremy Allison <jra@samba.org> Autobuild-Date: Thu Mar 29 20:48:15 CEST 2012 on sn-devel-104
* Add support for TCP_DEFER_ACCEPTVolker Lendecke2011-12-161-0/+3
| | | | | | | | | | | | | "man tcp" on Linux says: TCP_DEFER_ACCEPT Allows a listener to be awakened only when data arrives on the socket. Takes an integer value (seconds), this can bound the maximum number of attempts TCP will make to complete the connection. This option should not be used in code intended to be portable. This might reduce the 139/445 forks a bit on high-load servers
* s3: allow to set TCP_NODELAYACK socket option on AIXBjörn Jacke2011-11-151-0/+3
| | | | | | | | this is the AIX way to disable delayed ACKs, the same like TCP_QUICKACK on Linux Autobuild-User: Björn Jacke <bj@sernet.de> Autobuild-Date: Tue Nov 15 21:00:07 CET 2011 on sn-devel-104
* net: Don't register link local addresses with DNSKai Blin2011-09-241-0/+23
|
* libutil: use AI_ADDRCONFIG only when AI_NUMERIC is not definedSimo Sorce2011-08-101-5/+11
| | | | | | | This flag prevents startup w/o ip addresses assigned to any interface. If AI_NUMERIC is passed it should be safe to avoid it. Signed-off-by: Andreas Schneider <asn@samba.org>
* S3: Fix some nonempty blank linesVolker Lendecke2011-07-031-3/+3
|
* util-net: added is_ipaddress_v6()Andrew Tridgell2011-06-061-3/+12
|
* ipv6: always try to convert as a numeric address firstAndrew Tridgell2011-06-061-0/+9
| | | | | This avoids unnecessary name lookups, plus it fixes a problem with using interpret_string_addr*() with the wildcard IPv6 address
* Use ZERO_STRUCTP in util_netVolker Lendecke2011-05-141-2/+2
|
* Clean up some const and other compiler warnings.Jeremy Allison2011-05-051-1/+1
| | | | | Autobuild-User: Jeremy Allison <jra@samba.org> Autobuild-Date: Thu May 5 00:59:40 CEST 2011 on sn-devel-104
* lib/util Move set_socket_options() into common code.Andrew Bartlett2011-05-031-0/+161
|
* lib/util Move more network utility functions from source3 into lib/utilAndrew Bartlett2011-05-031-0/+155
| | | | | | This will help with the merge of the interfaces layer. Andrew Bartlett
* s3: Make is_zero_addr take a sockaddr_storageVolker Lendecke2011-02-271-3/+3
| | | | | | | All callers had to cast this anyway Autobuild-User: Volker Lendecke <vlendec@samba.org> Autobuild-Date: Sun Feb 27 11:02:53 CET 2011 on sn-devel-104
* util_net: fix a comment typo in interpret_string_addr_internal()Michael Adam2010-12-171-1/+1
| | | | Signed-off-by: Stefan Metzmacher <metze@samba.org>
* libutil: moved the networking defines to util_net.hAndrew Tridgell2010-03-261-0/+1
| | | | These were causing thousands of warnings on solaris8
* use ZERO_STRUCTVolker Lendecke2010-02-131-1/+2
|
* Use ZERO_STRUCTPVolker Lendecke2010-02-131-1/+1
|
* s3: Fix a typoVolker Lendecke2010-02-131-1/+1
|
* libcli:nbt make the lmhosts parsing code and dependicies commonAndrew Bartlett2009-09-151-1/+117
| | | | | | This starts the process to have Samba4 use lmhosts. Andrew Bartlett
* s3: Change sockaddr util function names for consistencyTim Prouty2008-12-031-1/+1
| | | | Also eliminates name conflicts with OneFS system libraries
* Move set_sockaddr_port to libutil.Jelmer Vernooij2008-10-231-0/+14
|
* Use common net utility code (address and sockaddr manipulation).Jelmer Vernooij2008-10-231-43/+322
|
* Rename same_net to same_net_v4 for consistency with Samba 3.Jelmer Vernooij2008-10-231-1/+1
|
* Fix const, dupes.Jelmer Vernooij2008-10-181-0/+3
|
* Use shared util.c.Jelmer Vernooij2008-10-181-0/+128