1
0
mirror of https://github.com/samba-team/samba.git synced 2024-12-27 03:21:53 +03:00
samba-mirror/source4/torture/ndr
Gary Lockyer 5e44b7cdfc Fix clang 9 constant-conversion warnings
Signed-off-by: Gary Lockyer <gary@catalyst.net.nz>
Reviewed-by: Andreas Schneider <asn@samba.org>
2020-05-08 09:31:31 +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 s4-torture: add some NDR tests for validating ndr_push_charset behavior. 2017-01-24 10:53:17 +01:00
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
nbt.c
ndr.c s4-torture: add ndr svcctl testsuite 2020-03-09 15:00:31 +00:00
ndr.h librpc dnsp test: Ensure length matches union selector 2019-12-12 00:35:30 +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
README
samr.c
spoolss.c s4-torture: add more NDR tests for GetCorePrinterDrivers 2017-01-24 14:42:34 +01:00
string.c ndr tests: silence a harmless warning 2017-03-02 04:35:14 +01:00
svcctl.c librpc: fix IDL for svcctl_ChangeServiceConfigW 2020-03-09 15:00:31 +00:00
winreg.c
winspool.c
witness.c

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.