summaryrefslogtreecommitdiffstats
path: root/sys/netsmb
Commit message (Collapse)AuthorAgeFilesLines
* Remove fragments of support for the FreeBSD 3.x and 4.x branches.tjr2003-03-062-5/+0
|
* Finish driving a stake through the heart of netns and the associatedpeter2003-03-051-3/+0
| | | | | | ifdefs scattered around the place - its dead Jim! The SMB stuff had stolen AF_NS, make it official.
* Gigacommit to improve device-driver source compatibility betweenphk2003-03-031-13/+5
| | | | | | | | | | | | | branches: Initialize struct cdevsw using C99 sparse initializtion and remove all initializations to default values. This patch is automatically generated and has been tested by compiling LINT with all the fields in struct cdevsw in reverse order on alpha, sparc64 and i386. Approved by: re(scottl)
* Use noread(), nowrite() and nopoll() instead of our own stub functions.tjr2003-02-271-24/+3
|
* NODEVFS cleanup: Don't call cdevsw_{add,remove}()phk2003-02-261-2/+0
|
* Back out M_* changes, per decision of the TRB.imp2003-02-198-25/+25
| | | | Approved by: trb
* Lock proc while manipulating p_sigmask p_sigignore and p_siglist.tjr2003-02-141-1/+5
|
* Pass a minor number instead of a unit number to make_dev().tjr2003-02-071-3/+4
| | | | Devices with the wrong major were being created for units >255.
* Remove M_TRYWAIT/M_WAITOK/M_WAIT. Callers should use 0.alfred2003-01-218-25/+25
| | | | Merge M_NOWAIT/M_DONTWAIT into a single flag M_NOWAIT.
* Bow to the whining masses and change a union back into void *. Retaindillon2003-01-131-1/+1
| | | | | removal of unnecessary casts and throw in some minor cleanups to see if anyone complains, just for the hell of it.
* Change struct file f_data to un_data, a union of the correct structdillon2003-01-121-1/+1
| | | | | | | | | | pointer types, and remove a huge number of casts from code using it. Change struct xfile xf_data to xun_data (ABI is still compatible). If we need to add a #define for f_data and xf_data we can, but I don't think it will be necessary. There are no operational changes in this commit.
* Correct typos, mostly s/ a / an / where appropriate. Some whitespace cleanup,schweikh2003-01-011-1/+1
| | | | especially in troff files.
* When compiling the kernel do not implicitly include filedesc.h from proc.h,alfred2003-01-011-0/+1
| | | | | | this was causing filedesc work to be very painful. In order to make this work split out sigio definitions to thier own header (sigio.h) which is included from proc.h for the time being.
* Fix typos, mostly s/ an / a / where appropriate and a few s/an/and/schweikh2002-12-301-1/+1
| | | | Add FreeBSD Id tag where missing.
* o Untangle the confusion with the malloc flags {M_WAITOK, M_NOWAIT} andbmilekic2002-12-191-1/+1
| | | | | | | | | | the mbuf allocator flags {M_TRYWAIT, M_DONTWAIT}. o Fix a bpf_compat issue where malloc() was defined to just call bpf_alloc() and pass the 'canwait' flag(s) along. It's been changed to call bpf_alloc() but pass the corresponding M_TRYWAIT or M_DONTWAIT flag (and only one of those two). Submitted by: Hiten Pandya <hiten@unixdaemons.com> (hiten->commit_count++)
* Remove the hto(be|le)[slq] and (be|le)toh[slq] macros defined inrobert2002-12-164-5/+5
| | | | | | | | | | | _KERNEL scope from "src/sys/sys/mchain.h". Replace each occurrence of the above in _KERNEL scope with the appropriate macro from the set of hto(be|le)(16|32|64) and (be|le)toh(16|32|64) from "src/sys/sys/endian.h". Tested by: tjr Requested by: comment marked with XXX
* fix connecting to (samba) server when share-level security is in effectfjoe2002-12-071-1/+1
| | | | | | | (do not send second password at all) Approved by: bp, re MFC after: 1 week
* Fix a fatal typo introduced in revision 1.13 that caused the mbuf chains totjr2002-11-261-1/+1
| | | | | | be created incorrectly for requests larger than NB_SORECEIVE_CHUNK bytes. Approved by: re
* - Change mb_copy_t to take a size_t as the length argument instead of anjhb2002-11-081-2/+2
| | | | | | | int. - Change the local variable in smb_copy_iconv() from an int to a size_t. These make smb_copy_iconv() happy in a 64-bit world.
* Some kernel threads try to do significant work, and the default KSTACK_PAGESscottl2002-10-021-1/+1
| | | | | | | | | | | | | doesn't give them enough stack to do much before blowing away the pcb. This adds MI and MD code to allow the allocation of an alternate kstack who's size can be speficied when calling kthread_create. Passing the value 0 prevents the alternate kstack from being created. Note that the ia64 MD code is missing for now, and PowerPC was only partially written due to the pmap.c being incomplete there. Though this patch does not modify anything to make use of the alternate kstack, acpi and usb are good candidates. Reviewed by: jake, peter, jhb
* Back our kernel support for reliable signal queues.jmallett2002-10-011-3/+2
| | | | Requested by: rwatson, phk, and many others
* Convert use of p_siglist and old SIG*() macros to use <sys/ksiginfo.h>jmallett2002-09-301-2/+3
| | | | | | prototyped functions to get a sigset_t, and further to check for any queued signals, rather than an empty signal set, to go with the move to signal queues rather than signal sets.
* Use m_length() instead of home-rolled versions.phk2002-09-181-3/+1
|
* Add missing #include <sys/mbuf.h>phk2002-09-181-0/+1
|
* Permit an empty username which is useful for browsing.bp2002-09-181-0/+4
|
* Increase send/receive queue to accomodate large readx/writex requests.bp2002-09-182-22/+78
| | | | | | | Receive packets in a small pieces (NB_SORECEIVE_CHUNK), so TCP slowstart will get its ACKs faster. Obtained from: Darwin
* Reserve a transport parameter name and number for Darwin.bp2002-09-161-0/+1
| | | | | Obtained from: Darwin MFC after: 2 weeks
* Implement support for mixed case passwords.bp2002-09-162-7/+77
| | | | | Obtained from: Darwin MFC after: 2 weeks
* Add support for large readx and writex functions if server supports them.bp2002-09-162-0/+178
| | | | | Obtained from: Darwin MFC after: 2 weeks
* Enable browsing of NetApp servers (use ascii mode).bp2002-09-161-1/+4
| | | | | Obtained from: Darwin (PR-3002667) MFC after: 2 weeks
* Add more constants for future use in kernel and userland.bp2002-09-161-8/+64
| | | | Obtained from: Darwin
* <sys/lock.h> is a prerequisite for <sys/mutex.h>, so include the formerbde2002-08-271-0/+1
| | | | | here before the latter instead of depending on namespace pollution in <sys/mumble.h> or on accidentally placed includes in netsmb/*.c.
* Include <sys/lockmgr.h> for old lock interfaces instead of includingbde2002-08-271-1/+1
| | | | <sys/lock.h> solely for its namespace pollution.
* Wire the sysctl output buffer before grabbing any locks to preventtruckman2002-07-281-0/+1
| | | | | | | SYSCTL_OUT() from blocking while locks are held. This should only be done when it would be inconvenient to make a temporary copy of the data and defer calling SYSCTL_OUT() until after the locks are released.
* Back out my lats commit of locking down a socket, it conflicts with hsu's work.tanimura2002-05-311-9/+1
| | | | Requested by: hsu
* Fix trivial warning:peter2002-05-241-0/+1
| | | | smb_iod.c:560: deprecated use of label at end of compound statement
* Lock down a socket, milestone 1.tanimura2002-05-201-1/+9
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | o Add a mutex (sb_mtx) to struct sockbuf. This protects the data in a socket buffer. The mutex in the receive buffer also protects the data in struct socket. o Determine the lock strategy for each members in struct socket. o Lock down the following members: - so_count - so_options - so_linger - so_state o Remove *_locked() socket APIs. Make the following socket APIs touching the members above now require a locked socket: - sodisconnect() - soisconnected() - soisconnecting() - soisdisconnected() - soisdisconnecting() - sofree() - soref() - sorele() - sorwakeup() - sotryfree() - sowakeup() - sowwakeup() Reviewed by: alfred
* Revert the change of #includes in sys/filedesc.h and sys/socketvar.h.tanimura2002-04-301-4/+7
| | | | | | | | | | Requested by: bde Since locking sigio_lock is usually followed by calling pgsigio(), move the declaration of sigio_lock and the definitions of SIGIO_*() to sys/signalvar.h. While I am here, sort include files alphabetically, where possible.
* Move the new byte order function prototypes from <sys/param.h> tomike2002-04-263-0/+3
| | | | <sys/endian.h>. This puts us in line with NetBSD and OpenBSD.
* Initialize thread select queue in the same way as rev 1.93 of sys_generic.cbp2002-04-231-0/+3
| | | | | | does. Missed and found by: alfred
* Recongnize more error codes returned by W2K servers.bp2002-04-172-1/+14
| | | | MFC after: 4 days
* Add more NetBIOS name types.bp2002-04-171-2/+9
| | | | MFC after: 4 days
* Change callers of mtx_init() to pass in an appropriate lock type name. Injhb2002-04-041-1/+1
| | | | | | | most cases NULL is passed, but in some cases such as network driver locks (which use the MTX_NETWORK_LOCK macro) and UMA zone locks, a name is used. Tested on: i386, alpha, sparc64
* Change the suser() API to take advantage of td_ucred as well as do ajhb2002-04-011-1/+1
| | | | | | | | | | | | general cleanup of the API. The entire API now consists of two functions similar to the pre-KSE API. The suser() function takes a thread pointer as its only argument. The td_ucred member of this thread must be valid so the only valid thread pointers are curthread and a few kernel threads such as thread0. The suser_cred() function takes a pointer to a struct ucred as its first argument and an integer flag as its second argument. The flag is currently only used for the PRISON_ROOT flag. Discussed on: smp@
* Missed this file for select SMP fixes associated with rev 1.93 ofalfred2002-03-141-27/+24
| | | | kern/sys_generic.c
* Simple p_ucred -> td_ucred changes to start using the per-thread ucredjhb2002-02-274-5/+4
| | | | reference.
* Remove redundant checks for iovcnt > 1. This should be handled properlybp2002-02-211-7/+7
| | | | | | | in the subr_mchain. Obtained from: Darwin project MFC after: 2 weeks
* Add unicode related definition for future use. Descibe Samba bug.bp2002-02-212-1/+10
| | | | | Obtained from: Darwin project MFC after: 2 weeks
* Add subfunction definition for future use.bp2002-02-211-0/+1
| | | | MFC after: 2 weeks
* SMP Lock struct file, filedesc and the global file list.alfred2002-01-131-8/+19
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Seigo Tanimura (tanimura) posted the initial delta. I've polished it quite a bit reducing the need for locking and adapting it for KSE. Locks: 1 mutex in each filedesc protects all the fields. protects "struct file" initialization, while a struct file is being changed from &badfileops -> &pipeops or something the filedesc should be locked. 1 mutex in each struct file protects the refcount fields. doesn't protect anything else. the flags used for garbage collection have been moved to f_gcflag which was the FILLER short, this doesn't need locking because the garbage collection is a single threaded container. could likely be made to use a pool mutex. 1 sx lock for the global filelist. struct file * fhold(struct file *fp); /* increments reference count on a file */ struct file * fhold_locked(struct file *fp); /* like fhold but expects file to locked */ struct file * ffind_hold(struct thread *, int fd); /* finds the struct file in thread, adds one reference and returns it unlocked */ struct file * ffind_lock(struct thread *, int fd); /* ffind_hold, but returns file locked */ I still have to smp-safe the fget cruft, I'll get to that asap.
OpenPOWER on IntegriCloud