Lines Matching refs:byte_count
454 size_t byte_count = sizeof(lm) + sizeof(nt); in smb_send_setup() local
455 byte_count += strlen(smbc->user) + strlen(smbc->domain); in smb_send_setup()
456 byte_count += strlen(OS) + strlen(CLIENTNAME) + 4; /* 4 null chars */ in smb_send_setup()
457 if(byte_count > sizeof(msg.bytes)) in smb_send_setup()
487 byte_count = p - msg.bytes; in smb_send_setup()
488 msg.byte_count = smb_swap16((unsigned short)byte_count); in smb_send_setup()
491 sizeof(msg) - sizeof(msg.bytes) + byte_count); in smb_send_setup()
501 size_t byte_count = strlen(conn->host.name) + strlen(smbc->share); in smb_send_tree_connect() local
502 byte_count += strlen(SERVICENAME) + 5; /* 2 nulls and 3 backslashes */ in smb_send_tree_connect()
503 if(byte_count > sizeof(msg.bytes)) in smb_send_tree_connect()
515 byte_count = p - msg.bytes; in smb_send_tree_connect()
516 msg.byte_count = smb_swap16((unsigned short)byte_count); in smb_send_tree_connect()
519 sizeof(msg) - sizeof(msg.bytes) + byte_count); in smb_send_tree_connect()
526 size_t byte_count; in smb_send_open() local
534 byte_count = strlen(req->path); in smb_send_open()
535 msg.name_length = smb_swap16((unsigned short)byte_count); in smb_send_open()
545 msg.byte_count = smb_swap16((unsigned short) ++byte_count); in smb_send_open()
549 sizeof(msg) - sizeof(msg.bytes) + byte_count); in smb_send_open()
613 msg->byte_count = smb_swap16((unsigned short) (upload_size + 1)); in smb_send_write()