cURL / Mailing Lists / curl-users / Single Mail

curl-users

tftp+ --local-port ==Error

From: Rinnewitz, Kim Oliver <kim.rinnewitz_at_student.uni-siegen.de>
Date: Thu, 4 Oct 2007 00:19:56 +0200

Hello,

I am trying to upload a file to a tftp-Server with the --local-port option set:

curl --local-port 34444 -T /home/kim/test.txt tftp://balh.com:34562/test.txt

and I get:

curl: (7) bind() failed; Invalid argument

This looks like a bug to me. It also happens, if I specify a port range (i.e. curl --local-port 34444-34449 -T /home/kim/test.txt tftp://balh.com:34562/test.txt).

When I leave out the --local-port option
(i.e. curl -T /home/kim/test.txt tftp://balh.com:34562/test.txt), it
works.

It would be great if this gets fixed because I need the possibility to set the local port manually.

My Version-Info:

Kernel (I am on Ubuntu 7.04):
kim_at_kim:~$ uname -a
Linux kim 2.6.20-16-generic #2 SMP Sun Sep 23 19:50:39 UTC 2007 i686 GNU/Linux

Curl:
kim_at_kim:~$ curl --version
curl 7.17.0 (i686-pc-linux-gnu) libcurl/7.17.0 zlib/1.2.3
Protocols: tftp ftp telnet dict http file
Features: IPv6 Largefile libz

Thanks,

Kim
Received on 2007-10-04