lists.openwall.net   lists  /  announce  owl-users  owl-dev  john-users  john-dev  passwdqc-users  yescrypt  popa3d-users  /  oss-security  kernel-hardening  musl  sabotage  tlsify  passwords  /  crypt-dev  xvendor  /  Bugtraq  Full-Disclosure  linux-kernel  linux-netdev  linux-ext4  linux-hardening  linux-cve-announce  PHC 
Open Source and information security mailing list archives
 
Hash Suite: Windows password security audit tool. GUI, reports in PDF.
[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Date:	Mon, 28 Jul 2008 19:52:42 -0500
From:	Jay Cliburn <jacliburn@...lsouth.net>
To:	Ian Jeffray <ian@...fray.co.uk>
Cc:	netdev@...r.kernel.org
Subject: Re: sendfile() behavior while troubleshooting netdevice

On Tue, 29 Jul 2008 01:27:09 +0100
Ian Jeffray <ian@...fray.co.uk> wrote:


> Because you send() a strlen() amount of data for the filesize,
> but recv() a sizeof(cfsize) amount of data?   I supect 8 bytes
> is being sucked up in your first recv().  Try sending a fixed
> size block for the file size.

Thanks for the reply.  I changed strlen(fsize) to sizeof(fsize) in
sfserver.c; no difference.

[jcliburn@...rel ~]$ ./sfsrv
sending file 'testfile' size 1600 bytes
1600 bytes sent
sending file 'testfile' size 1600 bytes
1600 bytes sent
sending file 'testfile' size 1600 bytes
1600 bytes sent
sending file 'testfile' size 1600 bytes
1600 bytes sent


[jcliburn@...rrow ~]$ ./sfcli 192.168.1.6 testfile
connected...
file size is 1600 bytes
received 1592 bytes
error: expected 1600, received 1592
[jcliburn@...rrow ~]$ ./sfcli 192.168.1.6 testfile
connected...
file size is 1600 bytes
received 1600 bytes
[jcliburn@...rrow ~]$ ./sfcli 192.168.1.6 testfile
connected...
file size is 1600 bytes
received 1592 bytes
error: expected 1600, received 1592
--
To unsubscribe from this list: send the line "unsubscribe netdev" in
the body of a message to majordomo@...r.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html

Powered by blists - more mailing lists