26 years agoadded Printing.txt and Tracing.txt
Andrew Tridgell [Fri, 16 Aug 1996 07:37:54 +0000 (07:37 +0000)]
added Printing.txt and Tracing.txt
(This used to be commit 7b925230fc39e3286470e40f5467cbb524f335c3)

26 years agoJHT ==> Added a GOTCHAS.txt file 16/8/96
Samba Release Account [Fri, 16 Aug 1996 04:47:56 +0000 (04:47 +0000)]
JHT ==> Added a GOTCHAS.txt file 16/8/96
Re: RedHat Rembrandt Beta 2 Installation Hint.
(This used to be commit 138410633ba7642e7376a5e447a42fe324edaf09)

26 years agochange email address
Andrew Tridgell [Thu, 15 Aug 1996 15:12:16 +0000 (15:12 +0000)]
change email address
(This used to be commit 28d797ac7dcbdabd382a5455fa1321831098df8c)

26 years ago- added FAST_SHARE_MODES code
Andrew Tridgell [Thu, 15 Aug 1996 15:11:34 +0000 (15:11 +0000)]
- added FAST_SHARE_MODES code
- added some named pipe code from Jim
(This used to be commit c94866e9e44ea1eb72da06bc65ef1c032ae8e0c9)

26 years agoadded notes on the new FAST_SHARE_MODES code
Andrew Tridgell [Thu, 15 Aug 1996 15:09:39 +0000 (15:09 +0000)]
added notes on the new FAST_SHARE_MODES code
(This used to be commit e37a624cf93885a5b0e77d5ab41d4a5a0bffe668)

26 years agochanged "unsigned long" to "uint32" in several places (for IP
Andrew Tridgell [Wed, 14 Aug 1996 15:02:28 +0000 (15:02 +0000)]
changed "unsigned long" to "uint32" in several places (for IP
addresses) to keep 64 bit machines happy.
(This used to be commit b4aaec504ae66dc6a0f05d12529100cb62d47afd)

26 years agofixed an obvious bug that meant that DosPrintQEnum could never
Andrew Tridgell [Wed, 14 Aug 1996 15:01:09 +0000 (15:01 +0000)]
fixed an obvious bug that meant that DosPrintQEnum could never
work. Now we'll see if it works after this fix ...
(This used to be commit 9735d7e8e2978ce17a001d7d5766faf382ff5788)

26 years agodisabled SETFS (which was only enabled for Linux) until we resolve a
Andrew Tridgell [Wed, 14 Aug 1996 15:00:00 +0000 (15:00 +0000)]
disabled SETFS (which was only enabled for Linux) until we resolve a
couple of bug reports that may be caused by it.

(This used to be commit 424814bed710a96d87786763b851a11ea1103026)

26 years agopreparing for release of 1.9.16alpha17
Samba Release Account [Tue, 13 Aug 1996 12:36:58 +0000 (12:36 +0000)]
preparing for release of 1.9.16alpha17
(This used to be commit 16f10b333da0956cc501f77777957753d7e156b2)

26 years agominor cleanups
Andrew Tridgell [Tue, 13 Aug 1996 12:35:28 +0000 (12:35 +0000)]
minor cleanups
(This used to be commit f1dc2b93179ace36407bbb25c2c34c78087714bd)

26 years agoadded the validchars package written by tino@augsburg.net. This
Andrew Tridgell [Tue, 13 Aug 1996 12:34:10 +0000 (12:34 +0000)]
added the validchars package written by tino@augsburg.net. This
package automates the building of a "valid chars =" line for any
client DOS based client. This makes setting things up right for
european languages much easier.
(This used to be commit d0ce245acca9ae5797ef9f5c770d1fcd2d7b3373)

26 years agodoc updates
Andrew Tridgell [Tue, 13 Aug 1996 12:32:22 +0000 (12:32 +0000)]
doc updates
(This used to be commit 94aa86a1e9aa5f6d6485884270ce62fc007cb812)

26 years ago- add the 0x1c name for all interfaces if we are a logon server
Andrew Tridgell [Tue, 13 Aug 1996 11:13:11 +0000 (11:13 +0000)]
- add the 0x1c name for all interfaces if we are a logon server
(This used to be commit c66ad071b7ff2dcdd7734b72670d181bb3ac6de7)

26 years agodon't allow newlines in printer status messages
Andrew Tridgell [Tue, 13 Aug 1996 09:00:11 +0000 (09:00 +0000)]
don't allow newlines in printer status messages
(This used to be commit d84f5402fded4ffb9c2735fecaa47ec3d2c636c0)

26 years ago- sequent-ptx support from bressler@iftccu.ca.boeing.com (Rick
Andrew Tridgell [Tue, 13 Aug 1996 08:57:55 +0000 (08:57 +0000)]
- sequent-ptx support from bressler@iftccu.ca.boeing.com (Rick
- machten support from Trevor Strohman (trev@figment.tenon.com)

- added qinfo command to client as part of drag-and-drop printer
support for win95 from David Chappell <chappell@mouse.cc.trincoll.edu>
He also added the "printer driver" option

- use sigblock() on more systems and use sigsetmask(0) instead of
sigunblock() as its more portable. This beats a problem with zombies
on heavilily loaded systems.

- added internals.doc written by David Chappell into the source tree

- get rid of PRINT_COMMAND options from local.h as they are no longer

- new kanji code from Fujita

- don't set the recursion_available flag on queries in nmbd

- fix a potential bug with pointer subtraction in printing.c

- got rid of error_count code as the real fix (the EOF problem) is now
(This used to be commit aa6f8b04d125b5bc00f267abf72b800228aabf7d)

26 years ago- added docs on new "printer driver" option
Andrew Tridgell [Tue, 13 Aug 1996 08:41:59 +0000 (08:41 +0000)]
- added docs on new "printer driver" option

- cleaned up a couple of minor things
(This used to be commit fe0f5d44e20599679d392eeda34a58769378fbbf)

26 years agonew docs for japanses extensions from Fujita
Andrew Tridgell [Tue, 13 Aug 1996 08:40:24 +0000 (08:40 +0000)]
new docs for japanses extensions from Fujita
(This used to be commit f8740429a5d524e672318cf23c18c0dfc0388d4f)

26 years agominor fix to write_data() for EOF handling
Andrew Tridgell [Mon, 12 Aug 1996 12:15:03 +0000 (12:15 +0000)]
minor fix to write_data() for EOF handling
(This used to be commit 3a7c2d9dfaf01e616adbc896dfc853a45c824170)

26 years agoapplying login updates from jim@oxfordcc.co.uk, sent in by
Samba Release Account [Fri, 9 Aug 1996 18:05:34 +0000 (18:05 +0000)]
applying login updates from jim@oxfordcc.co.uk, sent in by
lewis2@server.uwindsor.ca. rest of this patch to follow.

bug in interface.c - uninitialised pointer.
nmbd has 0x20 as well as 0x0 NetBIOS name when lmhosts entry is added.

(This used to be commit 2b9475cc5fda4b272f19c4f168d3f00363c8042b)

26 years agopreparing for release of 1.9.16alpha16
Samba Release Account [Tue, 6 Aug 1996 09:52:41 +0000 (09:52 +0000)]
preparing for release of 1.9.16alpha16
(This used to be commit 6567bac5d13f32729fe51eba1e904268c6ee00be)

26 years agopreparing for release of 1.9.16alpha14
Samba Release Account [Mon, 5 Aug 1996 18:23:10 +0000 (18:23 +0000)]
preparing for release of 1.9.16alpha14
(This used to be commit 32f495cf2261925ca3f0971eca6a6798584af653)

26 years agoupdated comments in announce_server() to indicate that future work needs
Samba Release Account [Mon, 5 Aug 1996 18:19:41 +0000 (18:19 +0000)]
updated comments in announce_server() to indicate that future work needs
to be done on this function when doing an announce host to a remote
domain master browser when samba is a WINS server.

(This used to be commit 12c50bac4eab79bc2688bc849a8d781f4c12b6ea)

26 years agoupdating documentation to reflect code a little bit.
Samba Release Account [Mon, 5 Aug 1996 18:18:58 +0000 (18:18 +0000)]
updating documentation to reflect code a little bit.

(This used to be commit 2193c1ee4eff33c32367ff27c817a6b78af51409)

26 years agojht spotted error in Domain announcements: the comment was being displayed
Samba Release Account [Mon, 5 Aug 1996 17:45:47 +0000 (17:45 +0000)]
jht spotted error in Domain announcements: the comment was being displayed
as the NetBIOS name of the master browser for samba's workgroup, instead
of samba's NetBIOS name.
(This used to be commit b5fb0293b02e8fdc6ae07be52666ebe55df1bd4e)

26 years agoTiny bug in doco reported to samba-bugs
Samba Release Account [Sat, 3 Aug 1996 14:56:43 +0000 (14:56 +0000)]
Tiny bug in doco reported to samba-bugs

(This used to be commit f46305d76e86546731da1e81c662c55f0798a502)

26 years agopreparing for release of 1.9.16alpha15
Samba Release Account [Sat, 3 Aug 1996 00:25:05 +0000 (00:25 +0000)]
preparing for release of 1.9.16alpha15
(This used to be commit 043898aa851bfda3db23f558719a7aab2df478de)

26 years agoupdated doc files to include a GPL header, with revision history in it.
Samba Release Account [Thu, 1 Aug 1996 19:25:01 +0000 (19:25 +0000)]
updated doc files to include a GPL header, with revision history in it.
added created and tridge comments on first revision first kick-off in
revision history.

(This used to be commit 70d3d3bbf0bca2d7093517c79fd4c6db3f004799)

26 years agolocal_only NetServerEnum syncs can now be issued.
Samba Release Account [Thu, 1 Aug 1996 17:49:40 +0000 (17:49 +0000)]
local_only NetServerEnum syncs can now be issued.

bug spotted in nameservresp.c - arguments to test subnet the response
is received on (same_net()) were the wrong way round (ccm@shentel.net)

samba was adding WORKGROUP(1e) as a unique not a group name: fixed this

bug in reply_name_status() and reply_name_query(): WINS entries weren't
being looked up.

name status reply adds local SELF entries to WINS SELF entries: some
SELF entries are only added locally, while others are only added via
WINS. name status needs to have both, combined.

a sync will only occur when an ANN_LocalMasterAnnouncement is received, NOT
an ANN_HostAnnouncement or an ANN_DomainAnnouncement.

when samba is a member of a workgroup, it looks for (using a wins server)
and announces to its domain master. NAME_QUERY_ANNOUNCE_HOST - yet another
'state' - has been created to do this: do the name query on the wins server
and send the announce host to the answer to this query.

jeremy @ vantive wrote the original code to do this, which used the
name_query() function.  i'm trying to avoid name_query: it times out and
generally messes things up, but using queue_netbios_packet() and
queue_netbios_pkt_wins() is... not intuitive?

lkcl with help from jra
(This used to be commit 6e932e4bae8b46e7ff4a55a75484bad78308336a)

26 years agopreparing for release of 1.9.16alpha13
Samba Release Account [Tue, 30 Jul 1996 15:48:22 +0000 (15:48 +0000)]
preparing for release of 1.9.16alpha13
(This used to be commit 801fe1066e7bae8b49e7396b04efe1d7135bbb05)

26 years agofix a bug that we've had for a long time where we don't handle EOF
Andrew Tridgell [Tue, 30 Jul 1996 15:47:30 +0000 (15:47 +0000)]
fix a bug that we've had for a long time where we don't handle EOF
properly from clients, and end up looping like mad.

At least I _hope_ this is fixed.
(This used to be commit a7c7d7afe2ef81f4a74584ce9b71e54442f7e484)

26 years agoLots of updating.
Samba Release Account [Sat, 27 Jul 1996 14:18:55 +0000 (14:18 +0000)]
Lots of updating.

(This used to be commit 66148db2f7e421b84986abddd21354dcf821d9d6)

26 years agominor cleanups
Andrew Tridgell [Wed, 24 Jul 1996 06:14:51 +0000 (06:14 +0000)]
minor cleanups
(This used to be commit 7c8fd43b4e78f439406c3bb4478adf99ae17172f)

26 years agothe client now loads the smb.conf config file so it can get the
Andrew Tridgell [Wed, 24 Jul 1996 06:14:23 +0000 (06:14 +0000)]
the client now loads the smb.conf config file so it can get the
interfaces info, and the workgroup right.
(This used to be commit fabd4230f17726743a0fde0a37ce3c09a3dec8a3)

26 years agoSome examples for printer accounting that I use with samba. lp-acct is
Samba Release Account [Tue, 23 Jul 1996 03:30:56 +0000 (03:30 +0000)]
Some examples for printer accounting that I use with samba.  lp-acct is
an example for a local printer off a samba server, hp5-redir is for a
remote printer.  acct-sum, does the stats from acct-all.  There is an
example printcap entry for the redirection of the printer.  Lots more
to come!

(This used to be commit 14bae3a0bd380c524409d36c75c13d4a6daa6302)

26 years agoremoved the remote interfaces stuff.
Andrew Tridgell [Mon, 22 Jul 1996 14:32:38 +0000 (14:32 +0000)]
removed the remote interfaces stuff.
(This used to be commit 51e5a1a546adf6ba36c7e4c3298c651cff7e15b9)

26 years agoadded lots of comments to the docs that Luke wrote on the internals of
Andrew Tridgell [Mon, 22 Jul 1996 14:30:58 +0000 (14:30 +0000)]
added lots of comments to the docs that Luke wrote on the internals of
nmbd. I haven't been through all of them yet, but I'm getting there
(This used to be commit 9e411f2c9044104df60022da316379bd27e98b56)

26 years agoadded a bunch of comments to Lukes docs.
Andrew Tridgell [Mon, 22 Jul 1996 12:06:27 +0000 (12:06 +0000)]
added a bunch of comments to Lukes docs.
(This used to be commit e6282da558995c7e875b89c43e91d027c45caa40)

26 years agominor debug output fix
Andrew Tridgell [Mon, 22 Jul 1996 12:04:56 +0000 (12:04 +0000)]
minor debug output fix
(This used to be commit c1415349acd7790eba236f26192a5098b5e26590)

26 years agofix up problems with "smbclient -L". It now uses a generic
Andrew Tridgell [Mon, 22 Jul 1996 12:00:39 +0000 (12:00 +0000)]
fix up problems with "smbclient -L". It now uses a generic
NetServerEnum with no workgroup attached if the workgroup is
"WORKGROUP" (the default in the Makefile) and uses the specific
NetServerEnum (with workgroup attached) otherwise.
(This used to be commit 6fa3468c9ba50a4de39e3bdc1c976f363fb6a412)

26 years agoSorry for last empty message. Updated file to say that domain logons
Samba Release Account [Mon, 22 Jul 1996 02:42:05 +0000 (02:42 +0000)]
Sorry for last empty message.  Updated file to say that domain logons
and scripts are now possible and to see DOMAIN.txt for more info.
(This used to be commit fd6c3dfffdb204ef75c1f235174da8e65b68f472)

26 years agoCVS:
Samba Release Account [Mon, 22 Jul 1996 02:35:41 +0000 (02:35 +0000)]
(This used to be commit 87cf3702c6ea82763d51ab729bf47646e294b1e6)

26 years agopreparing for release of 1.9.16alpha12
Samba Release Account [Fri, 19 Jul 1996 09:34:54 +0000 (09:34 +0000)]
preparing for release of 1.9.16alpha12
(This used to be commit eae670a7ca9e233f778c84323af861a47eec6ad7)

26 years agoNeXT needs #define pid_t int in includes.h
Samba Release Account [Thu, 18 Jul 1996 17:09:22 +0000 (17:09 +0000)]
NeXT needs #define pid_t int in includes.h

namedbname.c:find_name_search() needed search capability on both local
subnet records and WINS records. it used to return NULL if the name
was not found in the local subnet records even if you asked it to search
the WINS name records as well.
(This used to be commit 96c2efded884ce4390c5da68afaccca9acc17558)

26 years agopreparing for release of 1.9.16alpha11
Samba Release Account [Thu, 18 Jul 1996 10:54:15 +0000 (10:54 +0000)]
preparing for release of 1.9.16alpha11
(This used to be commit b9d7b458b901ffb5ccf62c0e5bf461090ed6e0dd)

26 years agominor cleanups ready for another release
Andrew Tridgell [Thu, 18 Jul 1996 10:20:51 +0000 (10:20 +0000)]
minor cleanups ready for another release
(This used to be commit 153d324c7be345ae87f99e62123e9a7dbaf74aee)

26 years agoremoved some debug stuff from luke
Andrew Tridgell [Thu, 18 Jul 1996 10:09:01 +0000 (10:09 +0000)]
removed some debug stuff from luke
(This used to be commit 1fd1d7c27c4be1eba0833c787d40f1217e63127d)

26 years agolots of changes to nmbd
Samba Release Account [Wed, 17 Jul 1996 18:33:36 +0000 (18:33 +0000)]
lots of changes to nmbd

(This used to be commit 45d3b2644733333c657c48a69719fec72881f7df)

26 years agoModified demo smb.conf to not have /tmp writeable by everyone by default.
Samba Release Account [Thu, 11 Jul 1996 13:56:08 +0000 (13:56 +0000)]
Modified demo smb.conf to not have /tmp writeable by everyone by default.
According to server-linux some people seem to be uncommenting the example
[tmp] without thinking what it does  :-)

(This used to be commit c290c229f9cef7f8bea0a77531ef7b3501323e9c)

26 years agoupdated docs to match code mods from last two or three updates. done
Samba Release Account [Wed, 10 Jul 1996 18:48:49 +0000 (18:48 +0000)]
updated docs to match code mods from last two or three updates. done
some more commenting of code to match docs.

sorted some bugs.

ipc BOOL domains was uninitialised.

(This used to be commit cb43ce7bc08fa43a6ce49e0937f13afec5dce67b)

26 years agomissed nmbd.c in previous update.
Samba Release Account [Tue, 9 Jul 1996 18:11:47 +0000 (18:11 +0000)]
missed nmbd.c in previous update.
did a make proto

(This used to be commit 4ccc84989efc0875dfec95d38be4a8fe746c8795)

26 years agosorted out various timer delay bugs: nameannounce.c nameserv.c
Samba Release Account [Tue, 9 Jul 1996 18:01:46 +0000 (18:01 +0000)]
sorted out various timer delay bugs: nameannounce.c nameserv.c

namedbname.c:search_for_name() wasn't looking for 0x1b as well as
0x0 and 0x20 name types.

reduced number of retransmissions of packets from 4 to 3 times.

added code that ensures remote lmhosts entries don't get deleted when
a master browser cannot be found on a remote subnet. stopped forcing
an election on remote subnets if a master browser cannot be found.

stopped browse list and wins list from being written out too frequently.

only add samba's names to local interfaces.

add 0x1c name if we are a domain logon machine (needs more exploration).

why bother reloading services when receiving a SIGTERM?

sort out add_my_name_entry() and remove_name_entry() to deal with
broadcast, samba as a WINS and samba using a WINS. properly.

added extra debug information to help with expected response queue code.
updated debug comments in become_master().

altered dump_names() DEBUG format. it looks prettier.
altered wins.dat format to match DEBUG format.

(This used to be commit 429f1f975e2936f2e220b656c51c211d48d47047)

26 years agoadded the recently shuffled and updated source files missed in the
Samba Release Account [Sun, 7 Jul 1996 13:29:56 +0000 (13:29 +0000)]
added the recently shuffled and updated source files missed in the
previous commit (see previous log message for details)

fixed bug in nameservreply.c: wrong macro in use (RSSVAL not IVAL!).

did another make proto

(This used to be commit d78b319062144d14a54408fce77ccc313ad58ee3)

26 years agotidied up: code shuffling and documentation.
Samba Release Account [Sun, 7 Jul 1996 12:36:18 +0000 (12:36 +0000)]
tidied up: code shuffling and documentation.
created namedb*.c nameservresp.c nameservreply.c and namepacket.c
added modules to Makefile, downloading dan's current version first :-)
shuffled docs to match source
created more docs

fixed bug in announce_backup() discovered when going nameannounce.doc:
backup list requests to the master browser should be used when samba is
not a master browser; backup list requests to the primary domain
controller should be used when samba is not a primary domain controller.

fixed bug in sync_server: it would never send MasterAnnounce packets.

removed the code that ignored special browser names: these should only
be ignored (except 0x1b names) when broadcasted name queries are sent,
not when directed registration or directed queries are sent samba as a
WINS server. (note: exactly what's going on is still uncertain).

renamed NAME_QUERY_MST_SRV_CHK  to NAME_QUERY_PDC_SRV_CHK  (more accurate).

added secured WINS name registration: a new 'state' NAME_REGISTER_CHALLENGE;
functions send_name_response(), response_name_query_register(); added
sending of WAIT ACKNOWLEDGEMENT packet; added a reply_to_ip field to
the response record structure so that after the name query challenge,
you know who to inform of the outcome of that challenge.

note: these are all currently untested modifications (yikes!)

(This used to be commit b50ff657ddc29b81b4aa02a597e5affab197e4f2)

26 years agoAdded uninstallation from Makefile, either in parts or total uninstall
Samba Release Account [Fri, 5 Jul 1996 03:53:32 +0000 (03:53 +0000)]
Added uninstallation from Makefile, either in parts or total uninstall

(This used to be commit b6343dd09cdbc52677975405c2a85595ad152e8c)

26 years agoChanged install scripts so they don't have hardcoded values
Samba Release Account [Fri, 5 Jul 1996 03:51:27 +0000 (03:51 +0000)]
Changed install scripts so they don't have hardcoded values

(This used to be commit 2eccc5eea289fa4b6af120d0bc92d568ca925482)

26 years agonamebrowse.c was using variable work uninitialised.
Samba Release Account [Thu, 4 Jul 1996 19:41:16 +0000 (19:41 +0000)]
namebrowse.c was using variable work uninitialised.
remkproto'd proto.h

(This used to be commit 166d70eba30a4b2773620f7cd9f0b84307b25472)

26 years agomodified become_master() to a state-based system. becoming a master
Samba Release Account [Thu, 4 Jul 1996 19:19:26 +0000 (19:19 +0000)]
modified become_master() to a state-based system. becoming a master
is now performed in stages: wait for each NetBIOS name to be
successfully registered before proceeding to the next stage.

tied implicit name registration and release (broadcast method) to the
same piece of code as explicit method (via WINS server).

created special_browser_name() function that checks __MSBROWSE__
name: this name is ignored by WINS servers apparently.

fixed likely incompatibility between refresh_my_names() and add_my_names().
(netbios entries were unlikely to be refreshed).

NOTE: none of these changes have been tested. at all.

(This used to be commit 7719fb06524a66ce5e3f30f3152ddb1e200c97f3)

26 years agoStarted uninstall in Makefile
Samba Release Account [Thu, 4 Jul 1996 03:17:08 +0000 (03:17 +0000)]
Started uninstall in Makefile
Updated some email addresses
(This used to be commit a7be82ee6e56481b907ab3672b214639ec63c9b5)

26 years agogenerated new proto.h
Andrew Tridgell [Wed, 3 Jul 1996 02:59:01 +0000 (02:59 +0000)]
generated new proto.h
(This used to be commit 05107be5660c31a7c07dee467d61c44ffdffaf3e)

26 years agofixed conflict between two variables called d
Andrew Tridgell [Wed, 3 Jul 1996 02:58:46 +0000 (02:58 +0000)]
fixed conflict between two variables called d
(This used to be commit 38135c854e6b5d126939e226f815bb1a8d727f69)

26 years agofixed conflict with global variable updatecount
Andrew Tridgell [Wed, 3 Jul 1996 02:58:18 +0000 (02:58 +0000)]
fixed conflict with global variable updatecount
(This used to be commit ba478e94047cc4f92ae35a508c9e62855619e665)

26 years agofix Makefile - remove Lukes private stuff :-)
Andrew Tridgell [Wed, 3 Jul 1996 02:39:49 +0000 (02:39 +0000)]
fix Makefile - remove Lukes private stuff :-)
rerun proto generator
(This used to be commit 98568862ca5f9f48b389a42633732de831331189)

26 years ago- moved the protocol defs in the client to keep sill C compilers happy
Andrew Tridgell [Wed, 3 Jul 1996 01:58:27 +0000 (01:58 +0000)]
- moved the protocol defs in the client to keep sill C compilers happy
- added change for cnum range in reply_tdis()
(This used to be commit 609c3a5e1e3a8d9ba380a802ab3ecf6f47093846)

26 years agoas a result of the writing of namework.doc, namework.c has been tidied up,
Samba Release Account [Tue, 2 Jul 1996 15:31:33 +0000 (15:31 +0000)]
as a result of the writing of namework.doc, namework.c has been tidied up,
some bugs fixed / documented and some discrepancies noted down (in
namework.c as well as namework.doc)

namebrowse.c and namelogon.c contain functions that were inappropriately
placed in namework.c. namebrowse.c contains browse sync queue management
functions that were inappropriately placed in namedb.c

the 'cmd_type' member of response_record has been renamed to 'state'
because that more accurately reflects it purpose (not entirely. sigh).

fixed a bug in nameserv.c that meant the previous version wouldn't

there's probably a bit more...

(This used to be commit a66417ebe871a1c1366c395ea4c7099852975e65)

26 years agoupdated low-level design documentation on nmbd. first draft of namework.doc
Samba Release Account [Tue, 2 Jul 1996 15:23:02 +0000 (15:23 +0000)]
updated low-level design documentation on nmbd. first draft of namework.doc
and updated the other two.

(This used to be commit 96d242826d618f7dcdb1a1adf50d484df7e2a5c0)

26 years agopatch to fix NetServerEnum with multiple workgroup lists kindly supplied.
Samba Release Account [Mon, 1 Jul 1996 18:54:02 +0000 (18:54 +0000)]
patch to fix NetServerEnum with multiple workgroup lists kindly supplied.
it works for him. needs testing.
(This used to be commit 546c49080707c0cbaa6bfc928102d52826867592)

26 years agoupdated the NetBIOS code due to some bugs found by writing the first draft
Samba Release Account [Mon, 1 Jul 1996 18:29:21 +0000 (18:29 +0000)]
updated the NetBIOS code due to some bugs found by writing the first draft
of the low level design docs.
(This used to be commit 103012e5f2fac09598d60c4263c3a30992680729)

26 years agofirst draft of low-level design documents describing the operation of
Samba Release Account [Mon, 1 Jul 1996 18:22:31 +0000 (18:22 +0000)]
first draft of low-level design documents describing the operation of
nameserv.c and nameresp.c and their interaction with the rest of nmbd.
(This used to be commit 875497d961fb7537ad850c97ba0bf4b1ed2121c3)

26 years agoadded local and remote interfaces (didn't get done in first attempt)
Samba Release Account [Sat, 29 Jun 1996 19:27:12 +0000 (19:27 +0000)]
added local and remote interfaces (didn't get done in first attempt)
(This used to be commit c0b0139d1a7816b027b2f1cf107487a4508ed92f)

26 years agoluke's first attempt at using cvs
Samba Release Account [Sat, 29 Jun 1996 18:49:20 +0000 (18:49 +0000)]
luke's first attempt at using cvs

accidentally updated the Makefile

updated the name database structure (again!). this time, there is one
name database per local interface. there is also a pseudo-interface on
ip its purpose is to store WINS name entries. all the
local interface name databases store SELF names only. the WINS name
database stores non-special browser names.

added wins.dat file: records WINS entries in ascii format. this is reloaded
when nmbd restarts.

added repeating code for response packets. timer is in seconds only at the

updated the response queue code to deal with samba registering with a
WINS server a bit better (added more cases when a response isn't received).
tidied up the response packet processing code and expire_response_queue()
code. added cross references between response received and await-response
expired code.

added over-zealous code that checks all machines that register with samba
as a WINS server (every 10 minutes i think): to see whether they are still
alive or not (see rfc1001.txt)

bug reported by terry@ren.pc.athabascau.ca: DNSFAILed names _stay_ as
DNSFAIL, even though the machine may come back up and REGISTER.

removed update_from_reg() function. it's not necessary, and it does too much.

added code that announces on each local interface samba's ttl as zero and
servertype as zero when nmbd is kill -TERMed

first attempt at putting the first functionality of samba browsing back in
(remote subnets should have samba appear in a workgroup specified through
the lmhosts file)

lots of other miscellaneous tidying up / chopping about.
(This used to be commit 7e8c60cfe54060860e5ce20b1c3b8ec6aa5c54da)

26 years agoBasic doc changes to keep up to date.
Samba Release Account [Wed, 19 Jun 1996 13:23:46 +0000 (13:23 +0000)]
Basic doc changes to keep up to date.

(This used to be commit 6d81d56f929e763bcf6b1f7a61aabaf884c4aad4)

26 years ago - deleted reduntant blank line at end of file (JHT)
Samba Release Account [Wed, 19 Jun 1996 12:27:26 +0000 (12:27 +0000)]
 - deleted reduntant blank line at end of file (JHT)
(This used to be commit 7960522e18bb34cba4fbc6ef0d68485d484c9cad)

26 years ago- change date as a demo for john
Andrew Tridgell [Wed, 19 Jun 1996 12:23:54 +0000 (12:23 +0000)]
- change date as a demo for john
- modified plp printing parser to work on my system
(This used to be commit 9408f91e1b9a2482af96afe9df08e0a5fba60cdb)

26 years agoAdded source filename to give crude index
Samba Release Account [Mon, 17 Jun 1996 14:11:14 +0000 (14:11 +0000)]
Added source filename to give crude index
Dan 17 June 1996
(This used to be commit 5a72a6c8dfe3a0898db514c35a9d704c3627c41d)

27 years agodemo of cvs - ignore
Andrew Tridgell [Wed, 12 Jun 1996 01:47:09 +0000 (01:47 +0000)]
demo of cvs - ignore
(This used to be commit 1a30ade78e31c5ffa889eedc998771b1bb98c246)

27 years agominor patch to allow host announcements to remote subnets
Andrew Tridgell [Mon, 10 Jun 1996 06:08:50 +0000 (06:08 +0000)]
minor patch to allow host announcements to remote subnets
(This used to be commit e264a670e917102cfdbfce9ae76fbc4d548ddae4)

27 years agopreparing for release of 1.9.16alpha10
Samba Release Account [Mon, 10 Jun 1996 05:20:35 +0000 (05:20 +0000)]
preparing for release of 1.9.16alpha10
(This used to be commit a82ffca73e490f0fb9dbad43783ab55ac317a460)

27 years agoa cleanup of the receive_smb() usage, adding timeouts in some places
Andrew Tridgell [Mon, 10 Jun 1996 05:16:19 +0000 (05:16 +0000)]
a cleanup of the receive_smb() usage, adding timeouts in some places

also added paranoid code in the main process() loop of smbd to detect
when smbd is looping uselessly. This should stop the "smbd is chewing
lots of cpu" reports
(This used to be commit 8e9dce34d50d673cb50531f0c4c7672ce2522cef)

27 years agogot rid of a lot of redundent header files as we now globally generate
Andrew Tridgell [Mon, 10 Jun 1996 04:38:24 +0000 (04:38 +0000)]
got rid of a lot of redundent header files as we now globally generate
prototypes automatically using "make proto". This is much less prone
to error than the old method of manually adding prototypes
(This used to be commit b551dc98f7cc194a5fc2e67a4ebae7fd67a01bbc)

27 years agodocumented the "max disk size" option.
Andrew Tridgell [Mon, 10 Jun 1996 03:42:06 +0000 (03:42 +0000)]
documented the "max disk size" option.

I'm sure I've done this before, we must have lost some patches a while
(This used to be commit 0c96ac512fe1f9baf35a8c1c0eb83e001ffb54df)

27 years agomoved some more locking routines to locking.c, and moved replacement
Andrew Tridgell [Mon, 10 Jun 1996 03:39:58 +0000 (03:39 +0000)]
moved some more locking routines to locking.c, and moved replacement
routines for broken OSes from util.c to replace.c.
(This used to be commit 3ee9d45426a9b3b584d1ffb9f81af26790a83b4c)

27 years agoupdates from Luke to rename "domains" more accurately to "subnets"
Andrew Tridgell [Mon, 10 Jun 1996 03:38:08 +0000 (03:38 +0000)]
updates from Luke to rename "domains" more accurately to "subnets"
(This used to be commit 0a044c25abc363d8b202ff5d148259d624b92ea7)

27 years agopreparing for release of 1.9.16alpha9
Samba Release Account [Sat, 8 Jun 1996 05:39:06 +0000 (05:39 +0000)]
preparing for release of 1.9.16alpha9
(This used to be commit 32053cfa78fee6b549742ec1f6d240781b162a72)

27 years agomore changes from Luke
Andrew Tridgell [Sat, 8 Jun 1996 05:37:33 +0000 (05:37 +0000)]
more changes from Luke
(This used to be commit df44f10d7492679dabe3b998e7bacfebbc49ea5e)

27 years agofixed the apana MIRRORS entry
Andrew Tridgell [Sat, 8 Jun 1996 05:36:21 +0000 (05:36 +0000)]
fixed the apana MIRRORS entry
(This used to be commit f539b4bf6b47c1e22a688767001732abb6caaa0f)

27 years agochanges from Luke
Andrew Tridgell [Sat, 8 Jun 1996 04:41:51 +0000 (04:41 +0000)]
changes from Luke
(This used to be commit 5269aa277c635cfda65a27fd1b2e587ac181e1c3)

27 years agomoved MSBROWSE into nameserv.h
Andrew Tridgell [Sat, 8 Jun 1996 04:36:25 +0000 (04:36 +0000)]
moved MSBROWSE into nameserv.h
(This used to be commit 90fa15c45f1859306dc3ceb47bb0bb3452490227)

27 years agopatches fromk Luke putting in symbolic names for time constants
Andrew Tridgell [Sat, 8 Jun 1996 04:34:45 +0000 (04:34 +0000)]
patches fromk Luke putting in symbolic names for time constants
(This used to be commit 79849b829314e5caf4f0f5b95e4a8a0c2c223f90)

27 years ago- added comments to byteorder.h explaining how it works.
Andrew Tridgell [Sat, 8 Jun 1996 04:33:37 +0000 (04:33 +0000)]
- added comments to byteorder.h explaining how it works.
- fixed problem with installscripts if srcdir is not set
- fixed ptr init bug in interface.c
- changed default lookup type in nmblookup to match nbtstat under NT
- new quotas fixes for sunos and solaris
(This used to be commit e775576f026d282473256aeac6fef65a85acd98e)

27 years ago- added predict.c, moving the routines from util.c
Andrew Tridgell [Fri, 7 Jun 1996 03:34:22 +0000 (03:34 +0000)]
- added predict.c, moving the routines from util.c

- added iface_count() and iface_n_ip() routines so its easy to loop
over the local interface list

- made readsize a normal loadparm global

- check for null w in add_domain_entry()

- set the deathtime to time()-1 for doamin entries with servertype==0
This allows servers that are shutting down to be removed

- add the 0x1c name at startup if we are a WINS server. Previously we
added it only if we were a master

- loop over interfaces in add_my_domains(), so people don't have to
have a lmhosts file to get lp_workgroup() on all interfaces

- set add to True for find_workgroupstruct() in nmbsync, and check for
null return

- remove some ugly "errno = EBADF" bits. they just confused things.
(This used to be commit 88b191b48836eeb7937f25b37d0bdd4a2276e5a7)

27 years agopreparing for release of 1.9.16alpha8
Samba Release Account [Thu, 6 Jun 1996 11:58:12 +0000 (11:58 +0000)]
preparing for release of 1.9.16alpha8
(This used to be commit 5a0d016b2432da9299d92b33d723534d91c8dcf4)

27 years ago- added interface.c and removed all the references to myip, bcast_ip
Andrew Tridgell [Thu, 6 Jun 1996 11:43:09 +0000 (11:43 +0000)]
- added interface.c and removed all the references to myip, bcast_ip
and Netmask, instead replacing them with calls to routines in

- got rid of old MAXINT define

- added code to ensure we only return one entry for each name in the ipc
enum routines

- added new_only option to add_netbios_entry() to prevent overwriting
of important names

- minor time handling fixup
(This used to be commit 7ed71b73ae745da099072eee36fc2700d1d91407)

27 years agoadded some notes on the new "interfaces" option
Andrew Tridgell [Thu, 6 Jun 1996 11:24:54 +0000 (11:24 +0000)]
added some notes on the new "interfaces" option
(This used to be commit 8eb701d0d6483d0f5c6de3640b38f98128cd321c)

27 years agopreparing for release of 1.9.16alpha7
Samba Release Account [Thu, 6 Jun 1996 00:30:18 +0000 (00:30 +0000)]
preparing for release of 1.9.16alpha7
(This used to be commit dfb7fa3ae405f4e23f3cc9e4bbe93029981c99dc)

27 years agofix a bug that meant alpha6 couldn't compile.
Andrew Tridgell [Thu, 6 Jun 1996 00:29:22 +0000 (00:29 +0000)]
fix a bug that meant alpha6 couldn't compile.
(This used to be commit 07288091c322fdb9f63889e84cfc57fa6cb5f613)

27 years agoadd sunos private makefile to .ignore
Andrew Tridgell [Thu, 6 Jun 1996 00:28:48 +0000 (00:28 +0000)]
add sunos private makefile to .ignore
(This used to be commit 60a8a9c006f16186320fb13109128db35595523c)

27 years agopreparing for release of 1.9.16alpha6
Samba Release Account [Wed, 5 Jun 1996 15:46:41 +0000 (15:46 +0000)]
preparing for release of 1.9.16alpha6
(This used to be commit ee330d60458c8f056b32dc3aa54a54ce6643186b)

27 years ago- remove some incorrect prototypes from server.c
Andrew Tridgell [Wed, 5 Jun 1996 15:44:24 +0000 (15:44 +0000)]
- remove some incorrect prototypes from server.c
- formatting cleanup in check_master_browser()
- removed unused code from nameserv.c
(This used to be commit ed3ef2e47d5039077993c6addaf44dce2bb1e780)

27 years ago- changed some debug levels in clientutil.c
Andrew Tridgell [Wed, 5 Jun 1996 15:16:09 +0000 (15:16 +0000)]
- changed some debug levels in clientutil.c

- added dir_check_ftype() to clean up the file type checking a bit

- added check for libc version >= 5 for setfsuid() for Linux

- moved the AM_MASTER() and related macros to nameserv.h

- added proper defines for the various netbios announce types

- don't call the announce_backup() code, as I'm pretty sure its wrong
it sent ANN_GetBackupListReq packets as broadcasts, they are supposed
to be used only by clients to the master browser to find a list of
available backup servers to remote a netserverenum to, I don't think
nmbd should ever send one.

- fixed a bug in the browse list writing

- minor debug cleanups

- put in the code to discard our own broadcasts (it won't work for
multi-homed hosts though)

- changed ELECTION_VERSION to 1 so we can be beaten by a NT 3.51 server by
lowering the os level.

- only do sync_browse_lists() if we are the master browser, otherwise
we'll cause network overload

- don't call tell_become_backup() as it appears to be badly broken, it
should only be used when the machine being told has its MAINTAIN_LIST
to to auto. Not calling it does no great harm anyway

- fix a nasty bug where becomebackup was confused with reset browser!

- make setbuffer() not get caught by the auto protototypes
(This used to be commit cfbad9b08242962f41595273de08a7293fe432b1)

27 years agopreparing for release of 1.9.16alpha5
Samba Release Account [Tue, 4 Jun 1996 15:20:14 +0000 (15:20 +0000)]
preparing for release of 1.9.16alpha5
(This used to be commit f5c493192eb744c8cd015a828b5fba311bee0093)