summaryrefslogtreecommitdiff
path: root/source4/librpc/ndr/ndr_basic.c
AgeCommit message (Collapse)AuthorFilesLines
2008-04-17use uintptr_t instead of intptr_t where appropriateAndrew Tridgell1-2/+2
(This used to be commit d62f2bcc85c13605c133db250e0a86d2d6ccc481)
2007-12-21r26054: ndr: remove ndr_push/pull_saveStefan Metzmacher1-16/+0
Using a uint32_t offset is all we need metze (This used to be commit 2c06b48a858016f9329dcd73231fb3c7b711a918)
2007-12-21r25916: ndr: change NTSTAUS into enum ndr_err_code (basic stuff)Stefan Metzmacher1-91/+91
librpc/ndr/ metze (This used to be commit 7e157bbcfd416c3d5c32c1e9fdc746bbee5967bb)
2007-12-21r25794: use NDR_CHECK()Stefan Metzmacher1-4/+3
metze (This used to be commit 614e812bb01ebaa39db10c25cd011bef7f1279b2)
2007-12-21r25624: Remove ipv4_addr hack. Only causes 4 extra includes of ↵Jelmer Vernooij1-4/+4
system/network.h because we stripped down includes. (This used to be commit 262c1c23a61f1f4fae13e0a61179fe98b682cecf)
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-10r20417: - fix pushing of drsuapi_DsAttributeValueDataBlobStefan Metzmacher1-0/+1
- make drsuapi_DsReplicaAttribute public so that the ndr_print_* function can be used from the outside metze (This used to be commit f12776b9a9de55d5c67335d5e59c0d83a74ac939)
2007-10-10r19859: Reuse referrent ids when pushing full pointers (still need toJelmer Vernooij1-2/+7
avoid pushing the referred object twice) and add test for full pointers. (This used to be commit 1638c8d234dbc85298000685e49570f23dfd0bf8)
2007-10-10r19856: Use sptr as basis for full ptr implementation. Will add checks for ↵Jelmer Vernooij1-1/+1
duplicates later. (This used to be commit 006ab1d4a449c81680add57e0116a86b8317fbfb)
2007-10-10r18301: I discovered how to load the warnings from a build farm build intoAndrew Tridgell1-3/+3
emacs compile mode (hint, paste to a file, and compile as "cat filename"). This allowed me to fix nearly all the warnings for a IA_64 SuSE build very quickly. (This used to be commit eba6c84efff735bb0ca941ac4b755ce2b0591667)
2007-10-10r15776: Don't generate ref pointers in Samba4-generated code. There is no pointJelmer Vernooij1-4/+1
in having pointers for outgoing data when you can already modify the top-level element. This can be overridden (temporarily) by specifying the new "keepref" attribute. Once we've removed keepref from all IDL files, I'll remove this attribute as well. (This used to be commit bdc6dd37503ced8322a671d225122ccffbb8bfec)
2007-10-10r15407: Get rid of some more uint_tJelmer Vernooij1-2/+2
(This used to be commit 897329c2534dc8e24670b91bc448939141f27417)
2007-10-10r14542: Remove librpc, libndr and libnbt from includes.hJelmer Vernooij1-0/+1
(This used to be commit 51b4270513752d2eafbe77f9de598de16ef84a1f)
2007-10-10r14310: length needs to be initialisedAndrew Tridgell1-1/+1
(This used to be commit 20d7f2ae35761533613f9d6dcf941a5ef3c7e07b)
2007-10-10r13840: Mark some functions as public.Jelmer Vernooij1-80/+80
(This used to be commit 9a188eb1f48a50d92a67a4fc2b3899b90074059a)
2007-10-10r13741: make the pointer type in pidl handle any size pointer, just in case weAndrew Tridgell1-8/+13
have a 128 bit machine out there somewhere (This used to be commit 4a1b7580a7ea5db7d10c8ee6a5b3950313b7d273)
2007-10-10r13738: added support for a "pointer" type in pidl. This will be used in theAndrew Tridgell1-0/+27
opendb work that will be committed shortly. The pointer type assumes that pointers fit in 64 bits, which is probably OK on all our supported architectures. (This used to be commit d2a2057ea5af140ca88a9c305a38fc5dca9eaafd)
2007-10-10r12016: fixed a valgrind errorAndrew Tridgell1-1/+1
(This used to be commit 482548031e69ba4bddac999ca9f2cb6ad8359953)
2007-10-10r11973: make it easier to find bugsStefan Metzmacher1-1/+5
metze (This used to be commit 247f90c28d845fd2224cb07ed30d3e8122ba5644)
2007-10-10r11676: as tridge uses 0x%llx in his latest commits...Stefan Metzmacher1-8/+2
try to use it every where and see how portable it is metze (This used to be commit 66a94de5ddd09df858a515555c01aa3d4f7d3e96)
2007-10-10r10868: make flag(NDR_PAHEX) possible to use and show the union level in hexStefan Metzmacher1-1/+5
metze (This used to be commit 7efb92adc057ad8a993eb9de66c3806608747104)
2007-10-10r10637: use the correct memory context in the ndr_pull_* functionStefan Metzmacher1-2/+2
to build the talloc hierachie correct metze (This used to be commit afd9dda5773d381550bdb061a8e345b33e1fc371)
2007-10-10r10438: Move portability functions to lib/replace/; replace now simply ensuresJelmer Vernooij1-1/+1
that a given set of (working) POSIX functions are available (without prefixes to their names, etc). See lib/replace/README for a list. Functions that behave different from their POSIX specification (such as sys_select, sys_read, etc) have kept the sys_ prefix. (This used to be commit 29919a71059b29fa27a49b1f5b84bb8881de65fc)
2007-10-10r10346: here are only real ip-addresses valid, prevent dns lookups,Stefan Metzmacher1-1/+3
when the input is invalid metze (This used to be commit 1083204c1f89d9b918015113b6cc2ea423372fe0)
2007-10-10r10339: fix ndr_push_udlongrStefan Metzmacher1-2/+2
metze (This used to be commit a34d0771ce60d4c590c8bc14449cc23d31a6dd2c)
2007-10-10r8612: Parse::Pidl::NDR:Jelmer Vernooij1-192/+0
Values that are deferred but don't contain deferred data don't need NDR_BUFFERS Parse::Pidl::Samba::NDR::Parser: Only use manually written array access functions when the array functions are faster then the autogenerated ones. Makes ndr_basic.c a bit shorter. (This used to be commit cad40815dcfb7cdcab13bd0cd204ef8711605ef3)
2007-10-10r8520: fixed a pile of warnings from the build farm gcc -Wall output onAndrew Tridgell1-1/+1
S390. This is an attempt to avoid the panic we're seeing in the automatic builds. The main fixes are: - assumptions that sizeof(size_t) == sizeof(int), mostly in printf formats - use of NULL format statements to perform dn searches. - assumption that sizeof() returns an int (This used to be commit a58ea6b3854973b694d2b1e22323ed7eb00e3a3f)
2007-10-10r8167: - use the same algorithm than w2k3 for 'unique' pointer valuesStefan Metzmacher1-4/+12
- add a new 'sptr' (simple-full) pointer type to simulate what we need to support pipes like epmapper and mgmt that uses 'ptr' full pointer in their spec - I runned make test and test_w2k3.sh with this, all fine does we have any other pipe using 'unique' pointer where we need 'ptr'? btw: jelmer, what does 'ignore' pointers do? they are allowed in pidl but not implemented! metze (This used to be commit d19068bfb2e3ff5d88bc3b76d5cef93417c7f218)
2007-10-10r8157: add the algorithm for unique pointers that w2k3 uses.Stefan Metzmacher1-0/+6
this is ifdef'ed out currently because we use 'unique' pointers in the epmapper pipe, where we should use 'ptr' full pointers. metze (This used to be commit ccc9d9267a60287eff1fb26132aa7cae3b39dcee)
2007-10-10r6574: send a value for embedded ref pointers,Stefan Metzmacher1-1/+1
(this fixes the doublepointer test against w2k3) but we accept zero pointers on the receive side, because it's used in DRSUAPI metze (This used to be commit 748ab5449bcc5b47f5ceaa83277bf8084c44ec56)
2007-10-10r6519: move string handling functions to a seperate fileStefan Metzmacher1-476/+0
metze (This used to be commit a29d52817ce943c15f6896b74273df739867c8f7)
2007-10-10r5977: Fix uninitialised memory bug in ndr_pull_ref_ptr(). This fixes theJelmer Vernooij1-2/+1
Test_DoublePointer test failure. (This used to be commit 4089d5f67d6e4121056a63ececb13187fd773636)
2007-10-10r5866: Add InitShutdown IDL and torture test.Jelmer Vernooij1-0/+14
Implement push side of NDR_LEN4|NDR_NOTERM strings (pull side was already present) (This used to be commit ea61ec1122841716ed5d90085ba79e7bf691bd6a)
2007-10-10r5796: add ndr_* function for int8 and int16Stefan Metzmacher1-24/+75
metze (This used to be commit 8ac0928a914c1cee3f0493b515f03c6422a8b71a)
2007-10-10r5765: remove unused varStefan Metzmacher1-1/+0
metze (This used to be commit a8f7c3e59f35127b51d4afc551b71f21886f4565)
2007-10-10r5764: add support for embedded ref pointersStefan Metzmacher1-1/+24
metze (This used to be commit 112043b1809a96b1a39ade71ea2885c0d792c79f)
2007-10-10r5427: NTSTATUS is treated by pidl as a 'real' scalar now.Jelmer Vernooij1-2/+2
(This used to be commit fa97059d000859b3d0192ed4a0135770888aba6f)
2007-10-10r5414: - added libcli/wins/, a basic client library for WINS replicationAndrew Tridgell1-1/+32
- added a new IDL type "udlongr", which is like udlong, but with the two uint32 halves reversed - modified the winsrepl.idl to cope with a wider range of packets (This used to be commit bc8d60c918f2e268d591aac464fc6a78c38a4cf9)
2007-10-10r5376: ORPC is NDR specific, so move it to ndr.pm.Jelmer Vernooij1-3/+0
Get rid of register_enum/register_bitmap, etc. (use list of types in ndr.pm instead) (This used to be commit efc2e41b8df3a0171cca57291929fb63760c1662)
2007-10-10r5363: - ndr_%_ptr -> ndr_%_unique_ptrJelmer Vernooij1-2/+2
- ndr_%_relative% -> ndr_%_relative_ptr% - Change pointer_default() default to "unique" (DCE uses "ptr" as default, MIDL doesn't follow the standard and uses "unique") (This used to be commit 53b4ecbcc7a8da67cde1377de6f24a3de6d229e3)
2007-10-10r5361: Rename some functions, add tests to validator.Jelmer Vernooij1-1/+1
(This used to be commit c9d7b88756039a3eb3024c886851e489c46ef67f)
2007-10-10r5286: Some first steps in making the pidl code somewhat more generic for theJelmer Vernooij1-79/+79
various data types: Add ndr_flags argument to all ndr push/pull scalar functions (This used to be commit ab490c0c882bb13de190546c50a0631ecb8255ad)
2007-10-10r5155: define ipv4address as a based IDL type, mapped to a "const char *" inAndrew Tridgell1-0/+34
the header, and defined on the wire as a 4 byte network byte order IP. This means the calling code doesn't have to worry about network byte order conversions. (This used to be commit 72048e37179dd5b9ada0c5280d2f0d8c23d1a17d)
2007-10-10r5139: fix typesStefan Metzmacher1-2/+2
metze (This used to be commit 8507a57b88c6acce84d9ccc580e17c7f96c6d7af)
2007-10-10r5118: added support for node status replies in nbtd. nmblookup -S now works ↵Andrew Tridgell1-1/+1
against Samba4. Also added support for the '*' wildcard name (This used to be commit 2dd7ccf72444db668fa970c3a95de1448baea224)
2007-10-10r5036: changed HYPER_T to the more standard "hyper"Andrew Tridgell1-17/+17
(This used to be commit 1d1a9c11ee681540ef8a1029409bb24fc26f976c)
2007-10-10r5034: - added a type mapping function in pidl, so the type names in our IDLAndrew Tridgell1-26/+26
files don't need to match the type names in the generated headers - with this type mapping we no longer need definitions for the deprecated "int32", "uint8" etc form of types. We can now force everyone to use the standard types int32_t, uint8_t etc. - fixed all the code that used the deprecated types - converted the IDL types "int64" and "uint64" to "dlong" and "udlong". These are the 4 byte aligned 64 bit integers that Microsoft internally define as two 32 bit integers in a structure. After discussions with Ronnie Sahlberg we decided that calling these "int64" was confusing, as it implied a true 8 byte aligned type - fixed all the cases where we incorrectly used things like "NTTIME_hyper" in our C code. The generated API now uses a NTTIME for those. The fact that it is hyper-aligned on the wire is not relevant to the API, and should remain just a IDL property (This used to be commit f86521677d7ff16bdc4815f9524e5286026f10f3)
2007-10-10r4885: added a new NBT client library. Features include:Andrew Tridgell1-11/+23
- structures defined using IDL in nbt.idl - build around our events structure, and talloc - fully async - supports all NBT packet fields as per rfc1002 - easy interfaces for name query and status For the moment there are just a couple of test functions in namequery.c, test_name_query() and test_name_status(). These will be removed when we hook the new library into libcli/ fully The new library will also be a fairly good basis for a nbt server. Although it can't be a server as-is, I wrote it with the needs of a server in mind (for example, extremely scalable idtree based packet handling) (This used to be commit ae7e625bfa4b4a3ee32c64566064b6a4c84ee4b9)
2007-10-10r4676: NTTIME_1sec is a standard NTTIME for the calling codeStefan Metzmacher1-1/+4
as it's already converted in the pull/push code metze (This used to be commit 0d2286ba56fa8d25244a5554e75b5be24eba28b0)
2007-10-10r4673: Fix the IDL for the QuerySecret LSA call.Andrew Bartlett1-2/+25
This call uses a new IDL type, NTTIME_hyper. This is 8-byte aligned, as the name suggests. Expand the QuerySecret LSA calls in RPC-SAMLOGON and RPC-LSA, to validate the behaviour of times, and of the old secrets. Thanks to tridge for spotting the use of HYPER! Andrew Bartlett (This used to be commit 1fed79cb0f2ae7940639d08ef99576559d4cd06e)