1
0
mirror of https://github.com/samba-team/samba.git synced 2024-12-23 17:34:34 +03:00
samba-mirror/source4/torture/ndr
Günther Deschner bd5dce667d s4-torture: add odj ndr testsuite
Guenther

Signed-off-by: Guenther Deschner <gd@samba.org>
Reviewed-by: Alexander Bokovoy <ab@samba.org>
2021-07-14 16:49:29 +00:00
..
atsvc.c
backupkey.c
cabinet.c ndr: Free memory in torture test to satisfy sanitizer 2019-08-08 10:08:32 +00:00
charset.c
clusapi.c ndr: Free memory in torture test to satisfy sanitizer 2019-08-08 10:08:32 +00:00
dfs.c
dfsblob.c
dnsp.c Fix clang 9 constant-conversion warnings 2020-05-08 09:31:31 +00:00
drsblobs.c
drsuapi.c
epmap.c
krb5pac.c
lsa.c torture/ndr: make check functions typesafe 2021-07-08 09:30:40 +00:00
nbt.c
ndr.c s4-torture: add odj ndr testsuite 2021-07-14 16:49:29 +00:00
ndr.h torture/ndr: add more details to the test names 2021-07-08 09:30:40 +00:00
negoex.c
netlogon.c s4-torture: add netr_LogonGetDomainInfo NDR(64) tests 2019-09-20 02:32:44 +00:00
ntlmssp.c
ntprinting.c
odj.c s4-torture: add odj ndr testsuite 2021-07-14 16:49:29 +00:00
README
samr.c
spoolss.c
string.c
svcctl.c librpc: fix IDL for svcctl_ChangeServiceConfigW 2020-03-09 15:00:31 +00:00
winreg.c
winspool.c
witness.c witness.idl: fix length calculation for witness_IPaddrInfoList 2021-07-08 09:30:40 +00:00

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.