summaryrefslogtreecommitdiff
path: root/source3/aparser/vluke.c
diff options
context:
space:
mode:
authorAndrew Tridgell <tridge@samba.org>2000-05-16 12:43:53 +0000
committerAndrew Tridgell <tridge@samba.org>2000-05-16 12:43:53 +0000
commit128026c9a2de83a8ac6214e733fa871440c6b77f (patch)
treefca86e76f0020a2b16549cb0ab2a9dae29d61ac6 /source3/aparser/vluke.c
parentf3a3a05ade784ff6906e5c8b132c9440a8db44e5 (diff)
downloadsamba-128026c9a2de83a8ac6214e733fa871440c6b77f.tar.gz
samba-128026c9a2de83a8ac6214e733fa871440c6b77f.tar.bz2
samba-128026c9a2de83a8ac6214e733fa871440c6b77f.zip
added the ".trailer" type, to mark where a packet turns into a trailer
this now gives us enough to parse complete function calls, including the return values (This used to be commit ca8f1e92adf3603ad15f73277576cc9178bb4d74)
Diffstat (limited to 'source3/aparser/vluke.c')
-rw-r--r--source3/aparser/vluke.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/source3/aparser/vluke.c b/source3/aparser/vluke.c
index 312eeceb2c..f5612a773d 100644
--- a/source3/aparser/vluke.c
+++ b/source3/aparser/vluke.c
@@ -33,7 +33,8 @@ int main(int argc, char *argv[])
ps.io = UNMARSHALL;
il = (TEST_STRUCT *)malloc(sizeof(*il));
ret = TEST_FUNC(desc, &ps, 1, il, PARSE_SCALARS|PARSE_BUFFERS);
- printf("\nret=%s\n\n\n", ret?"OK":"Bad");
+ printf("\nret=%s\n", ret?"OK":"Bad");
+ printf("Trailer is %d bytes\n\n", ps.grow_size - ps.data_offset);
dump_data(0, ps.data_p, ps.grow_size);
return !ret;
}