summaryrefslogtreecommitdiff
path: root/source4/torture/nbt/wins.c
AgeCommit message (Collapse)AuthorFilesLines
2010-07-16s4-loadparm: 2nd half of lp_ to lpcfg_ conversionAndrew Tridgell1-12/+12
this converts all callers that use the Samba4 loadparm lp_ calling convention to use the lpcfg_ prefix. Signed-off-by: Andrew Bartlett <abartlet@samba.org>
2010-02-01s4:NBT-WINS: test large scopesStefan Metzmacher1-0/+37
metze
2010-02-01s4:NBT-WINS: pass the expected rcode of the name registration to the test codeStefan Metzmacher1-18/+39
metze
2009-12-01s4:torture/nbt/wins - Add more castsMatthias Dieter Wallnöfer1-6/+12
2009-06-18Fix build with system LDB.Jelmer Vernooij1-1/+1
2009-05-14s4:torture Use str_list_make_single where appropriateAndrew Bartlett1-10/+10
2009-01-19NBT-WINS: test if the server ignores resent packetsStefan Metzmacher1-0/+54
metze (from samba4wins tree 24eb7577414c8584b97f43c850d738d3dbb30777)
2009-01-19NBT-WINS: we don't need the slow low port tests for every nameStefan Metzmacher1-18/+19
metze (from samba4wins tree 7862deca8555f960a5ef65e6315ce94af5023a2a)
2009-01-19NBT-WINS: if we're bound to port 137 trigger WACK reponses with timeoutsStefan Metzmacher1-2/+107
metze (from samba4wins tree de7225658493006c19d139ac77ac1b1ffab01d25)
2009-01-19NBT-WINS: try to bind to port 137 in the NBT-WINS testStefan Metzmacher1-3/+15
metze (from samba4wins tree 5e101475d5ed62060c991ea71c943e76b862aeef)
2009-01-19NBT-WINS: initialize .dest_port explicit (we should fill the whole struct ↵Stefan Metzmacher1-0/+1
each time) This makes the code more clear. metze
2008-10-12Use common strlist implementation in Samba 3 and Samba 4.Jelmer Vernooij1-4/+4
2008-06-05Add convenience function for creating nbt sockets in torture.Jelmer Vernooij1-1/+1
(This used to be commit 1e6bfb1aa7eba1b92ee4bfb318ba843752a993a9)
2008-04-21Remove more event_context_init() uses from function calls within deep down ↵Simo Sorce1-1/+1
the code. Make sure we pass around the event_context where we need it instead. All test but a few python ones fail. Jelmer promised to fix them. (This used to be commit 3045d391626fba169aa26be52174883e18d323e9)
2008-02-21Remove yet more uses of global_loadparm.Jelmer Vernooij1-1/+1
(This used to be commit e01c1e87c0fe9709df7eb5b863f7ce85564174cd)
2007-12-21r26409: Pass smb ports along.Jelmer Vernooij1-0/+1
(This used to be commit 2833f320de1f1fd39c710ad0a61c3fa1bb1df31f)
2007-12-21r26408: Remove use of global_loadparm.Jelmer Vernooij1-0/+2
(This used to be commit f933b4362124bfdd25544b4e27992d9ca4405848)
2007-12-21r26402: Require a talloc context in libnetif.Jelmer Vernooij1-1/+1
(This used to be commit a35e51871bbf1ab33fc316fa59e597b722769c50)
2007-12-21r26401: Don't cache interfaces context in libnetif.Jelmer Vernooij1-1/+6
(This used to be commit 9f975417cc66bfd4589da38bfd23731dbe0e6153)
2007-12-21r26325: Remove use of global_loadparm in netif.Jelmer Vernooij1-1/+1
(This used to be commit e452cb28594f23add7c00247ed39e8323aea78a6)
2007-12-21r26309: Move specification of port higher up the all stack.Jelmer Vernooij1-0/+2
(This used to be commit 7de55cde7c7fe0141c05c8a38248667ebf3a9033)
2007-10-10r25554: Convert last instances of BOOL, True and False to the standard types.Jelmer Vernooij1-4/+4
(This used to be commit 566aa14139510788548a874e9213d91317f83ca9)
2007-10-10r25004: Avoid talloc_autofree_context() when possible.Jelmer Vernooij1-3/+2
(This used to be commit 79669d28a346c9ae4abc7308070b25e07fe57433)
2007-10-10r23792: convert Samba4 to GPLv3Andrew Tridgell1-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)
2007-10-10r19339: Merge my 4.0-unittest branch. This adds an API for more fine-grainedJelmer Vernooij1-215/+115
output in the testsuite rather than just True or False for a set of tests. The aim is to use this for: * known failure lists (run all tests and detect tests that started working or started failing). This would allow us to get rid of the RPC-SAMBA3-* tests * nicer torture output * simplification of the testsuite system * compatibility with other unit testing systems * easier usage of smbtorture (being able to run one test and automatically set up the environment for that) This is still a work-in-progress; expect more updates over the next couple of days. (This used to be commit 0eb6097305776325c75081356309115f445a7218)
2007-10-10r17586: merge lib/netif into lib/socket and use -lnsl -lsocket on theStefan Metzmacher1-1/+1
configure check for the interfaces. should fix the build on some old sun boxes metze (This used to be commit f20e251bfd9f1eb7ce5c00739631b1625a2aa467)
2007-10-10r14720: Add torture_context argument to all torture testsJelmer Vernooij1-1/+2
(This used to be commit 3c7a5ce29108dd82210dc3e1f00414f545949e1d)
2007-10-10r14464: Don't include ndr_BASENAME.h files unless strictly required, insteadJelmer Vernooij1-0/+1
try to include just the BASENAME.h files (containing only structs) (This used to be commit 3dd477ca5147f28a962b8437e2611a8222d706bd)
2007-10-10r13924: Split more prototypes out of include/proto.h + initial work on headerJelmer Vernooij1-0/+3
file dependencies (This used to be commit 122835876748a3eaf5e8d31ad1abddab9acb8781)
2007-10-10r12804: This patch reworks the Samba4 sockets layer to use a socket_addressAndrew Bartlett1-1/+14
structure that is more generic than just 'IP/port'. It now passes make test, and has been reviewed and updated by metze. (Thankyou *very* much). This passes 'make test' as well as kerberos use (not currently in the testsuite). The original purpose of this patch was to have Samba able to pass a socket address stucture from the BSD layer into the kerberos routines and back again. It also removes nbt_peer_addr, which was being used for a similar purpose. It is a large change, but worthwhile I feel. Andrew Bartlett (This used to be commit 88198c4881d8620a37086f80e4da5a5b71c5bbb2)
2007-10-10r12639: - do some tests with 0x20 0x1B namesStefan Metzmacher1-4/+16
- do some tests with 0xBF and 0xBE, this shows that the '+' padding should be done by the client metze (This used to be commit 5a257ba9811b247a0df2b44c99df00f59dacc1e0)
2007-10-10r12608: Remove some unused #include lines.Jelmer Vernooij1-2/+0
(This used to be commit 70e7449318aa0e9d2639c76730a7d1683b2f4981)
2007-10-10r12413: do some testing with 0x1E namesStefan Metzmacher1-2/+6
metze (This used to be commit b96eadb890a29cfbcff43ede390ef842e16827ad)
2007-10-10r9792: Rename StrCaseCmp -> strcasecmp_m. All these years I was thinkingJelmer Vernooij1-1/+1
StrCaseCmp was sys_strcasecmp, while it is in fact strcasecmp_m! (This used to be commit 200a8f6652cb2de7a8037a7a4c2a204b50aee2b1)
2007-10-10r9702: r9680@blu: tridge | 2005-08-27 18:45:08 +1000Andrew Tridgell1-1/+1
- fixed ncacn_ip_tcp to use the generic async name resolution methods, so NBT names now work (as requested several times by abartlet!) - changed resolve_name() to take an event_context, so it doesn't cause the whole process to block - cleaned up the talloc_find_parent_bytype() calls to go via a cleaner event_context_find() call (This used to be commit b3d491b210a8b889a25efcb273e70fefbd01b7f7)
2007-10-10r6933: Add a couple of helper functions for creating nbt names.Tim Potter1-3/+1
(This used to be commit b896daf11c3efb1b3ca939575da9dab82b395777)
2007-10-10r5411: make network interface selection a bit sanerAndrew Tridgell1-1/+1
- 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-10r5408: - added testing for the behaviour of the special 0x1c nameAndrew Tridgell1-3/+10
- added WINS server support for the 0x1c name (This used to be commit 1558a545285ae0432c70e0a3e2b132a5132e7b3b)
2007-10-10r5397: added testing and server support for the special handling required ↵Andrew Tridgell1-1/+14
for the 0x1d local master browser name in WINS (This used to be commit 2650b43ca903fb478d2943fa9bbdba8b2bf74966)
2007-10-10r5386: added testing of registration of group namesAndrew Tridgell1-24/+54
(This used to be commit 8afe4bd59916f9cc6b8eacd4668f93eb3b736839)
2007-10-10r5352: added a function nbt_name_string() that formats a nbt_name structureAndrew Tridgell1-5/+2
as a human readable string. The format is designed to be able to be used as the DN for the WINS database as well, while coping with arbitrary bytes in the name (except nul bytes) (This used to be commit aac3090e3504ba07124a9d480322a98efb97175e)
2007-10-10r5333: weird, w2k3 always sends a positive name release response, even for ↵Andrew Tridgell1-0/+22
names that have never been registered. I wonder if there is some reason? (This used to be commit dbef4fd5c3ae06e22fa6120a57edc0d2988a49a1)
2007-10-10r5328: - allow case sensitive nbt name lookupsAndrew Tridgell1-0/+40
- added --case-sensitive option to nmblookup - added case sensitivity tests to the NBT-WINS test (This used to be commit 80a95d5688e055b36727e5c043cb36322d719763)
2007-10-10r5325: - expanded the NBT-WINS test to include scopesAndrew Tridgell1-21/+58
- fixed the bugs that the new test found (This used to be commit 6d775f12168d51ce92a3f7e17f4bf06357d41a06)
2007-10-10r5304: removed lib/socket/socket.h from includes.hAndrew Tridgell1-0/+1
(This used to be commit b902ea546d2d1327b23f40ddaeeaa8e7e3662454)
2007-10-10r5294: - added a separate NBT-WINS test for WINS operations (register, ↵Andrew Tridgell1-0/+219
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)