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
3 answers

how to over come Little endian to big endian problem in TFTP client and server communication.?

i am creating WRQ packet for TFTP client in cPP. the code works fine in Little endian system (PC) and have proble m with Big Endian system while creating packets. the code is #define TFTP_OPCODE_READ 1 #define TFTP_OPCODE_WRITE 2 …
Balamurugan
  • 2,259
  • 8
  • 33
  • 48
1
vote
0 answers

RaspberryPi 4: tftp boot issues with udpsvd / qemu

I build a minimal linux system with buildroot to provide some services like tftp and a other things. From that i want to boot my rpi4 over network with initramfs. Currently i do this from an ubuntu virtual machine, but the footprint is a little bit…
wolfbiker1
  • 89
  • 4
1
vote
1 answer

What's the purpose of using bind() when SOCK_DGRAM is used?

Here is a piece of code snippet from tftp void initsock(int af) { struct sockaddr_storage s_in; if (f >= 0) close(f); f = socket(af, SOCK_DGRAM, 0); if (f < 0) { perror("tftp: socket"); exit(3); } …
HQW.ang
  • 119
  • 8
1
vote
0 answers

TFTPD Failing with "unknown option -?"

I am trying to run a PXE server on VM and another client on another VM for testing. I am using tftpd-hpa to host a tftp server. This is failing with the following error : unknown option -? ... Failed t start LSB: HPA's tftp server. This is the…
Vishesh
  • 30
  • 5
1
vote
1 answer

Master boot image but using different hostnames

I have a large volume of devices that boot from a TFTP server and mount their filesystem as a read-only NFS share. All these devices boot from the same custom raspbian image, which saves us a lot of space as we don't have to store one image per…
1
vote
0 answers

How is a TFTP server supposed to handle duplicate ACK messages and duplicate DATA messages from a client?

I'm creating a TFTP server and trying to figure out how I need to handle duplicate ACK messages received from the client and duplicate DATA messages received from the client based on the TFTP protocol: https://www.rfc-editor.org/rfc/rfc1350#ref-4
lauren
  • 11
  • 1
1
vote
1 answer

How to get Python's os.system() to run the Windows 10 tftp client feature?

Using Python 2.7 on Windows 10. I want to use the Windows tftp client. Why would os.system() give a different result to typing the tftp command at the command prompt? (Use of 2.7 instead of 3, and the Windows TFTP client instead of looking for…
fpeelo
  • 372
  • 2
  • 10
1
vote
0 answers

How much files can be sended via python using tftp

I have python script: Using telnet it connects to remote host via telnet and simply executing command. It works fine with one host, but If i want using function to connect to 4+ hosts it maybe from 4-5 try sends only one random. def main(): usr…
Jane
  • 17
  • 4
1
vote
1 answer

How to stop TFTP server using TFTPy on Python

I need to use TFTP server on Python and I try to use TFTPy module for it. Server works perfect, but I can't stop it in moment as I wish. Python v3.7, TFTPy v 0.8.0, Windows 10x64. I tried to write simple code and using threads but nothing…
1
vote
1 answer

What happens to select() when socket is set to handle timeout

According to the manual page for recv(), errno is set to EAGAIN or EWOULDBLOCK if a timeout has been set for receive using setsockopt(SO_RCVTIMEO). My question is what happens if multiple such sockets are used with select(). Would select return if…
Parth K
  • 587
  • 5
  • 18
1
vote
1 answer

Unable to execute configuration on router through TFTP's python script

I am trying to use the ZTP approach to configure my router [R2]. My Ubuntu machine is both DHCP and TFTP server. Ubuntu [DHCP Server]: 16.04.5 LTS Cisco Router [DHCP Client]: 7200, version 15.2(4)S5 This is the python script- ztp.py. ztp.py is…
Prarthana Shedge
  • 135
  • 1
  • 3
  • 11
1
vote
1 answer

Filename string in DHCP/BOOTP/TFTP Read Request presenting extra characters

While building a basic Windows Image deployment solution (using WinPE and custom applications built in C#), I came across a problem of 2 Computers not being on the same subnet/IP segment (no static IP Address or DHCP Servers & DNS/Routing tables).…
1
vote
1 answer

tftp booting my raspberry pi, but initramfs file is not requested by the raspberrypi

I am using custom Linux Kernel built through Yocto. I generated sdimg and try to boot it using an SDCARD and it boots perfectly fine. Here along with the Kernel I also use INITRAMFS files. Using config.txt and cmdline.txt file in partition 1, I tell…
Naveen KH
  • 153
  • 2
  • 11
1
vote
1 answer

Why does the TFTP standard have 2 bytes for its OP Code?

#Why is the Opcode for a TFTP packet 2 whole bytes? The latest revision of the TFTP Standard, on the bottom of page 3, says that The TFTP header consists of a 2 byte opcode field which indicates the packet's type (e.g., DATA, ERROR, etc.) It…
Isaiah Taylor
  • 345
  • 1
  • 2
  • 7
1
vote
1 answer

tftpy package sytax errors on import

I've just installed the package tftpy version 0.6.2 when I import it I get a syntax error with the line: running the code: import tftpy I get the error: raise ImportError, "Requires at least Python 2.3" SyntaxError: Invalid syntax I have version…
Rob
  • 151
  • 1
  • 2
  • 11
1 2
3
14 15