diff options
author | Stefan Metzmacher <metze@samba.org> | 2004-02-03 14:56:07 +0000 |
---|---|---|
committer | Stefan Metzmacher <metze@samba.org> | 2004-02-03 14:56:07 +0000 |
commit | 0b4da9d7e069a5e32d9706ee12cde7fe7625270d (patch) | |
tree | 4ec8e4be06f9da201b324008db320e84f741efd6 /source4/librpc | |
parent | f848aff0c28fcbacb4290e67b7c217b1aaa0fade (diff) | |
download | samba-0b4da9d7e069a5e32d9706ee12cde7fe7625270d.tar.gz samba-0b4da9d7e069a5e32d9706ee12cde7fe7625270d.tar.bz2 samba-0b4da9d7e069a5e32d9706ee12cde7fe7625270d.zip |
- add 'print' to the DCERPC binding strings
e.g.
ncacn_np:myserver:[samr,sign,print]
will now enable the packet debugging
and the debugging is not bound anymore to the debuglevel >= 2
in the torture tests
- also the dcesrv_remote module now supports debugging of the packets
use the 'dcerpc_remote:binding' smb.conf parameter.
metze
(This used to be commit 40abf3c584efed7f977ddd688ea064540e5a5b13)
Diffstat (limited to 'source4/librpc')
-rw-r--r-- | source4/librpc/ndr/ndr.c | 4 | ||||
-rw-r--r-- | source4/librpc/rpc/dcerpc_util.c | 1 |
2 files changed, 1 insertions, 4 deletions
diff --git a/source4/librpc/ndr/ndr.c b/source4/librpc/ndr/ndr.c index 2af63c7676..b44bf11c15 100644 --- a/source4/librpc/ndr/ndr.c +++ b/source4/librpc/ndr/ndr.c @@ -347,10 +347,6 @@ void ndr_print_function_debug(void (*fn)(struct ndr_print *, const char *, int , { struct ndr_print ndr; - if (!DEBUGLVL(2)) { - return; - } - ndr.mem_ctx = talloc_init("ndr_print_function"); if (!ndr.mem_ctx) return; ndr.print = ndr_print_debug_helper; diff --git a/source4/librpc/rpc/dcerpc_util.c b/source4/librpc/rpc/dcerpc_util.c index 1ef776125f..96f0b959e7 100644 --- a/source4/librpc/rpc/dcerpc_util.c +++ b/source4/librpc/rpc/dcerpc_util.c @@ -276,6 +276,7 @@ static const struct { {"sign", DCERPC_SIGN}, {"seal", DCERPC_SEAL}, {"validate", DCERPC_DEBUG_VALIDATE_BOTH}, + {"print", DCERPC_DEBUG_PRINT_BOTH}, {"bigendian", DCERPC_PUSH_BIGENDIAN} }; |