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
0
votes
1 answer

Sending TFTP packets in C++

I am relatively new to C++, so please forgive my lack of knowledge. I need help regarding TFTP packets. Below is the code I am using to generate a WRQ (write request package) and DATA packet which will be sent to a designated server. bool…
Daffy
  • 1
  • 1
0
votes
1 answer

Tftpd64 unable to transfer file to client

I am using Tftpd64 as server for transferring file to client. Now when client request the file then i see below error in log viewer window of Tftpd64. Connection received from 2a01:7e00:e000:11c:3546:7805:766:7110 on port 61445 [23/06…
Jayesh Bhoi
  • 24,694
  • 15
  • 58
  • 73
0
votes
1 answer

TFTP Client (based on ENET) won't connect to remote TFTP server

I'm trying to implement a TFTP client in C (Windows, Visual Studio 2005). The TFTP client is supposed to connect to a remote TFTP server address on port 69. The TFTP client is using the ENET API for the networking stuff, but I can't get it to…
user1884325
  • 2,530
  • 1
  • 30
  • 49
0
votes
1 answer

Regex for TFTP to recreate subnets

I use file remapping in TFTP to organize the files depending of the clients which will be needing them. Currently, all the files are in directories depending of the IP of the clients, and the corresponding rule is : r .* \i/\0 But if I have N…
Shan-x
  • 1,146
  • 6
  • 19
  • 44
0
votes
0 answers

Download from tftp server on ubuntu ( boost::asio c++)

I'm looking for an example of an TFTP client running on Linux platform. I'm trying do this problem using boost::asio here's the code: void packi16 (char *buf, unsigned short int i){ //change the host order to network byte order (16bit) i =…
Astein
  • 1
  • 2
0
votes
1 answer

Scala REGEX match for MAC address

Good evening Stackoverflow, I am stuck in a spot where I can't get Scala regex matches to play nice, here is my code private def handle_read(packet: TFTPReadRequestPacket, tftp_io: TFTP): Unit = { val MAC_REGEX =…
Liam Haworth
  • 848
  • 1
  • 9
  • 27
0
votes
2 answers

Issue With Timeout and Re-transmission in TFTP

I wrote a simple TFTP server that only handles read requests (RRQ) and it is working fine. The server is supposed to re-transmit the current data packet again, if no ACK is received within 5 seconds. The server should also re-transmit the packet…
user3490561
  • 446
  • 3
  • 8
  • 20
0
votes
2 answers

TFTP Server - Issue With Threaded Version

I created a simple tftp server that only handles read requests (RRQ). Everything was working fine until I started to make a multi-threaded version of the server. In the application, I simply receive requests in the main thread and I then forward the…
user3490561
  • 446
  • 3
  • 8
  • 20
0
votes
1 answer

TFTP Server Is Not Sending DATA packets

I wrote a simple tftp server that only handles read requests (RRQ) from clients. The problem is that the server seems not to be sending DATA packets to the client. I made sure that the server is not sending the DATA packet through checking the…
user3490561
  • 446
  • 3
  • 8
  • 20
0
votes
1 answer

Is tftpd-hpa not a process in Linux?

I installed tftpd-hpa and tftp in Ubuntu 12.04 LTS. when I check the status of tftpd-hpa with service command, it shows running. zlf@ubuntu:~$ service tftpd-hpa status tftpd-hpa start/running But when I check its process, there is no running PID to…
siikee
  • 63
  • 9
0
votes
1 answer

How to get a backup of embedded Linux rootfs?

I have an embedded Linux environment working well and want save the rootfs part, then to flash others new board with empty nand. So, what I tried. From barebox (before boot of the kernell), I put /dev/nand0.root.bb to the tftp server of my PC. Then…
vincenet
  • 41
  • 6
0
votes
1 answer

windows Deployment TFTP transfer timeout

I am hoping to get some advice on some of the WDS issues we have been having over the past 4-5 months We have a relativity simple network topology Out workstations on one subnet and servers across a WAN link on a separate subnet with a juniper…
Steve Hobbs
  • 131
  • 1
  • 5
  • 14
0
votes
1 answer

Android copy file APK to real device through tftp ( use Window)

My task is copy file apk to my device, and install it. this device only have board and screen. Can not copy file to this device like tranfer file through USB . I think may be some one have done it already. Please teach me how to solve it. Ah, I am…
famfamfam
  • 396
  • 3
  • 8
  • 31
0
votes
2 answers

Covert char[2] to uint16_t for socket programming?

I am writing a tftp client. But when i convert the block number as follows: uint16_t blockN = buffer[2]<<8 | buffer[3]; after 127, i am getting 65408 as blockN. What might be the problem here? Thank you for your answers.
ahmetsarias
  • 241
  • 1
  • 15
0
votes
1 answer

uboot tftpboot always timeout (using DM9000A NIC)

I use uboot and add tftpboot command into it.But it doesn't work well, though it can transfer data, there are always some timeout during the whole transmission. Console shows like this My ethernet topology is : board with uboot connect to my router,…
demonguy
  • 1,977
  • 5
  • 22
  • 34