Questions tagged [tftp]

Trivial File Transfer Protocol (TFTP) is a file transfer protocol notable for its simplicity.

TFTP is a very simple and lightweight file transfer protocol.
It only supports to read and to write files from/to a remote. Even a directory listing is not supported. It is sometimes used to boot devices without data storage or to update firmware.
TFTP is build on top of UDP and using port 69.

215 questions
1
vote
1 answer

How can I use SIGALRM to abort my server connection?

I am using fork() to implement a TFTP server right now. If my server does not hear from another party for 20s, how can I use SIGALRM to abort the connection? Here is a part of my code: while (1) { pid = fork(); if ( pid == -1 ) { …
1
vote
3 answers

Old-duplicate data packets in TFTP protocol

I found this question in Book called An Introduction to Computer Networks by Peter L Dordal, and I met with this question which I found it a little bit tricky: In the TFTP protocol: If the client changes its port number on a subsequent connection,…
user8241522
  • 47
  • 1
  • 7
1
vote
1 answer

(Python/TFTP-Server) how to listen to an non (yet) existing IP-address (RNDIS)?

Hy folks, my problem: I want to start a (tftp) server for an non-existing IP-address. the server is meant for USB/RNDIS where its IP-address by nature only is existing when there is actual network-traffic going on -- but I want to start the server…
Jörg
  • 45
  • 6
1
vote
1 answer

Incorrect source port (69) in request reply. TFTP sendFile

I'm tring to execute this TFTP DOS send command by TFTP Client in Java: tftp -i 192.168.1.13 put file1.romz file1.romz It means to send the file file1.romz to host: 192.168.1.13, in binary way and rename the file when arrives to file1.romz. About…
1
vote
0 answers

TFTP Connect Request Failed

I am trying to setup a TFTP server on Windows Server 2012R2 for a university project, and I am running into an issue when trying to GET or PUT anything on the server. The command tftp -i 192.168.2.10 put C:\test.txt on the server itself results in…
1
vote
1 answer

is the logic behind my trivial tftp client flawed?

I'm still a student so I might have missed something really obvious. So I am stressing out about this so much. But anyway here's my TFTP python code, all it does is downloading a text-file from our lecturer's server. The file generated by it looks…
M B
  • 69
  • 11
1
vote
1 answer

Is a software image loaded into non-volatile RAM when using tftpboot from U-boot?

I have a Xilinx development board connected to a RHEL workstation. I have U-boot loaded over JTAG and connect to it with minicom. Then I tftpboot the helloworld standalone application. Where do these images go? I understand I am specifying a…
user_ABCD
  • 347
  • 2
  • 15
1
vote
1 answer

Python NamedTemporaryFile - ValueError When Reading

I am having an issue writing to a NamedTemporaryFile in Python and then reading it back. The function downloads a file via tftpy to the temp file, reads it, hashes the contents, and then compares the hash digest to the original file. The function…
Kin3TiX
  • 708
  • 1
  • 5
  • 18
1
vote
2 answers

How to check status of connection of a TFTP connection?

I want to check whether or not this connection is made. I am fairly new with node js and tftp so I am not sure how to check the connection. Can i return some kind of status? var tftp= require('tftp'); var client = tftp.createClient({ host:…
lord
  • 59
  • 1
  • 3
  • 15
1
vote
1 answer

uint16_t in array of char

For a school project, I have to develop a TFTP server in C. I have to build a packet in a array of char like this : 2 bytes 2 bytes n bytes +--------+-----------+--------+ | CODE | Block # | Data | +--------+-----------+--------+ Here…
Mathieu
  • 311
  • 2
  • 12
1
vote
1 answer

Parsing a string of a TFTP packet in C using pointers

I receive TFTP packets (read requests) using recvfrom with a 512 byte buffer. The string (file name to be transfered) starts at the third byte of the buffer. The first two are reserverd for the opcode. I wrote the following function: char *…
paranoidhominid
  • 1,379
  • 2
  • 8
  • 14
1
vote
0 answers

recv() function in TFTP

My question is this: During TFTP, when a client connects to a server, the default port for intitial data transmission is port 69. When the server receives a WRQ (write request) packet from the client, it returns an ACK(acknowledgement) packet.…
MDK
  • 57
  • 1
  • 8
1
vote
2 answers

Can't connect to docker published port for tftp

i'm desperately trying to run tftp-hpa in a docker container. I built an image from dockerfile and start it with: docker run -v /tmp:/srv/tftp -d -p 69:69/udp -t tftp_server It's up and running and i can access the server via the virtual docker…
Peter Power
  • 121
  • 3
  • 7
1
vote
0 answers

TFTP boot of a bare-metal program on imx53-QSB

I'm working on a bare-metal program on my imx53-QSB. I wrote de program and build it correctly and succeeded to boot it form the SD card. But now I want to boot using TFTP. I put U-Boot on my SD card, and created my TFTP server on my computer in…
EngineerN
  • 133
  • 2
  • 11
1
vote
1 answer

Detecting incoming port for TFTP data?

I'm working on implementing a TFTP client (UDP socket). Currently I have to switch off the entire firewall on my Windows 8 machine or else the data doesn't reach the TFTP client. The outgoing connect request happens on port 69, but the first data…
user1884325
  • 2,530
  • 1
  • 30
  • 49