1
0
mirror of https://github.com/samba-team/samba.git synced 2025-01-17 02:05:21 +03:00

32 Commits

Author SHA1 Message Date
Volker Lendecke
bbbf9f13ad Fix bug 5681: Do not limit the number of network interfaces
Jeremy as far as I can see there is no real technical reason to limit the
number of interfaces. If you like this patch, can you please merge it to 3.4?
If you don't please tell me :-)

Thanks,

Volker
2009-05-18 13:38:55 +02:00
Stefan Metzmacher
1410490fe7 s3:lib: interfaces.c isn't used in the configure tests anymore
libreplace always provides the getifaddr() function.

This fixes the build on sles8.

metze
2009-03-09 12:49:13 +01:00
Jelmer Vernooij
0888ffa2b7 Make Samba 3 and Samba 4 both use the same single copy of libreplace. 2008-09-16 16:30:14 +02:00
Michael Adam
e033fdbde2 Not all implementations of struct ifaddrs define ifa_broadaddr.
E.g. the definition of libreplace doesn't. :-o

Michael
(This used to be commit 25341602ec8752e19ab993872dc2f6c4762785ff)
2008-02-22 10:43:42 +01:00
Michael Adam
5c6db777e4 Remove the implementations of _get_interfaces and autoconf test in interfaces.c
getifaddrs() is now provided by libreplace.

Michael
(This used to be commit 7970901223464745f99cea883b180316189e4b2c)
2008-02-22 01:59:45 +01:00
Volker Lendecke
1c26f38c16 Interface detection should not go through the socket wrapper
Next try to get the build farm more in line again than it is now
(This used to be commit 38e178df12d30672f74bf272338954c7917b59e3)
2007-12-25 12:35:44 +01:00
Jeremy Allison
705ba0d5b5 Remove unused var noticed by metze.
Jeremy.
(This used to be commit ac4f897f0dec0e33e79c316340b47c2803104635)
2007-11-03 10:25:51 -07:00
Jeremy Allison
6665739a16 Fix typos in calc_sa_size, noticed by jim.brown@miami.edu
Jeremy.
(This used to be commit 6b7ccd3efb05291f3b8779845a3842a09bb9aa07)
2007-11-02 12:56:21 -07:00
Jeremy Allison
e075b3692b Fix Solaris by ensuring we use the IPv4 or IPv6 length
in any getnameinfo calls.
Jeremy
(This used to be commit 4d7badb0c44f287034f58d9a412e662c0fbecdc9)
2007-11-02 10:25:34 -07:00
Volker Lendecke
a97b33baad Two patches
Hi!

Can you check and push them?

Thanks,

Volker

From b488af5905e2dee12a1a72a3b40801ae5c26f24f Mon Sep 17 00:00:00 2001
From: Volker Lendecke <vl@sernet.de>
Date: Sat, 27 Oct 2007 14:20:09 +0200
Subject: [PATCH] Fix some warnings and errors
(This used to be commit e17d3e10e860c96b6d5208e5fe51e43b8e58c174)
2007-10-27 12:50:36 -07:00
Jeremy Allison
6128d116b3 Fix resolve name to resolve IPv6 addresses of link-local%ifaddr
Jeremy.
(This used to be commit e6609cab732d5cd5cc9a5ae50aee15147f2ec6ec)
2007-10-25 18:28:36 -07:00
Jeremy Allison
e01cbcb28e Fix for AIX interface code from Kyle Stemen <kstemen@centeris.com>
Jeremy.
(This used to be commit 4d4ab9aeb9d85b4c98cbf8a8363a9cefecd4b365)
2007-10-24 12:44:38 -07:00
Gerald (Jerry) Carter
6a8dfad25c Fix compile error caused by unknown variable.
(This used to be commit dfef16ac4318b460a5bd29475eb395c1905a5cd8)
2007-10-21 13:44:29 -05:00
Gerald (Jerry) Carter
80b7bcb5fb Add test for "struct in6_addr" to the HAVE_IPV6 configure test.
Also make use of "if defined(HAVE_IPV6)" rather than testing for
AF_INET6 since this is not sufficient on HP-UX 11.11 to ensure
a working IPv6 implementation.
(This used to be commit 620785df4e57b72471ff0315e22e0d2f28a2b1a5)
2007-10-19 13:09:26 -07:00
Volker Lendecke
478ad87cb3 Use strlcpy instead of strncpy
(This used to be commit 5e95c548864bc8b075b8343e69a69e1a22c92456)
2007-10-13 21:44:58 +02:00
Volker Lendecke
70b416a174 Fix an uninitialized variable warning
(This used to be commit d0f25bb89a2268c8f789dd362010f8b785489424)
2007-10-13 21:44:58 +02:00
Volker Lendecke
e8b83d79b1 Also find loopback interfaces
Not sure if a loopback interface is actually a broadcast one.
(This used to be commit 76d8dedc368ecb1594780ce58ffee2a35a6f4f73)
2007-10-13 21:44:58 +02:00
Jeremy Allison
f4fd12acc8 Try and fix segfault found by Guenther on Fedora. Fedora
seems to return bogus values for the interface entries on
vmnet and tun interfaces.
Jeremy.
(This used to be commit 12c0b1d82802ccd1b272a8b47ddb7d258e10477c)
2007-10-11 18:03:12 -07:00
Jeremy Allison
8e54530b52 Add start of IPv6 implementation. Currently most of this is avoiding
IPv6 in winbindd, but moves most of the socket functions that were
wrongly in lib/util.c into lib/util_sock.c and provides generic
IPv4/6 independent versions of most things. Still lots of work
to do, but now I can see how I'll fix the access check code.
Nasty part that remains is the name resolution code which is
used to returning arrays of in_addr structs.
Jeremy.
(This used to be commit 3f6bd0e1ec5cc6670f3d08f76fc2cd94c9cd1a08)
2007-10-10 18:25:16 -07:00
Jeremy Allison
e817616a0e r25476: Finally fix up new interface detection code :-).
Jeremy.
(This used to be commit fffdad52859b5a8bc5dd61912d80b93e8c030c8f)
2007-10-10 12:31:07 -05:00
Jeremy Allison
989120d53e r25475: Fix braindead mistakes I made pointed out by Simo and
James (how did this compile ? :-).
Jeremy.
(This used to be commit ae8efc60aa1ddff795d16b1fb1bfe8cc392f49b3)
2007-10-10 12:31:07 -05:00
Jeremy Allison
3fbd1ae54c r25472: Fix the interfaces code to detect IPv6 interfaces, using the
new standard getifaddrs() and freeifaddrs() interfaces. Currently
we only return IPv4 af_families. Needs fixing for binds to IPv6
but this has to be careful work.
Jeremy.
(This used to be commit 327875182c9219aeba687e10aaea93546d9a70ea)
2007-10-10 12:31:06 -05:00
Andrew Tridgell
5e54558c6d r23784: use the GPLv3 boilerplate as recommended by the FSF and the license text
(This used to be commit b0132e94fc5fef936aa766fb99a306b3628e9f07)
2007-10-10 12:28:22 -05:00
Jeremy Allison
d824b98f80 r23779: Change from v2 or later to v3 or later.
Jeremy.
(This used to be commit 407e6e695b8366369b7c76af1ff76869b45347b3)
2007-10-10 12:28:20 -05:00
Herb Lewis
6914b29daa r20131: get rid of a few no previous prototype warnings
(This used to be commit e710a7d39a662a1a339f3f71c4b051fde1bb5a16)
2007-10-10 12:16:26 -05:00
Stefan Metzmacher
387a8ed33e r18687: sync the lib/interfaces.c with lib/socket/netif.c from samba4
to hopefully fix the build on HPUX and Tru64

metze
(This used to be commit aa8222c6a709a1538862878b89a17b893600b7e8)
2007-10-10 12:00:47 -05:00
Herb Lewis
1c4bbe0654 r6586: get rid of a few more compiler warnings
(This used to be commit 173375f8d88bf8e8db8d60e5d5f0e5dcc28767d9)
2007-10-10 10:56:46 -05:00
Andrew Tridgell
e90b652848 updated the 3.0 branch from the head branch - ready for alpha18
(This used to be commit 03ac082dcb375b6f3ca3d810a6a6367542bc23ce)
2002-07-15 10:35:28 +00:00
Tim Potter
cd68afe312 Removed version number from file header.
Changed "SMB/Netbios" to "SMB/CIFS" in file header.
(This used to be commit 6a58c9bd06d0d7502a24bf5ce5a2faf0a146edfa)
2002-01-30 06:08:46 +00:00
Andrew Tridgell
fe6b398a79 fix interfaces.c for aix 3.2.5
(This used to be commit a69532ffde761453f3d9189be2fbf1036c2ed196)
2001-05-07 03:21:23 +00:00
Jeremy Allison
3a6c2069d7 Added "inherit permissions" patch.
Fixed locking bug found by Andrew.
Jeremy.
(This used to be commit 38dffd360dc2e44bfc9e751f017e24f81ff0f2fa)
2000-01-14 01:41:04 +00:00
Andrew Tridgell
9564ab8610 interfaces.c from 2.0.6
(This used to be commit 4e1458b8c161f87339eba251c2179946d3b0405a)
1999-12-17 01:41:55 +00:00