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
Andreas Schneider fa6992eae5 torture: Update ndr README.
Reviewed-by: Günther Deschner <gd@samba.org>

Autobuild-User(master): Günther Deschner <gd@samba.org>
Autobuild-Date(master): Fri Mar 15 13:51:51 CET 2013 on sn-devel-104
2013-03-15 13:51:51 +01:00
..
atsvc.c source4/torture/ndr: Fix prototypes for all functions. 2011-03-19 03:20:05 +01:00
backupkey.c source4/torture/ndr: Fix prototypes for all functions. 2011-03-19 03:20:05 +01:00
dfs.c source4/torture/ndr: Fix prototypes for all functions. 2011-03-19 03:20:05 +01:00
dfsblob.c torture-ndr: fixed NDR tests for DFS blobs 2011-09-08 03:35:27 +02:00
drsblobs.c torture-drs: fixed NDR tests for DRS blobs 2011-09-08 03:35:27 +02:00
drsuapi.c source4/torture/ndr: Fix prototypes for all functions. 2011-03-19 03:20:05 +01:00
epmap.c source4/torture/ndr: Fix prototypes for all functions. 2011-03-19 03:20:05 +01:00
lsa.c source4/torture/ndr: Fix prototypes for all functions. 2011-03-19 03:20:05 +01:00
nbt.c s4-torture: verify #8373 and add ndr nbt tests for LOGON_PRIMARY_QUERY nbt_netlogon_requests. 2012-05-29 15:49:10 +02:00
ndr.c s4-torture: make sure to deal with the highest relative pointer offset correctly. 2013-02-01 19:38:07 +01:00
ndr.h s4-torture: allow to do ndr tests with flags, not only ndr_flags. 2013-01-16 11:42:29 +01:00
netlogon.c source4/torture/ndr: Fix prototypes for all functions. 2011-03-19 03:20:05 +01:00
ntlmssp.c torture-ndr: fixed NDR tests for NTLMSSP blobs 2011-09-08 03:35:27 +02:00
ntprinting.c torture: Add ntprinting latin1 test. 2013-03-15 12:11:03 +01:00
README torture: Update ndr README. 2013-03-15 13:51:51 +01:00
samr.c samr: filterModuleName is a lsa_String in userPwdChangeFailureInformation. 2011-11-09 00:41:13 +01:00
spoolss.c s4-torture: add ndr64 spoolss_SetPrinter ndr test. 2013-01-17 17:11:37 +01:00
string.c s4-torture: fixed a ndr string error 2011-09-05 11:19:25 +02:00
winreg.c source4/torture/ndr: Fix prototypes for all functions. 2011-03-19 03:20:05 +01: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.