diff options
author | Jelmer Vernooij <jelmer@samba.org> | 2008-11-03 00:15:27 +0100 |
---|---|---|
committer | Jelmer Vernooij <jelmer@samba.org> | 2008-11-03 00:15:27 +0100 |
commit | c5a70cab25de3b0acd89ba12150b9077bb59cbb5 (patch) | |
tree | da8887ad758b62641006185c64b7d46c6c650f68 /source3/include/smb_macros.h | |
parent | 1575cae7e53a5738d7e2530e855aef68ca971706 (diff) | |
parent | 7808a2594c22ff452d54d2e9e272aa60e4b7e482 (diff) | |
download | samba-c5a70cab25de3b0acd89ba12150b9077bb59cbb5.tar.gz samba-c5a70cab25de3b0acd89ba12150b9077bb59cbb5.tar.bz2 samba-c5a70cab25de3b0acd89ba12150b9077bb59cbb5.zip |
Merge branch 'master' of ssh://git.samba.org/data/git/samba
Diffstat (limited to 'source3/include/smb_macros.h')
-rw-r--r-- | source3/include/smb_macros.h | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/source3/include/smb_macros.h b/source3/include/smb_macros.h index 89d8994eaf..46ca236553 100644 --- a/source3/include/smb_macros.h +++ b/source3/include/smb_macros.h @@ -131,6 +131,8 @@ /* the remaining number of bytes in smb buffer 'buf' from pointer 'p'. */ #define smb_bufrem(buf, p) (smb_buflen(buf)-PTR_DIFF(p, smb_buf(buf))) +#define smbreq_bufrem(req, p) (req->buflen - PTR_DIFF(p, req->buf)) + /* Note that chain_size must be available as an extern int to this macro. */ #define smb_offset(p,buf) (PTR_DIFF(p,buf+4) + chain_size) |