summaryrefslogtreecommitdiffstats
path: root/source/include/byteorder.h
Commit message (Collapse)AuthorAgeFilesLines
* merging for 2.2.6pre1Gerald Carter2002-07-271-14/+12
|
* Start of merge to 2_2_RELEASE branch for release.Jeremy Allison2002-04-301-1/+1
| | | | Jeremy.
* Move over to RELEASE branch.Jeremy Allison2002-02-011-18/+24
| | | | Jeremy.
* Ding Dong the witch is dead ! :-). Ok, I'm happy 'cos I've finally deletedJeremy Allison2001-03-311-91/+0
| | | | | | | | | | | | | | | | | all the *HORRIBLE* DBG_RW_XXX and RW_XXX macros from include/byteorder.h. They were macros that included macros that had conditional macros included. No one understood them (they were the cause of most of the bigendian issue bugs). Finally, I went into parse_prs.c and inlined all of that stuff with regular function calls. They're understandable, they're easy to edit and they don't include macros ! JF - please look at the one comment I added (JF PLEASE CHECK). I have tested this partly with IRIX (a bigendian system) running with AS/U on a Solaris box in SGI's lab, and I've also confirmed these new changes work with W2K (vmware) but there may be the odd bug lurking. Herb, if you could re-checkout and test again with this code that would help. I'm not going to sync these changes with HEAD until I know they're completely correct (which I believe they are). Jeremy
* The changes to the SMBMACROs were causing big endian machines to incorrectlyJeremy Allison2001-03-311-8/+7
| | | | | | | | | | | byte-swap uint32 arrays (SIDS). Restored them to the original values - this wouuld have caused the AS/U work that Herb and I did to break. So I expanded (BY HAND !!! GRRR!!!!) the *stupid* DBG_RW_XXX macros for unicode strings, and made sure that all places marshalling uint16 arrays as unicode strings (spoolss) called the new function which (hopefully) correctly handles byte swapping for big-endian RPC machines. I'm now off to the SGI lab (this is no way to spend a friday night :-) to check with Herb if this works. Jeremy.
* AS/U on a sparc now joins and authenticates against a Samba PDC !Jeremy Allison2001-03-151-7/+7
| | | | Jeremy.
* Removed rpc_unistrXX calls as the fix in include/byteorder.h now meansJeremy Allison2001-03-141-15/+5
| | | | | | | | | | that unistrs are correctly converted from bigendian->littlendian on unmarshalling from a bigendian client. Many thanks to Herb for tracking this one down. nmbd/nmbd_processlogon.c: Fix from Herb to return netlogon reply to the correct NBT logon name (AS/U showed this was needed - NT4 does the same). Jeremy.
* Andrew made it faster :-).Jeremy Allison2000-04-111-2/+2
| | | | Jeremy.
* Bloody typo ! It should be & 3 , & 1 *not* &~3, &~1.Jeremy Allison2000-04-111-2/+2
| | | | Jeremy.
* include/byteorder.h: ALIGN4/ALIGN2 macros.Jeremy Allison2000-04-111-2/+2
| | | | | | | | | | | | include/includes.h: Added SMB_BIG_UINT_BITS. lib/util.c: Removed align2/align4 - use macros. libsmb/namequery.c: Use ALIGN2. locking/locking.c: Replace do_lock, do_unlock, args with SMB_BIG_UINT, not SMB_OFF_T. Needed to move to hiding POSIX locks at a lower layer. nmbd/nmbd_processlogon.c: Use ALIGN2/ALIGN4 macros. smbd/blocking.c: Replace do_lock, do_unlock, args with SMB_BIG_UINT, not SMB_OFF_T. smbd/reply.c: Replace do_lock, do_unlock, args with SMB_BIG_UINT, not SMB_OFF_T. Jeremy.
* acconfig.h configure configure.in: Added check for UT_SYSLEN for utmp code.Jeremy Allison2000-03-221-0/+4
| | | | | | | | | | | | | | include/byteorder.h: Added alignment macros. include/nameserv.h: Added defines for msg_type field options - from rfc1002. lib/time.c: Typo fix. lib/util_unistr.c: Updates from UNICODE branch. printing/nt_printing.c: bzero -> memset. smbd/connection.c: Added check for UT_SYSLEN for utmp code. Other fixes : Rollback of unapproved commit from Luke. Please *ask* next time before doing large changes to HEAD. Jeremy.
* first pass at updating head branch to be to be the same as the SAMBA_2_0 branchAndrew Tridgell1999-12-131-62/+79
|
* - typecast malloc / Realloc issues.Luke Leighton1999-10-251-17/+17
| | | | - signed / unsigned issues.
* use DEBUGADD instead of DEBUG: clears up some of the more verbose trash.Luke Leighton1999-10-211-3/+3
|
* const issues with byte mod / byte read macros.Luke Leighton1999-02-121-8/+13
|
* clearing up security descriptorLuke Leighton1998-11-111-6/+6
|
* This is *not* a big change (although it looks like one).Jeremy Allison1998-01-221-1/+1
| | | | | | | This is merely updating the Copyright statements from 1997 to 1998. It's a once a year thing :-). NO OTHER CHANGES WERE MADE. Jeremy.
* Rolled back tree state to 11:59pm 8th November 1997 EST toJeremy Allison1997-11-101-3/+3
| | | | | remove problems. Jeremy
* byteorder.h :Luke Leighton1997-11-091-3/+3
| | | | | | | | | | | | typecasting for the debug messages of the data dump. hm. #ifdef NTDOMAIN ntclient.c rpc_pipes/lsaparse.c rpc_pipes/ntclientnet.c rpc_pipes/smbparse.c : adding "Net Server Password Set" functionality to smbclient. #endif
* byteorder.h :Luke Leighton1997-10-291-3/+3
| | | | | | | | have another go at reporting stuff the right way round (on SPARCs) srvparse.c : copyright messages
* typecast in calls to print_asc() wrongLuke Leighton1997-10-291-3/+3
|
* byteorder.h :Luke Leighton1997-10-291-3/+6
| | | | | | | | | | | | | | | | | | | | added mode for printing debug array data as chars not uint8/16/32s. only really useful for (uint8) strings or (uint16) unicode strings lsaparse.c smbparse.c smb.h : rpc bind and rpc bind ack structures and parsing and creation functions. ipc.c pipes.c pipenetlog.c pipentlsa.c pipesrvsvc.c : using rpc bind / bind ack parsing routines instead of incorrect use of api_LsarpcTNP1 function. ntclient.c : creation of do_rpc_bind() function. THAT'S IT, FOLKS!
* added LSA Query Info Policy.Luke Leighton1997-10-271-6/+6
| | | | | fixed a problem with byte ordering (doing an SIVAL of the setup parameters which was _also_ being done in the creation of the SMB header. oops).
* Makefile :Luke Leighton1997-10-251-3/+3
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | adding bits for new nt domain code byteorder.h : trying to get macros right, and not to crash on SUNOS5... client.c : added #ifdef NTDOMAIN, and created do_nt_login() function. don't want to have to recompile client.c unless absolutely necessary. credentials.c : moved deal_with_creds() [possibly inappropriately] into credentials.c ipc.c reply.c server.c uid.c : attempting to make (un)become_root() functions calleable from smbclient. this is a little tricky: smbclient might have to be another setuid root program, immediately setuid'ing to non-root, so that we can reset-uid to root to get at the smbpasswd file. or, have a secure pipe mechanism to smbd to grab smbpasswd entries. or the like. smbdes.c smbencrypt.c : created a function to generate lm and nt owf hashes. lsaparse.c ntclient.c smbparse.c : added nt client LSA_AUTH2 code. it works, too! pipenetlog.c pipentlsa.c pipesrvsvc.c : simplification. code-shuffling. getting that damn offset right for the opcode in RPC_HDR. smb.h : changed dcinfo xxx_creds to DOM_CRED structures instead of DOM_CHAL. we might need to store the server times as well. proto.h : the usual.
* smb.h smbparse.c pipenetlog.c :Luke Leighton1997-10-151-4/+4
| | | | | | | | | | | | | | | | | | | | | | | | | | | whoops, the SAM Logon structure was wrong. updated this, and cifsntdomain.txt. more debug info in pipenetlog.c. the crash is somewhere around deal_with_credentials(). byteorder.h : put in uint8, uint16 and uint32 typecasts around debug info, because sign extending was resulting in ffffffe8 being displayed instead of e8. credentials.c : some debugging info, because i'm tracking a coredump. without gdb. nothing like making things difficult. reply.c : whoops, missed this (important) bit from paul's code, which tells the NT workstation that the MACHINE$ entry doesn't already exist, and we're going to create a default entry with a password "machine" right now. proto.h: the usual.
* byteorder.h:Luke Leighton1997-10-141-2/+13
| | | | | | | | | | | | | | | | | | | created a RW_PIVAL macro which was missing. smbparse.c: smb_io_dom_sid() was storing its sub-authorities as uint16s instead of uint32s. used the DBG_RW_PIVAL macro instead of DBG_RW_PSVAL. pipentlsa.c: not sure. something to do with the Query Info reply. pipeutil.c: make_rpc_reply() had the packed representation field set to 0x0100 0000 instead of 0x1000 0000, which had the interesting result of turning all uint32 and uint16 field byte ordering the other way round!
* credentials, query info reply.Luke Leighton1997-10-141-2/+2
|
* debug info addedLuke Leighton1997-10-131-7/+7
|
* byteorder.h :Luke Leighton1997-10-131-2/+2
| | | | | | | | | | | | debugging output wasn't (still isn't) perfect. credentials.c lsaparse.c smbparse.c : added DEBUG strings. pipes.c : lost some changes, to do with setup of RPC headers. arg.
* getting somewhere.Luke Leighton1997-10-121-3/+3
| | | | | | | | | | ipc.c : removed srvsvc pipe reference: have to do that. pipes.c lsaparse.c smbparse.c : more debugging info. looks a bit like netmon output.
* added debugging macros (suitable eventually for use in tcpdump, hopefully)Luke Leighton1997-10-121-0/+29
|
* moved the array macros outside of the CAREFUL_ALIGNMENT define.Luke Leighton1997-10-091-2/+9
|
* added some RW_XXXX wrapper macros with an extra i/o argument, to call XXXXLuke Leighton1997-10-041-0/+49
| | | | | | | | | or SXXXX as appropriate. added some for-loop pointer macros that will do a batch of data into a (fixed length) buffer. no length validation is done in the macro itself. note: there are some CAREFUL_ALIGNMENT macros missing. i think.
* 'The mother of all checkins' :-). Jeremy Allison (jallison@whistle.com)Samba Release Account1997-05-081-1/+1
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Wed May 7 1997: Update for 1.9.17alpha1 release - 'browsefix release' designed to make browsing across subnets work. byteorder.h: Updated copyright to 1997. charcnv.c: Updated copyright to 1997. charset.c Updated copyright to 1997. charset.h Updated copyright to 1997. client.c Updated copyright to 1997. clientutil.c Updated copyright to 1997. dir.c Updated copyright to 1997. fault.c Updated copyright to 1997. includes.h Updated copyright to 1997. interface.c Updated copyright to 1997. ipc.c Updated copyright to 1997. kanji.c Updated copyright to 1997. kanji.h Updated copyright to 1997. loadparm.c Updated copyright to 1997. locking.c Updated copyright to 1997. mangle.c Updated copyright to 1997. message.c Updated copyright to 1997. nameannounce.c Made use of WINS subnet explicit. Added reset_announce_timer() so announcement can be made immediately when we become a master. Expanded code to do sync with dmb. namebrowse.c Removed redundent checks for AM_MASTER in sync code. Made use of WINS subnet explicit. namedbname.c Made use of WINS subnet explicit. namedbresp.c Made use of WINS subnet explicit. namedbserver.c Made use of WINS subnet explicit. namedbsubnet.c Explicitly add workgroup to WINS subnet when we become a dmb. Made use of WINS subnet explicit. namedbwork.c Made use of WINS subnet explicit. Removed redundent check_work_servertype() function. nameelect.c Explicitly add workgroup to WINS subnet when we become a master browser. Made use of WINS subnet explicit. namelogon.c Updated copyright to 1997. namepacket.c Updated copyright to 1997. namequery.c Updated copyright to 1997. nameresp.c Made use of WINS subnet explicit. Made nmbd fail if configured as master browser and one exists already. nameserv.c Made use of WINS subnet explicit. Remove redundent logon server and domain master code. nameserv.h Add emumerate subnet macros. nameservreply.c Made use of WINS subnet explicit. nameservresp.c Updated copyright to 1997. namework.c Made use of WINS subnet explicit. Updated code to add sync browser entries to add subnet parameter. nmbd.c Added sanity check for misconfigured nmbd. nmblib.c Updated copyright to 1997. nmblookup.c Updated copyright to 1997. nmbsync.c Removed redundent AM_ANY_MASTER check. params.c Updated copyright to 1997. password.c Updated copyright to 1997. pipes.c Updated copyright to 1997. predict.c Updated copyright to 1997. printing.c Updated copyright to 1997. proto.h Changed protos for new nmbd code. quotas.c Updated copyright to 1997. replace.c Updated copyright to 1997. reply.c Updated copyright to 1997. server.c Updated copyright to 1997. shmem.c Updated copyright to 1997. smb.h Updated copyright to 1997. smbencrypt.c Updated copyright to 1997. smbpasswd.c Updated copyright to 1997. smbrun.c Updated copyright to 1997. status.c Updated copyright to 1997. system.c Updated copyright to 1997. testparm.c Updated copyright to 1997. testprns.c Updated copyright to 1997. time.c Updated copyright to 1997. trans2.c Updated copyright to 1997. trans2.h Updated copyright to 1997. uid.c Updated copyright to 1997. username.c Updated copyright to 1997. util.c Updated copyright to 1997. version.h Changed to 1.9.17alpha1.
* - added comments to byteorder.h explaining how it works.Andrew Tridgell1996-06-081-0/+64
| | | | | | | - 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
* Initial version imported to CVS Samba Release Account1996-05-041-0/+80