diff options
author | Stefan Metzmacher <metze@samba.org> | 2008-08-13 09:45:44 +0200 |
---|---|---|
committer | Stefan Metzmacher <metze@samba.org> | 2008-08-14 13:13:50 +0200 |
commit | 4a214dba301474c48f2ae45194b0e363440ee01d (patch) | |
tree | 5113a76eb394cb73aab6fda418a51ae9ce47bf57 /source4 | |
parent | f086e796d6a933b95e36f5638b39ee261fb6a784 (diff) | |
download | samba-4a214dba301474c48f2ae45194b0e363440ee01d.tar.gz samba-4a214dba301474c48f2ae45194b0e363440ee01d.tar.bz2 samba-4a214dba301474c48f2ae45194b0e363440ee01d.zip |
smb2srv: use defines instead of hex values
metze
(This used to be commit 7c4abf6614c47471ae005a12abe27d85890d867f)
Diffstat (limited to 'source4')
-rw-r--r-- | source4/smb_server/smb2/receive.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/source4/smb_server/smb2/receive.c b/source4/smb_server/smb2/receive.c index cfd6c1d01a..007125c4c4 100644 --- a/source4/smb_server/smb2/receive.c +++ b/source4/smb_server/smb2/receive.c @@ -79,12 +79,12 @@ struct smb2srv_request *smb2srv_init_request(struct smbsrv_connection *smb_conn) NTSTATUS smb2srv_setup_reply(struct smb2srv_request *req, uint16_t body_fixed_size, bool body_dynamic_present, uint32_t body_dynamic_size) { - uint32_t flags = 0x00000001; + uint32_t flags = SMB2_HDR_FLAG_REDIRECT; uint32_t pid = IVAL(req->in.hdr, SMB2_HDR_PID); uint32_t tid = IVAL(req->in.hdr, SMB2_HDR_TID); if (req->pending_id) { - flags |= 0x00000002; + flags |= SMB2_HDR_FLAG_ASYNC; pid = req->pending_id; tid = 0; } @@ -545,7 +545,7 @@ void smb2srv_cancel_recv(struct smb2srv_request *req) flags = IVAL(req->in.hdr, SMB2_HDR_FLAGS); pending_id = IVAL(req->in.hdr, SMB2_HDR_PID); - if (!(flags & 0x00000002)) { + if (!(flags & SMB2_HDR_FLAG_ASYNC)) { /* TODO: what to do here? */ goto done; } |