summaryrefslogtreecommitdiff
path: root/source4/lib/netif
AgeCommit message (Collapse)AuthorFilesLines
2007-10-10r15321: Reduce the size of rewrite.m4 a bit moreJelmer Vernooij1-1/+1
(This used to be commit c83e4b166534278c335254aa8890a50635bbf1b7)
2007-10-10r14554: Write out header dependencies. This means all C files affected will beJelmer Vernooij1-1/+1
rebuilt when a header file is changed. It also means parallel builds work now. It will take a minute or so to generate all the dependency information, but there should be no need to rebuild that information later on, unless a file changes. This behaviour is only enabled when building in developer mode (--enable-developer) and requires a GNU make (or compatible). In all other cases, the file 'static_deps.mk' is included, which contains some basic hardcoded dependency information. (This used to be commit eb435386f015ce1d89eb6f7e7837622ebd9e1951)
2007-10-10r14199: This isn't pretty, but it makes the network interface detection work ↵Andrew Bartlett1-0/+2
again. When making build changes, watch out that 'compiles' doesn't mean that it works... Andrew Bartlett (This used to be commit d5f9e19b5890ec954c9437447041b655aa83868b)
2007-10-10r13924: Split more prototypes out of include/proto.h + initial work on headerJelmer Vernooij3-25/+27
file dependencies (This used to be commit 122835876748a3eaf5e8d31ad1abddab9acb8781)
2007-10-10r13842: Make some more functions public.Jelmer Vernooij1-8/+8
(This used to be commit aac1b99b362993352d80692afa55c38fc851c016)
2007-10-10r13505: allow servers to bind to non-broadcast interfaces. Servers nowAndrew Tridgell1-16/+11
specifically ask for iface_n_bcast() and have to check if it returns NULL, in which case it is a non-broadcast interface (This used to be commit d004e250b6710251ea089ac242775481f13b5c2b)
2007-10-10r13504: add back in a comment noting fred as the contributor of the addressAndrew Tridgell1-0/+3
calculation code. This was originally done in 1997, and has been morphed a lot since then, but fred should still get credit (This used to be commit 172e41596fb3b4d2768d6885aea43295cc2f81c1)
2007-10-10r12785: make the iface_*() functions return strings which do not getAndrew Tridgell1-7/+15
overwritten by another call (due to the implied static in iface_ntoa()). This should save abartlet some pain (This used to be commit 2244f298ace9f8832695cafd17c54324c11416f1)
2007-10-10r12616: remove unused function, and we have iface_local() as replacementStefan Metzmacher1-15/+0
metze (This used to be commit 032d0a19eed485a9f0a11818b5296625f9489b2a)
2007-10-10r12531: 'make quicktest' was taking 15 minutes on my system due to failing DNSAndrew Tridgell1-60/+41
lookups in load_interfaces(). The reason was my eth0 interface was down, and it was being interpreted as a DNS name. This patch changes load_interfaces() to happening automatically when interfaces are first needed instead of on the startup of every samba binary. This means that (for example) ldbadd doesn't call load_interfaces(), which means no slow DNS lookups. I also reduced the number of static globals in interface.c to 1, and changed from malloc to talloc When you want to force a reload of the interfaces list, you now call unload_interfaces(), which means the next call that needs the interfaces list will reload it (This used to be commit f79d90bd1364b970adb2981b2572e77066431f1e)
2007-10-10r11710: added function iface_same_net()Andrew Tridgell1-0/+10
(This used to be commit 3e36b301947ccd4343bc294da59b13a8a9cfafce)
2007-10-10r11214: Remove scons files (see ↵Jelmer Vernooij1-22/+0
http://lists.samba.org/archive/samba-technical/2005-October/043443.html) (This used to be commit 7fffc5c9178158249be632ac0ca179c13bd1f98f)
2007-10-10r10586: Add MergedObject() builder. Default to Library() ratherJelmer Vernooij1-1/+1
then StaticLibrary() (This used to be commit b53313dc517986c69a4e4cb8fe3885b696f8faa1)
2007-10-10r10509: Some more sconscript fixes. Now getting to link stage for smbclientJelmer Vernooij1-0/+22
(This used to be commit 6df956edbab7ad5e72b2f20e74ab0f0d62528932)
2007-10-10r9063: - don't pollute the global $LIBS variable with -ldlStefan Metzmacher1-0/+42
- -lresolve seems to not being needed any more (it's actually not used, and the build farm seem to happy with it) - move socket and netif configure test to seperate files - don't pollute the global $LIBS variable with -lsocket ... - actually make use of the -lsocket when needed (should fix the solaris build) metze (This used to be commit adebd56be6f62323d56b6666ca0e02f85a33438e)
2007-10-10r8905: don't try to do DNS lookups on interface names with wildcardsAndrew Tridgell1-0/+4
(This used to be commit bbdd446254a0e66af3326e2e66d568eeee0922c0)
2007-10-10r8541: this might take a few tries ...Andrew Tridgell1-1/+1
(This used to be commit cc61a0ba33d5a9d4d0b98736109220c58342358a)
2007-10-10r8540: fixed network interface detection on several hostsAndrew Tridgell2-7/+5
(This used to be commit 777ac8496b400b0ed348995feed83c22c5b344b3)
2007-10-10r8002: favor addresses on our local interfaces in NBT name resolution ifAndrew Tridgell1-0/+13
possible. This is needed because w2k3 will return bogus IPs in its name resolution replies when it has an unplugged network interface. (This used to be commit 2fafc230520fb5bbe9f763de94aaba87b56f5411)
2007-10-10r7909: don't consider not finding a list of network interfaces from the ↵Andrew Tridgell1-1/+0
kernel a fatal error, the individual services that need at least one known interface check for it anyway this should fix provisioning on macosx (This used to be commit 5ad0dc97d01e28dbce8bc9d6793db01809ad09b0)
2007-10-10r5411: make network interface selection a bit sanerAndrew Tridgell1-1/+16
- if we have no configured network interfaces, then don't start nbtd (when I add dynamic interface loading this will change to a delay until a network interface comes up) - choose the best interface by netmask for torture tests that need a specific IP (such as the WINS test). Added iface_best_ip() for that. - if specific interfaces are chosen in smb.conf, then keep that ordering, and default to the first one listed (This used to be commit 4d08c114079ef6d1d10a96195046fe43631aefa2)
2007-10-10r5308: trimmed back a lot of the old macros from smb_macros.hAndrew Tridgell1-2/+3
(This used to be commit bf43c9bdcf9e654d123f6a2b29feb9189ca9e561)
2007-10-10r5294: - added a separate NBT-WINS test for WINS operations (register, ↵Andrew Tridgell1-44/+15
refresh, release and query) - change the iface_n_*() functions to return a "const char *" instead of a "struct ipv4_addr" I think that in general we should move towards "const char *" for all IP addresses, as this makes IPv6 much easier, and is also easier to debug. Andrew, when you get a chance, could you fix some of the auth code to use strings for IPs ? - return a NTSTATUS error on bad name queries and node status instead of using rcode. This makes the calling code simpler. - added low level name release code in libcli/nbt/ - use a real IP in the register and wins nbt torture tests, as w2k3 WINS server silently rejects some operations that don't come from the IP being used (eg. it says "yes" to a release, but does not in fact release the name) (This used to be commit bb1ab11d8e0ea0bd9ae34aebeb565d36fe4b495f)
2007-10-10r5114: the nbtd task can now act as a basic B-node server. It registers itsAndrew Tridgell1-0/+14
names on the network and answers name queries. Lots of details are still missing, but at least this now means you don't need a Samba3 nmbd to use Samba4. missing pieces include: - name registrations should be "shout 3 times, then demand" - no WINS server yet - no master browser code (This used to be commit d7d31fdc6670f026f96b50e51a4de19f0b920e5b)
2007-10-10r5052: minor formatting fixAndrew Tridgell1-4/+3
(This used to be commit 4337901c1b38aaaf6cc09641ad51ff28e591b1f4)
2007-10-10r5037: got rid of all of the TALLOC_DEPRECATED stuff. My apologies for theAndrew Tridgell1-1/+1
large commit. I thought this was worthwhile to get done for consistency. (This used to be commit ec32b22ed5ec224f6324f5e069d15e92e38e15c0)
2007-10-10r4055: fixed more places to use type safe allocation macrosAndrew Tridgell1-1/+1
(This used to be commit eec698254f67365f27b4b7569fa982e22472aca1)
2007-10-10r3578: a couple of include changes that should help with FreeBSDAndrew Tridgell1-0/+1
(This used to be commit d8c4a660a08d7be8b69e4e5458bdcc1cb492506e)
2007-10-10r3548: removed extra net/if.h includeAndrew Tridgell1-1/+0
(This used to be commit 1551f211d983398a4f27eaeebdd4bf05f8beb330)
2007-10-10r3463: separated out some more headers (asn_1.h, messages.h, dlinklist.h and ↵Andrew Tridgell1-0/+1
ioctl.h) (This used to be commit b97e395c814762024336c1cf4d7c25be8da5813a)
2007-10-10r3457: s_addr is a macro on solaris, so we can't use it in structure names. ↵Andrew Tridgell1-15/+15
arrgh. (This used to be commit 7842b23d01c53009259a2461600bd01159cecebf)
2007-10-10r3443: the next stage in the include files re-organisation.Andrew Tridgell3-0/+789
I have created the include/system/ directory, which will contain the wrappers for the system includes for logical subsystems. So far I have created include/system/kerberos.h and include/system/network.h, which contain all the system includes for kerberos code and networking code. These are the included in subsystems that need kerberos or networking respectively. Note that this method avoids the mess of #ifdef HAVE_XXX_H in every C file, instead each C module includes the include/system/XXX.h file for the logical system support it needs, and the details are kept isolated in include/system/ This patch also creates a "struct ipv4_addr" which replaces "struct in_addr" in our code. That avoids every C file needing to import all the system networking headers. (This used to be commit 2e25c71853f8996f73755277e448e7d670810349)