summaryrefslogtreecommitdiff
path: root/source4/smb_server/smb/trans2.c
AgeCommit message (Collapse)AuthorFilesLines
2008-02-14Convert SMB and SMB2 code to use a common buffer handling structureAndrew Tridgell1-12/+12
This converts our SMB and SMB2 code to use a common structure "struct request_bufinfo" for information on the buffer bounds of a packet, alignment information and string handling. This allows us to use a common backend for SMB and SMB2 code, while still using all the same string and blob handling functions. Up to now we had been passing a NULL req handle into these common routines from the SMB2 side of the server, which meant that we failed any operation which did a bounds checked string extraction (such as a RenameInformation setinfo call, which is what Vista uses for renaming files) There is still some more work to be done on this - for example we can now remove many of the SMB2 specific buffer handling functions that we had, and use the SMB ones. (This used to be commit ca6d9be6cb6a403a81b18fa6e9a6a0518d7f0f68)
2007-10-10r25551: Convert to standard bool type.Jelmer Vernooij1-3/+3
(This used to be commit c9651e2c5c078edee7b91085e936a93625c8d708)
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-10r23067: use 'const union smb_search_data *file' also in the server code to ↵Stefan Metzmacher1-2/+2
get rid of compiler warnings in the cifs backend metze (This used to be commit 34ef07b1f5acdad27edd80de8de4c6de7f879f9b)
2007-10-10r19505: fixed a valgrind errorAndrew Tridgell1-0/+4
(This used to be commit 8b9359aa7d7b60e0d5e36a2c736278f39dcb07bf)
2007-10-10r17930: Merge noinclude branch:Jelmer Vernooij1-1/+1
* Move dlinklist.h, smb.h to subsystem-specific directories * Clean up ads.h and move what is left of it to dsdb/ (only place where it's used) (This used to be commit f7afa1cb77f3cfa7020b57de12e6003db7cfcc42)
2007-10-10r16834: split the level's of smb_search_first/smb_search_next and the levelsStefan Metzmacher1-25/+27
of smb_search_data metze (This used to be commit 78c201db8a47a71908698c4dda2add4cf85694d9)
2007-10-10r16815: split out search levels which are also used by smb2Stefan Metzmacher1-127/+2
metze (This used to be commit 3b8ecc19fac6f9d52adae86767ca153ab719d00d)
2007-10-10r16621: split out passthru levels of setfileinfoStefan Metzmacher1-55/+15
metze (This used to be commit 6cd64cb78f23c88029b8b5ef712b3f8a26e8528f)
2007-10-10r16449: move some code to a generic placeStefan Metzmacher1-513/+56
metze (This used to be commit 77a711c54ae7543a26f0ace1f189d6ed580c48d9)
2007-10-10r16448: add more error checksStefan Metzmacher1-53/+47
metze (This used to be commit d6d86c65bf1835061713e0d8f2450e38455a3e1d)
2007-10-10r16444: - split out qfsinfo passthru levelsStefan Metzmacher1-85/+83
- use 1 to 1 mapping of interface and wire levels metze (This used to be commit e7d339d49669e72588461584b66ef9b19eb0a2f8)
2007-10-10r16443: add push code for SMB2 levelsStefan Metzmacher1-0/+36
metze (This used to be commit 142680ab9b4ca04ea94ed40659358e1158f88c7a)
2007-10-10r16440: split out passthru level into a new functions,Stefan Metzmacher1-71/+116
so they can we reused for smb2 later metze (This used to be commit 42324c1f63e2f16b27c43bf17b434c644244b931)
2007-10-10r16403: remove dependency to smbsrv_request next part...Stefan Metzmacher1-21/+27
metze (This used to be commit 708a5d3bf08f62ba99740c3007a8882e22a01bc9)
2007-10-10r16402: start to remove the dependecy to smbsrv_request from the parsing ↵Stefan Metzmacher1-57/+77
functions metze (This used to be commit e4a5e2db7f3333e7cb15bdd6eeb5b08a6f1d912f)
2007-10-10r16401: keep the old pointer when realloc fails, this is needed for theStefan Metzmacher1-2/+4
search callback metze (This used to be commit c868b8b7d7ee0424ed955f699543593aaa633e92)
2007-10-10r16400: add more error checksStefan Metzmacher1-47/+55
metze (This used to be commit 779c51ad52bd54c10e208b108cb34500e542097f)
2007-10-10r16399: - split out pushing smb_fsinfo into a DATA_BLOBStefan Metzmacher1-67/+76
- add error checks metze (This used to be commit 2aaca1631f4e9f312a8de506b21290b9452c2a43)
2007-10-10r16357: - start get rid of void parsing functionsStefan Metzmacher1-223/+233
- there will more changes come but I want to do them in relative small chunks metze (This used to be commit d021a8b3ee986194fbfddfc096edb715b01dafe5)
2007-10-10r15741: move smb2 request structures into the main smb request structsStefan Metzmacher1-0/+1
as new levels metze (This used to be commit 91806353174704857dfcc15a730af7232cfde660)
2007-10-10r15739: return False when the function is called with an invalid levelStefan Metzmacher1-1/+1
metze (This used to be commit fc20e4154a6a8d67d06f7abbd48059a4618fc21c)
2007-10-10r15734: This is a major change to the NTVFS subsystem:Stefan Metzmacher1-7/+11
- to use a struct ntvfs_handle instead of a uint16_t fnum. (to make it independend from the frontend protocol) - the allocation of handles now is provided by the frontend (smbsrv_*) via callbacks and not by each backend module - this also makes sure that file handles are only passed to the ntvfs subsystem when the tcon and session matches, so modules can rely on this and need to check this. - this allows multiple modules in the ntvfs module chain to allocate file handles. This can be used for virtual files like "\\$Extend\\$Quota:$Q:$INDEX_ALLOCATION"... - also this will make SMB2 with 128 bit file handles possible metze (This used to be commit 287fc1c22d670f6e568014b420f7f4cb31dc7958)
2007-10-10r14541: separate smbsrv_request and ntvfs_request,Stefan Metzmacher1-72/+46
with this it's now possible to write a ntvfs_test programm like the vfstest in samba3 also smb2 support will be possible later metze (This used to be commit 7253153691e35cd206346fbd4e9b9f95c042f602)
2007-10-10r14504: make trans and trans2 able to use async ntvfs backendsStefan Metzmacher1-408/+534
tridge: can you review this please metze (This used to be commit f2e9b2c3a2304320ac090549815b174887b3e466)
2007-10-10r14256: - rename smb_file -> smb_handleStefan Metzmacher1-7/+7
- move it into the in/out substructs again - allow file.path only on smb_fileinfo/smb_setfileinfo metze (This used to be commit be6d5298a2cdb7e7c61d70471bad445645af5963)
2007-10-10r14205: move smb specific stuff out of includes.h (finally!!!:-)Stefan Metzmacher1-2/+2
all this changes really help ccache to speed up the samba4 build:-) metze (This used to be commit 180a79d1036e54fc0c50572b820818e9aafa28e9)
2007-10-10r14173: change smb interface structures to always useStefan Metzmacher1-6/+6
a union smb_file, to abtract - const char *path fot qpathinfo and setpathinfo - uint16_t fnum for SMB - smb2_handle handle for SMB2 the idea is to later add a struct ntvfs_handle *ntvfs so that the ntvfs subsystem don't need to know the difference between SMB and SMB2 metze (This used to be commit 2ef3f5970901b5accdb50f0d0115b5d46b0c788f)
2007-10-10r14157: - pass a struct ntvfs_request to the ntvfs layerStefan Metzmacher1-1/+1
(for now we just do #define ntvfs_request smbsrv_request, but it's the first step...) - rename ntvfs_openfile() -> ntvfs_open() - fix the talloc hierachie in some places in the ntvfs_map_*() code metze (This used to be commit ed9ed1f48f602354810937c0b0de850b44322191)
2007-10-10r13877: remove smbsrv_send_dos_error() and use ↵Stefan Metzmacher1-1/+1
smbsrv_send_error(..,NT_STATUS_DOS()) metze (This used to be commit 60d7920527cd0e4142427fa59b9e617d99e3d984)
2007-10-10r13870: prefix more functions with smbsrv_Stefan Metzmacher1-18/+18
metze (This used to be commit e6275db7b926d3660ad4a0f40041a5129001427a)
2007-10-10r13865: prefix functions with smbsrv_Stefan Metzmacher1-5/+4
metze (This used to be commit 2af96632757ee4bb0261b1871100008b48c5fd4d)
2007-10-10r13863: this can be static...Stefan Metzmacher1-1/+1
metze (This used to be commit ab659d8ee0de879a54da2308c37da317e0ff7f9a)
2007-10-10r12542: Move some more prototypes out to seperate headersJelmer Vernooij1-0/+1
(This used to be commit 0aca5fd5130d980d07398f3291d294202aefe3c2)
2007-10-10r12528: Add seperate proto headers for ntvfs, tdr, smb_server and nbt_server.Jelmer Vernooij1-0/+1
(This used to be commit 87f665a1d5ba74289974bf9d8f9441c162e6f1b1)
2007-10-10r12091: the SMB2 specific level are not available via SMBStefan Metzmacher1-0/+4
(get rid of the compiler warnings) metze (This used to be commit 436c5127ef7baec22377d2f1d129702597486575)
2007-10-10r12082: fixed a valgrind error found by kukks in the transs server handlingAndrew Tridgell1-2/+1
(This used to be commit 5c81986bff06efeacf95d3d64254d566181c30bb)
2007-10-10r11786: move all SMB protocol specific stuff to smb_server/smb/Stefan Metzmacher1-0/+1779
metze (This used to be commit 5fea278cb65076cea71bb6c921e51c4feffc37d7)