summaryrefslogtreecommitdiffstats
path: root/source3/libsmb/namequery.c
Commit message (Collapse)AuthorAgeFilesLines
* nbt: trim down header dependencies of nbt.idl.Günther Deschner2011-11-031-0/+1
| | | | Guenther
* s3: Make saf_join_key() use tallocVolker Lendecke2011-09-131-12/+20
|
* s3: Make saf_key() use tallocVolker Lendecke2011-09-131-12/+20
|
* s3: Disentangle resolve_name() a bitVolker Lendecke2011-09-131-3/+5
|
* Use tevent_req_oomVolker Lendecke2011-06-201-4/+4
| | | | This fixes a few Coverity errors
* s3: Remove unused name_queriesVolker Lendecke2011-06-191-34/+0
| | | | | Autobuild-User: Volker Lendecke <vlendec@samba.org> Autobuild-Date: Sun Jun 19 15:14:38 CEST 2011 on sn-devel-104
* s3: Fix some type-punned warningsVolker Lendecke2011-06-191-7/+8
|
* s3: Add name_resolve_bcast_send/recvVolker Lendecke2011-06-191-20/+97
|
* s3: Fix a memleak in name_resolve_bcastVolker Lendecke2011-06-191-4/+7
| | | | | Autobuild-User: Volker Lendecke <vlendec@samba.org> Autobuild-Date: Sun Jun 19 12:40:55 CEST 2011 on sn-devel-104
* s3: Use resolve_wins_send/recv in resolve_winsVolker Lendecke2011-06-121-110/+15
| | | | | Autobuild-User: Volker Lendecke <vlendec@samba.org> Autobuild-Date: Sun Jun 12 18:19:41 CEST 2011 on sn-devel-104
* s3: Add resolve_wins_send/recvVolker Lendecke2011-06-121-0/+177
|
* s3: Add query_wins_list_send/recvVolker Lendecke2011-06-121-0/+144
|
* s3: Fix IO_TIMEOUT handling for wins queriesVolker Lendecke2011-06-121-3/+12
|
* s3: Remove "struct ip_service" from resolve_winsVolker Lendecke2011-06-121-9/+13
|
* s3-talloc Change TALLOC_P() to talloc()Andrew Bartlett2011-06-091-1/+1
| | | | | Using the standard macro makes it easier to move code into common, as TALLOC_P isn't standard talloc.
* s3-talloc Change TALLOC_ARRAY() to talloc_array()Andrew Bartlett2011-06-091-3/+3
| | | | | Using the standard macro makes it easier to move code into common, as TALLOC_ARRAY isn't standard talloc.
* s3-talloc Change TALLOC_REALLOC_ARRAY() to talloc_realloc()Andrew Bartlett2011-06-091-1/+1
| | | | | | | Using the standard macro makes it easier to move code into common, as TALLOC_REALLOC_ARRAY isn't standard talloc. Andrew Bartlett
* s3: Remove unused variablesVolker Lendecke2011-06-071-2/+0
| | | | | Autobuild-User: Volker Lendecke <vlendec@samba.org> Autobuild-Date: Tue Jun 7 00:42:51 CEST 2011 on sn-devel-104
* s3: Make name_resolve_bcast do parallel lookups to all interfacesVolker Lendecke2011-06-051-21/+19
|
* s3: Add name_queries_send/recvVolker Lendecke2011-06-051-0/+231
|
* s3: Make&use set_socket_addr_v4Volker Lendecke2011-05-141-12/+14
| | | | | Autobuild-User: Volker Lendecke <vlendec@samba.org> Autobuild-Date: Sat May 14 18:57:57 CEST 2011 on sn-devel-104
* More simple const fixes.Jeremy Allison2011-05-051-11/+11
|
* s3: Filter out duplicates in name_query()Volker Lendecke2011-05-041-2/+18
| | | | | Autobuild-User: Volker Lendecke <vlendec@samba.org> Autobuild-Date: Wed May 4 00:03:47 CEST 2011 on sn-devel-104
* s3: Tune broadcast namequeries for unique namesVolker Lendecke2011-05-031-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
* s3: Make name_resolve_bcast return sockaddr_storageVolker Lendecke2011-04-301-9/+12
| | | | | Autobuild-User: Volker Lendecke <vlendec@samba.org> Autobuild-Date: Sat Apr 30 20:40:46 CEST 2011 on sn-devel-104
* s3-tevent: only include ../lib/util/tevent wrappers where needed.Günther Deschner2011-04-291-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
* s3-libsmb Use 'resolv:hosts file' as a DNS emulation when specified.Andrew Bartlett2011-04-271-0/+27
| | | | | | This allows make test to operate without making real DNS calls. Andrew Bartlett
* s3: Remove unused codeVolker Lendecke2011-04-251-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
* s3: Move setting the name_query timeoutVolker Lendecke2011-04-251-9/+9
| | | | An async caller might want a different timeout behaviour
* s3-messages: make ndr_messaging.h part of messages.h.Günther Deschner2011-03-301-1/+0
| | | | Guenther
* s3-libsmb: put namequery headers to nmblib.hGünther Deschner2011-03-301-0/+1
| | | | | | | We might find a better name for it and merge other namequery related things as well here... Guenther
* s3: Make is_zero_addr take a sockaddr_storageVolker Lendecke2011-02-271-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
* s3: move some stuff out of smb.h to better locations.Günther Deschner2011-02-091-0/+3
| | | | Guenther
* netlogon: move netlogon helpers to ../libcli/netlogon.Günther Deschner2011-01-071-1/+1
| | | | Guenther
* s3: Remove some unused codeVolker Lendecke2011-01-071-26/+0
|
* s3: Make name_query use /tmp/.nmbd/unexpectedVolker Lendecke2011-01-071-215/+264
|
* s3: Make node_status_query use /tmp/.nmbd/unexpectedVolker Lendecke2011-01-071-65/+174
|
* s3: Add nb_trans_send/recvVolker Lendecke2011-01-071-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.
* s3: Add sock_packet_readVolker Lendecke2011-01-071-0/+215
| | | | Read packets from both a socket and from /tmp/.nmbd/unexpected simultaneously
* s3: Fix two uninitialized variablesVolker Lendecke2010-12-301-1/+1
| | | | | Autobuild-User: Volker Lendecke <vlendec@samba.org> Autobuild-Date: Thu Dec 30 12:52:47 CET 2010 on sn-devel-104
* s3: Make name_query return NTSTATUSVolker Lendecke2010-12-281-20/+26
| | | | | | | Also use talloc for the result Autobuild-User: Volker Lendecke <vlendec@samba.org> Autobuild-Date: Tue Dec 28 18:21:05 CET 2010 on sn-devel-104
* s3: Make node_status_query return NTSTATUSVolker Lendecke2010-12-281-20/+31
| | | | | | | Also make the result talloc'ed Autobuild-User: Volker Lendecke <vlendec@samba.org> Autobuild-Date: Tue Dec 28 13:46:59 CET 2010 on sn-devel-104
* s3: Remove an ancient typedefVolker Lendecke2010-12-281-6/+6
|
* s3: Fix some typosVolker Lendecke2010-12-281-2/+3
|
* s3:libsmb/namequery.c: don't leak 'pserver'Stefan Metzmacher2010-12-221-2/+2
| | | | | | | metze Autobuild-User: Stefan Metzmacher <metze@samba.org> Autobuild-Date: Wed Dec 22 09:54:31 CET 2010 on sn-devel-104
* Fix the unexpected.tdb database problem. Change nmbd to store theJeremy Allison2010-11-141-5/+30
| | | | | | | | | | | | | | | | | | | | | transaction id of packets it was requested to send via a client, and only store replies that match these ids. On the client side change clients to always attempt to ask nmbd first for name_query and node_status calls, and then fall back to doing socket calls if we can't talk to nmbd (either nmbd is not running, or we're not root and cannot open the messaging tdb's). Fix readers of unexpected.tdb to delete packets they've successfully read. This should fix a long standing problem of unexpected.tdb growing out of control in noisy NetBIOS envioronments with lots of bradcasts, yet still allow unprivileged client apps to work mostly as well as they already did (nmblookup for example) in an environment when nmbd isn't running. Jeremy. Autobuild-User: Jeremy Allison <jra@samba.org> Autobuild-Date: Sun Nov 14 05:22:45 UTC 2010 on sn-devel-104
* s3: fix order of arguments in nsec_time_diff callBjörn Jacke2010-09-171-2/+2
|
* s3: use nsec_time_diff instead of TspecDiffBjörn Jacke2010-09-161-2/+2
|
* s3: use monotonic clock for time deltas in namequery functionsBjörn Jacke2010-08-311-12/+12
|
* s3-libads: move ads_dns out of main includes.Günther Deschner2010-07-011-0/+1
| | | | Guenther