summaryrefslogtreecommitdiffstats
path: root/source4/torture/ndr/README
diff options
context:
space:
mode:
authorDaniel Baumann <daniel.baumann@progress-linux.org>2024-05-05 17:47:29 +0000
committerDaniel Baumann <daniel.baumann@progress-linux.org>2024-05-05 17:47:29 +0000
commit4f5791ebd03eaec1c7da0865a383175b05102712 (patch)
tree8ce7b00f7a76baa386372422adebbe64510812d4 /source4/torture/ndr/README
parentInitial commit. (diff)
downloadsamba-upstream.tar.xz
samba-upstream.zip
Adding upstream version 2:4.17.12+dfsg.upstream/2%4.17.12+dfsgupstream
Signed-off-by: Daniel Baumann <daniel.baumann@progress-linux.org>
Diffstat (limited to 'source4/torture/ndr/README')
-rw-r--r--source4/torture/ndr/README21
1 files changed, 21 insertions, 0 deletions
diff --git a/source4/torture/ndr/README b/source4/torture/ndr/README
new file mode 100644
index 0000000..c7c127d
--- /dev/null
+++ b/source4/torture/ndr/README
@@ -0,0 +1,21 @@
+use
+ hexdump -v -e '12/1 "0x%02x, " "\n"' infile|outfile
+
+to import ndr dumps
+
+
+Or use gdb:
+
+(gdb) b dump_printer
+Breakpoint 1 at 0x49c92f: file ../source3/utils/net_printing.c, line 158.
+(gdb) cond 1 strcmp(key_name, "s0bc") == 0
+(gdb) run
+Breakpoint 1, dump_printer (mem_ctx=0x700a20, key_name=0x11fb8f9 "s0bc", data=0x18f93d0 "H\032", length=1284, do_string_conversion=true) at ../source3/utils/net_printing.c:158
+158 printf("found printer: %s\n", key_name);
+
+-> Now use x/<length in byte>bx
+
+(gdb) x/1284bx data
+
+This prints data as hex values. 1284 is the length in byte (see the length
+argument of the function). The b indicates byte.