• Home
  • Raw
  • Download

Lines Matching refs:smb_swap16

139 static unsigned short smb_swap16(unsigned short x)  in smb_swap16()  function
157 # define smb_swap16(x) (x) macro
355 h->flags2 = smb_swap16(SMB_FLAGS2_IS_LONG_NAME | SMB_FLAGS2_KNOWS_LONG_NAME); in smb_format_message()
356 h->uid = smb_swap16(smbc->uid); in smb_format_message()
357 h->tid = smb_swap16(req->tid); in smb_format_message()
359 h->pid_high = smb_swap16((unsigned short)(pid >> 16)); in smb_format_message()
360 h->pid = smb_swap16((unsigned short) pid); in smb_format_message()
458 msg.max_buffer_size = smb_swap16(MAX_MESSAGE_SIZE); in smb_send_setup()
459 msg.max_mpx_count = smb_swap16(1); in smb_send_setup()
460 msg.vc_number = smb_swap16(1); in smb_send_setup()
463 msg.lengths[0] = smb_swap16(sizeof(lm)); in smb_send_setup()
464 msg.lengths[1] = smb_swap16(sizeof(nt)); in smb_send_setup()
474 msg.byte_count = smb_swap16((unsigned short)byte_count); in smb_send_setup()
501 msg.byte_count = smb_swap16((unsigned short)byte_count); in smb_send_tree_connect()
520 msg.name_length = smb_swap16((unsigned short)byte_count); in smb_send_open()
530 msg.byte_count = smb_swap16((unsigned short) ++byte_count); in smb_send_open()
544 msg.fid = smb_swap16(req->fid); in smb_send_close()
567 msg.fid = smb_swap16(req->fid); in smb_send_read()
570 msg.min_bytes = smb_swap16(MAX_PAYLOAD_SIZE); in smb_send_read()
571 msg.max_bytes = smb_swap16(MAX_PAYLOAD_SIZE); in smb_send_read()
593 msg->fid = smb_swap16(req->fid); in smb_send_write()
596 msg->data_length = smb_swap16((unsigned short) upload_size); in smb_send_write()
597 msg->data_offset = smb_swap16(sizeof(*msg) - sizeof(unsigned int)); in smb_send_write()
598 msg->byte_count = smb_swap16((unsigned short) (upload_size + 1)); in smb_send_write()
705 smbc->uid = smb_swap16(h->uid); in smb_connection_state()
781 req->tid = smb_swap16(h->tid); in smb_request_state()
792 req->fid = smb_swap16(smb_m->fid); in smb_request_state()