summaryrefslogtreecommitdiff
path: root/source3/libsmb/namequery.c
AgeCommit message (Collapse)AuthorFilesLines
2012-07-27lib/param: Rename "socket address" to "nbt client socket address" to clarify ↵Andrew Bartlett1-2/+2
role This parameter is only used in our NBT client code and in nmbd as a fallback when we fail to select a better interface from "interfaces" to use directly. Andrew Bartlett Autobuild-User(master): Andrew Bartlett <abartlet@samba.org> Autobuild-Date(master): Fri Jul 27 12:16:25 CEST 2012 on sn-devel-104
2012-07-19s3-param: Make lp_name_resolve_order() return a listAndrew Bartlett1-21/+23
This allows this parameter, one of the few with differing declarations between the loadparm systems, to be brought into common. Andrew Bartlett Pair-Programmed-With: Andrew Tridgell <tridge@samba.org>
2012-05-30Fix bad bugfix for bug #8910 - resolve_ads() code can return zero addresses ↵Ira Cooper1-1/+1
and miss valid DC IP addresses Original code incorrectly used a while() instead of a for() loop. We need to iterate over the entire array here. Autobuild-User: Jeremy Allison <jra@samba.org> Autobuild-Date: Wed May 30 23:29:03 CEST 2012 on sn-devel-104
2012-05-23Move source3/libads/dns.c to lib/addnsSimo Sorce1-1/+1
2012-05-23s3-ads-dns: Break dependency on lp_parmSimo Sorce1-3/+8
In preparation of making this code common to s3 and s4
2012-05-22Added torture test for bug #8910. Test remove_duplicate_addrs2().Jeremy Allison1-1/+1
Autobuild-User: Jeremy Allison <jra@samba.org> Autobuild-Date: Tue May 22 01:31:17 CEST 2012 on sn-devel-104
2012-04-30Fix the loop unrolling inside resolve_ads(). If we don't getJeremy Allison1-34/+73
an IP list don't use interpret_string_addr(), as this only returns one address, use interpret_string_addr_internal() instead. Autobuild-User: Jeremy Allison <jra@samba.org> Autobuild-Date: Mon Apr 30 23:21:16 CEST 2012 on sn-devel-104
2012-04-30Protect all of the name resolution methods from returning null addrs. Ensure ↵Jeremy Allison1-9/+19
all returns go through remove_duplicate_addrs2().
2012-04-30Fix convert_ss2service() to filter out zero addresses.Jeremy Allison1-12/+33
2012-04-30Fix remove_duplicate_addrs2 to do exactly what it says. Previously it could ↵Jeremy Allison1-10/+9
leave zero addresses in the list.
2012-02-26s3: Remove pointless parenthesesVolker Lendecke1-1/+1
Autobuild-User: Volker Lendecke <vl@samba.org> Autobuild-Date: Sun Feb 26 11:10:15 CET 2012 on sn-devel-104
2011-11-03nbt: trim down header dependencies of nbt.idl.Günther Deschner1-0/+1
Guenther
2011-09-13s3: Make saf_join_key() use tallocVolker Lendecke1-12/+20
2011-09-13s3: Make saf_key() use tallocVolker Lendecke1-12/+20
2011-09-13s3: Disentangle resolve_name() a bitVolker Lendecke1-3/+5
2011-06-20Use tevent_req_oomVolker Lendecke1-4/+4
This fixes a few Coverity errors
2011-06-19s3: Remove unused name_queriesVolker Lendecke1-34/+0
Autobuild-User: Volker Lendecke <vlendec@samba.org> Autobuild-Date: Sun Jun 19 15:14:38 CEST 2011 on sn-devel-104
2011-06-19s3: Fix some type-punned warningsVolker Lendecke1-7/+8
2011-06-19s3: Add name_resolve_bcast_send/recvVolker Lendecke1-20/+97
2011-06-19s3: Fix a memleak in name_resolve_bcastVolker Lendecke1-4/+7
Autobuild-User: Volker Lendecke <vlendec@samba.org> Autobuild-Date: Sun Jun 19 12:40:55 CEST 2011 on sn-devel-104
2011-06-12s3: Use resolve_wins_send/recv in resolve_winsVolker Lendecke1-110/+15
Autobuild-User: Volker Lendecke <vlendec@samba.org> Autobuild-Date: Sun Jun 12 18:19:41 CEST 2011 on sn-devel-104
2011-06-12s3: Add resolve_wins_send/recvVolker Lendecke1-0/+177
2011-06-12s3: Add query_wins_list_send/recvVolker Lendecke1-0/+144
2011-06-12s3: Fix IO_TIMEOUT handling for wins queriesVolker Lendecke1-3/+12
2011-06-12s3: Remove "struct ip_service" from resolve_winsVolker Lendecke1-9/+13
2011-06-09s3-talloc Change TALLOC_P() to talloc()Andrew Bartlett1-1/+1
Using the standard macro makes it easier to move code into common, as TALLOC_P isn't standard talloc.
2011-06-09s3-talloc Change TALLOC_ARRAY() to talloc_array()Andrew Bartlett1-3/+3
Using the standard macro makes it easier to move code into common, as TALLOC_ARRAY isn't standard talloc.
2011-06-09s3-talloc Change TALLOC_REALLOC_ARRAY() to talloc_realloc()Andrew Bartlett1-1/+1
Using the standard macro makes it easier to move code into common, as TALLOC_REALLOC_ARRAY isn't standard talloc. Andrew Bartlett
2011-06-07s3: Remove unused variablesVolker Lendecke1-2/+0
Autobuild-User: Volker Lendecke <vlendec@samba.org> Autobuild-Date: Tue Jun 7 00:42:51 CEST 2011 on sn-devel-104
2011-06-05s3: Make name_resolve_bcast do parallel lookups to all interfacesVolker Lendecke1-21/+19
2011-06-05s3: Add name_queries_send/recvVolker Lendecke1-0/+231
2011-05-14s3: Make&use set_socket_addr_v4Volker Lendecke1-12/+14
Autobuild-User: Volker Lendecke <vlendec@samba.org> Autobuild-Date: Sat May 14 18:57:57 CEST 2011 on sn-devel-104
2011-05-05More simple const fixes.Jeremy Allison1-11/+11
2011-05-04s3: Filter out duplicates in name_query()Volker Lendecke1-2/+18
Autobuild-User: Volker Lendecke <vlendec@samba.org> Autobuild-Date: Wed May 4 00:03:47 CEST 2011 on sn-devel-104
2011-05-03s3: Tune broadcast namequeries for unique namesVolker Lendecke1-3/+9
If we get a unique name via a broadcast query, there's no point in waiting the full timeout. A unique name is just what its name says: unique. No point in waiting longer. Autobuild-User: Volker Lendecke <vlendec@samba.org> Autobuild-Date: Tue May 3 00:57:24 CEST 2011 on sn-devel-104
2011-04-30s3: Make name_resolve_bcast return sockaddr_storageVolker Lendecke1-9/+12
Autobuild-User: Volker Lendecke <vlendec@samba.org> Autobuild-Date: Sat Apr 30 20:40:46 CEST 2011 on sn-devel-104
2011-04-29s3-tevent: only include ../lib/util/tevent wrappers where needed.Günther Deschner1-0/+1
Guenther Autobuild-User: Günther Deschner <gd@samba.org> Autobuild-Date: Fri Apr 29 14:00:30 CEST 2011 on sn-devel-104
2011-04-27s3-libsmb Use 'resolv:hosts file' as a DNS emulation when specified.Andrew Bartlett1-0/+27
This allows make test to operate without making real DNS calls. Andrew Bartlett
2011-04-25s3: Remove unused codeVolker Lendecke1-6/+0
This is done in name_query_send these days Autobuild-User: Volker Lendecke <vlendec@samba.org> Autobuild-Date: Mon Apr 25 19:24:58 CEST 2011 on sn-devel-104
2011-04-25s3: Move setting the name_query timeoutVolker Lendecke1-9/+9
An async caller might want a different timeout behaviour
2011-03-30s3-messages: make ndr_messaging.h part of messages.h.Günther Deschner1-1/+0
Guenther
2011-03-30s3-libsmb: put namequery headers to nmblib.hGünther Deschner1-0/+1
We might find a better name for it and merge other namequery related things as well here... Guenther
2011-02-27s3: Make is_zero_addr take a sockaddr_storageVolker Lendecke1-7/+7
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
2011-02-09s3: move some stuff out of smb.h to better locations.Günther Deschner1-0/+3
Guenther
2011-01-07netlogon: move netlogon helpers to ../libcli/netlogon.Günther Deschner1-1/+1
Guenther
2011-01-07s3: Remove some unused codeVolker Lendecke1-26/+0
2011-01-07s3: Make name_query use /tmp/.nmbd/unexpectedVolker Lendecke1-215/+264
2011-01-07s3: Make node_status_query use /tmp/.nmbd/unexpectedVolker Lendecke1-65/+174
2011-01-07s3: Add nb_trans_send/recvVolker Lendecke1-0/+197
This does an async port 137 transaction: It connects to /tmp/.nmbd/unexpected, sends out the query and then waits for a reply on both the socket as well as data from /tmp/.nmbd/unexpected. Every packet is passed through a validator. If that returns true, the packet received is finally accepted.
2011-01-07s3: Add sock_packet_readVolker Lendecke1-0/+215
Read packets from both a socket and from /tmp/.nmbd/unexpected simultaneously