summaryrefslogtreecommitdiffstats
path: root/source4/lib/socket/interface.c
Commit message (Collapse)AuthorAgeFilesLines
* s4:lib/socket: simplify iface_list_wildcard() and its callersStefan Metzmacher2014-03-071-2/+2
| | | | | | | | | | | Bug: https://bugzilla.samba.org/show_bug.cgi?id=10464 Signed-off-by: Stefan Metzmacher <metze@samba.org> Change-Id: Ib317d71dea01fc8ef6b6a26455f15a8a175d59f6 Reviewed-by: Andrew Bartlett <abartlet@samba.org> Autobuild-User(master): Andrew Bartlett <abartlet@samba.org> Autobuild-Date(master): Fri Mar 7 02:18:17 CET 2014 on sn-devel-104
* s4:lib/socket: use the same logic in iface_list_wildcard() as in smbdStefan Metzmacher2014-03-071-21/+5
| | | | | | | | | | If we have ipv6 support we should listen on "::" too. Bug: https://bugzilla.samba.org/show_bug.cgi?id=10464 Signed-off-by: Stefan Metzmacher <metze@samba.org> Change-Id: I8ce185d5070280149bee9fd33010443be9031089 Reviewed-by: Andrew Bartlett <abartlet@samba.org>
* lib/param: Remove use of lp{cfg,}_socket_address outside the NBT client and ↵Andrew Bartlett2012-07-271-10/+0
| | | | | | | | | server In these other cases, control of the sockets to bind to can be obtained using "bind interfaces only = yes" and "interfaces = ". Andrew Bartlett
* s4-interfaces: allow pure ipv6 to workMatthieu Patou2011-10-161-1/+2
| | | | | This is the complementary part of patch abe5afc580dcaaab70f136904d98fa83bfae7b6e for samba4.
* s4:lib/socket/interface.c - "ifaces" strictly needs to be initialisedMatthias Dieter Wallnöfer2011-09-121-1/+1
| | | | | | | | | | | | Please consider a failing "get_interfaces" call and the "talloc_free()" operation on a possible uninitialised "ifaces" on line 326. https://bugzilla.samba.org/show_bug.cgi?id=8397 Reviewed-by: Jelmer Autobuild-User: Matthias Dieter Wallnöfer <mdw@samba.org> Autobuild-Date: Mon Sep 12 23:49:12 CEST 2011 on sn-devel-104
* s4:lib/socket: iface_list_wildcard() should only return "::" if we have ipv6 ↵Stefan Metzmacher2011-07-101-1/+13
| | | | | | | | | interfaces If glibc has IPv6 support, but it's not enabled in the running kernel we should not try to listen on "::". metze
* s4-interface: raise the debug level for interface discoveryAndrew Tridgell2011-06-081-3/+3
|
* s4-ipv6: fixed iface_list_same_net() for IPv6Andrew Tridgell2011-06-071-3/+15
|
* s4-ipv6: fix iface_list_best_ip() for IPv6Andrew Tridgell2011-06-071-1/+23
| | | | return an interface with the same address family as the target
* s4-ipv6: enable IPv6 by defaultAndrew Tridgell2011-06-061-2/+2
| | | | it now passes all tests
* s4-ipv6: allow ipv6 to be enabled/disabled in smb.confAndrew Tridgell2011-06-061-11/+20
| | | | | | | this adds the parametric option ipv6:enable=true/false It defaults to false for now, until the remaining issues with testing of ipv6 are resolved
* s4-ipv6: added ipv4 functions to interface codeAndrew Tridgell2011-06-061-0/+32
| | | | | this adds iface_list_first_v4() and iface_list_n_is_v4(). The NBT server will use these to allow it to listen only for IPv4 addresses.
* s4-ipv6: fixed a warningAndrew Tridgell2011-06-061-1/+1
|
* s4-ipv6: allow IPv6 addresses in our interfaces listAndrew Tridgell2011-06-061-5/+0
|
* s4-ipv6: added iface_list_wildcard()Andrew Tridgell2011-06-061-0/+28
| | | | | | | | | this returns a list of wildcard address to listen on, when we don't have 'bind interfaces only' set. It is a list, not a single address, we need to listen separately for the IPv6 "::" address from the IPv4 0.0.0.0 address. This also takes account of the loadparm "socket address" option
* s4-interfaces: keep interfaces in the order they were declaredAndrew Tridgell2011-05-081-1/+5
| | | | | | | | | the spoolss notify test depends on the interfaces order Pair-Programmed-With: Andrew Bartlett <abartlet@samba.org> Autobuild-User: Andrew Tridgell <tridge@samba.org> Autobuild-Date: Sun May 8 13:57:58 CEST 2011 on sn-devel-104
* s4-interfaces Rename interfaces code so not to conflict with source3/Andrew Bartlett2011-05-081-16/+16
| | | | | | | | | The iface_count, iface_n_bcast, and load_interfaces functions conflicted with functions of the same name in source3, so the source4 functions were renamed. Hopefully we can actually wrap one around the other in future. Andrew Bartlett
* s4-lib/socket Samba4 is not IPv6 compatibleAndrew Bartlett2011-05-081-0/+5
| | | | | | | | | Don't add IPv6 interfaces until we actually support them. I'll soon have IPv6 service at home, and then I'll make it my buisness to sort this out once and for all. Andrew Bartlett
* s4-lib merge get_interfaces() from Samba3 to Samba4Andrew Bartlett2011-05-081-79/+165
|
* s4 socket: increase the debuglevel to make add interface debug messages less ↵Kai Blin2010-10-231-1/+1
| | | | verbose
* libutil: moved the networking defines to util_net.hAndrew Tridgell2010-03-261-0/+1
| | | | These were causing thousands of warnings on solaris8
* Remove unused include param/param.h.Jelmer Vernooij2008-10-241-1/+0
|
* Use common net utility code (address and sockaddr manipulation).Jelmer Vernooij2008-10-231-1/+1
|
* Rename same_net to same_net_v4 for consistency with Samba 3.Jelmer Vernooij2008-10-231-3/+3
|
* Fix include paths to new location of libutil.Jelmer Vernooij2008-10-111-1/+1
|
* r26406: Make a copy to prevent modification of the loadparm configuration.Jelmer Vernooij2007-12-211-2/+9
| | | | (This used to be commit c0f2775fd8bd88aad3497d59a7857d7a8a0978c5)
* r26402: Require a talloc context in libnetif.Jelmer Vernooij2007-12-211-10/+11
| | | | (This used to be commit a35e51871bbf1ab33fc316fa59e597b722769c50)
* r26401: Don't cache interfaces context in libnetif.Jelmer Vernooij2007-12-211-49/+24
| | | | (This used to be commit 9f975417cc66bfd4589da38bfd23731dbe0e6153)
* r26383: Make interfaces argument explicit.Jelmer Vernooij2007-12-211-15/+20
| | | | (This used to be commit 89008ae18d37e8bc5bb7c70ac3e2128134264f9f)
* r26325: Remove use of global_loadparm in netif.Jelmer Vernooij2007-12-211-13/+13
| | | | (This used to be commit e452cb28594f23add7c00247ed39e8323aea78a6)
* r26313: Fix more uses of static loadparm.Jelmer Vernooij2007-12-211-9/+8
| | | | (This used to be commit 6fd0d9d3b75546d08c24c513e05b1843d5777608)
* r25624: Remove ipv4_addr hack. Only causes 4 extra includes of ↵Jelmer Vernooij2007-12-211-26/+19
| | | | | | system/network.h because we stripped down includes. (This used to be commit 262c1c23a61f1f4fae13e0a61179fe98b682cecf)
* r25522: Convert to standard bool types.Jelmer Vernooij2007-10-101-9/+9
| | | | (This used to be commit 5e814287ba475e12f8cc934fdd09b199dcdfdb86)
* r25398: Parse loadparm context to all lp_*() functions.Jelmer Vernooij2007-10-101-1/+1
| | | | (This used to be commit 3fcc960839c6e5ca4de2c3c042f12f369ac5f238)
* r25043: Avoid allocation on with NULL parent.Jelmer Vernooij2007-10-101-2/+3
| | | | (This used to be commit 3f30cd5688a532a2d6c4d970c2bc759efa2a1b04)
* r25026: Move param/param.h out of includes.hJelmer Vernooij2007-10-101-0/+1
| | | | (This used to be commit abe8349f9b4387961ff3665d8c589d61cd2edf31)
* r23792: convert Samba4 to GPLv3Andrew Tridgell2007-10-101-3/+2
| | | | | | There are still a few tidyups of old FSF addresses to come (in both s3 and s4). More commits soon. (This used to be commit fcf38a38ac691abd0fa51b89dc951a08e89fdafa)
* r17930: Merge noinclude branch:Jelmer Vernooij2007-10-101-1/+1
| | | | | | | * Move dlinklist.h, smb.h to subsystem-specific directories * Clean up ads.h and move what is left of it to dsdb/ (only place where it's used) (This used to be commit f7afa1cb77f3cfa7020b57de12e6003db7cfcc42)
* r17586: merge lib/netif into lib/socket and use -lnsl -lsocket on theStefan Metzmacher2007-10-101-0/+354
configure check for the interfaces. should fix the build on some old sun boxes metze (This used to be commit f20e251bfd9f1eb7ce5c00739631b1625a2aa467)