Giter Site home page Giter Site logo

tftp's Introduction

RFC1350 tftp server and client

This was built on FreeBSD. It has also been tested on Debian.

IPv4 and IPv6 are supported.

Building

FreeBSD

% make

Linux

To build on linux will require the BSD make tool. This can normally be found in the bmake package for your distribution.

$ bmake

Build Options

Two options can be passed to the makefile:

  • -DDEBUG : Produce more verbose output during execution of both the server and client.
  • SERVER_PORT=port# : Override the default tftp port (69).

Output

Two binaries are produced in the same diretory as the makefile:

  • tftpd The tftp server
  • tftp The tftp client

Cleaning

There is a clean target in the makefile for removing the binaries and object files.

Executing

tftpd

These are the command line options available for the server:

  • -p port# : An alternative port number to the one built with.
  • -T : Redirect output to stdout
  • -D : Daemonize the server
  • -C : Path the daemonized server will chroot into

If -D is specified, -C must also be specified.

tftp

The command line for the client follows a specified format:

tftp server_ip [port#] command file

  • server_ip is the address of the tftp server
  • port# is an optional port number
  • command is either GET or PUT (case insensitive)
  • file is the name of the file to send or receive

Notes

Only mode octet is supported by the server and client. An error will be returned by the server if anything else is requested.

Logging defaults to syslog unless -T is specified.

Link-local addresses are ignored by the server when creating sockets.

tftpd only has access to the directory it is executed from. Paths are stripped from the file name by the server.

As this is an RFC1350 implementation the maximum file size is 33553919 bytes. ((2^16 - 1) * 512) - 1.

tftp's People

Contributors

sjt-c avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.