summaryrefslogtreecommitdiff
path: root/source4/librpc/ndr/ndr_echo.h
diff options
context:
space:
mode:
authorAndrew Tridgell <tridge@samba.org>2003-11-19 12:03:11 +0000
committerAndrew Tridgell <tridge@samba.org>2003-11-19 12:03:11 +0000
commit1941b5cef04c39ddf89fb236d1d81167c0b25e6b (patch)
tree04aec2a2e8fdcfd61ad0ff418287951ea098d31a /source4/librpc/ndr/ndr_echo.h
parent4e18040236c0f51a526383800fb1de8a65ab3175 (diff)
downloadsamba-1941b5cef04c39ddf89fb236d1d81167c0b25e6b.tar.gz
samba-1941b5cef04c39ddf89fb236d1d81167c0b25e6b.tar.bz2
samba-1941b5cef04c39ddf89fb236d1d81167c0b25e6b.zip
started to expand the echo tests to include more interesting test
cases. We fail one of the alignment tests. (This used to be commit 5bb21e57b844e98cc8f1dc264bc45097c08329e3)
Diffstat (limited to 'source4/librpc/ndr/ndr_echo.h')
-rw-r--r--source4/librpc/ndr/ndr_echo.h58
1 files changed, 52 insertions, 6 deletions
diff --git a/source4/librpc/ndr/ndr_echo.h b/source4/librpc/ndr/ndr_echo.h
index a5f6a2998e..5b5d118e19 100644
--- a/source4/librpc/ndr/ndr_echo.h
+++ b/source4/librpc/ndr/ndr_echo.h
@@ -9,6 +9,7 @@
#define DCERPC_ECHO_SINKDATA 2
#define DCERPC_ECHO_SOURCEDATA 3
#define DCERPC_TESTCALL 4
+#define DCERPC_TESTCALL2 5
struct echo_AddOne {
@@ -56,21 +57,66 @@ struct echo_SourceData {
};
-struct echo_ServerRole {
- uint16 role;
+struct TestCall {
+ struct {
+ const char *s1;
+ } in;
+
+ struct {
+ const char *s2;
+ } out;
+
};
-union echo_PolicyInformation {
-/* [case(6)] */ struct echo_ServerRole role;
+struct echo_info1 {
+ uint8 v;
};
-struct TestCall {
+struct echo_info2 {
+ uint16 v;
+};
+
+struct echo_info3 {
+ uint32 v;
+};
+
+struct echo_info4 {
+ HYPER_T v;
+};
+
+struct echo_info5 {
+ uint8 v1;
+ HYPER_T v2;
+};
+
+struct echo_info6 {
+ uint8 v1;
+ struct echo_info1 info1;
+};
+
+struct echo_info7 {
+ uint8 v1;
+ struct echo_info4 info4;
+};
+
+union echo_Info {
+/* [case(1)] */ struct echo_info1 info1;
+/* [case(2)] */ struct echo_info2 info2;
+/* [case(3)] */ struct echo_info3 info3;
+/* [case(4)] */ struct echo_info4 info4;
+/* [case(5)] */ struct echo_info5 info5;
+/* [case(6)] */ struct echo_info6 info6;
+/* [case(7)] */ struct echo_info7 info7;
+};
+
+struct TestCall2 {
struct {
uint16 level;
} in;
struct {
- union echo_PolicyInformation *info;
+ union echo_Info *info;
+ NTSTATUS result;
} out;
};