Jump to content











Photo
- - - - -

Problem building tftpd32 from source / TFTP only version

tftpd32 build compile

  • Please log in to reply
5 replies to this topic

#1 maxx32

maxx32
  • Members
  • 2 posts
  •  
    Australia

Posted 22 September 2012 - 08:28 AM

Hi All

Just trying to build the tftpd32 4.0 sources in visual studio 2010.

The source seems to be split into projects that can't find the headers.h file which exists in the _common folder.

Cannot open include file: 'headers.h': No such file or directory.


The intention is to strip out DHCP, DNS etc to have a pure TFTP server for corporate use.
In the current form security will be very nervous approving use where there is the possibility of DHCP/DNS (spoof) capability on the desktop.

There seems to be a #define BAE_SYSTEMS_LEN_WHITE in about.c which may be along these lines ?


Any help appreciated

maxx32

Edited by maxx32, 22 September 2012 - 09:09 AM.


#2 Wonko the Sane

Wonko the Sane

    The Finder

  • Advanced user
  • 15465 posts
  • Location:The Outside of the Asylum (gate is closed)
  •  
    Italy

Posted 22 September 2012 - 11:22 AM

The intention is to strip out DHCP, DNS etc to have a pure TFTP server for corporate use.

With all due respect :), you seem a lot like risking to slip on a chocolate covered banana:
http://homepage.ntlw...red-banana.html

It seems to me that the unspoken question could also be:

I need a free and/or open source TFTP server, where can I find one?

In which case we have quite a few possible answers:
http://sourceforge.n...ts/tftp-server/
http://www.whatsupgo...ftp-server.aspx
http://www.solarwind...ftp_server.aspx
http://kin.klever.net/pumpkin
http://sourceforge.n...ftp4java/files/
http://tftpserver.codeplex.com/

:cheers:
Wonko

#3 maxx32

maxx32
  • Members
  • 2 posts
  •  
    Australia

Posted 23 September 2012 - 03:35 AM

Hi Wonko,

Hacking someone else's code is always the last resort - and there are a plethora of tftp servers out there.

I was trying to avoid any that run as a service due to user permissions (excludes Solarwinds TFTP as the first choice) - hence tftpd32 - but I think I'll have to accept running a service is inevitible.


Also need something that is very simple and intuitive - and doesn't look like a dogs breakfast ( PumpKIN :) )

The original cisco tftp server was exactly this - but now is unsupported and breaks for large files.


Have to say that the codeplex tftp server is a very clean no-fuss implementation - so will be seriously considering this alongside Solarwinds.

Also with codeplex tftp you can start/stop the service from the main window and it handles the problem of retrying adaptor binding if the adaptor is disconnected/reconnected.


Thanks very much for the advice !

maxx32

#4 Wonko the Sane

Wonko the Sane

    The Finder

  • Advanced user
  • 15465 posts
  • Location:The Outside of the Asylum (gate is closed)
  •  
    Italy

Posted 23 September 2012 - 09:33 AM

Maybe this fits :unsure::
http://www.kndata.com/download.shtml

I am suggesting other versions because, besides the difficulties you are having with compiling TFTP32 code, I suspect that by "stripping" parts of it it is likely that you introduce any kind of "regression bugs", which can becoome a nightmare.

There are also "around" (old ones):
the 3Com one, google for 3cdv2r10.zip
http://soft.udm4.com.../TFTP_Serv.html

:cheers:
Wonko

#5 SpareSimian

SpareSimian
  • Members
  • 2 posts
  •  
    United States

Posted 01 December 2012 - 03:26 PM

<p>

The source seems to be split into projects that can't find the headers.h file which exists in the _common folder.

Cannot open include file: 'headers.h': No such file or directory.



I just ran into this. The project files assume the source was unpacked to \tftpd32, which for most people won't be true. You need to change the include path in the .vcxproj files to look like this, using a relative path to find headers:

<AdditionalIncludeDirectories>.\_common;.;%(AdditionalIncludeDirectories)</AdditionalIncludeDirectories>

#6 Sha0

Sha0

    WinVBlock Dev

  • Developer
  • 1682 posts
  • Location:reboot.pro Forums
  • Interests:Booting
  •  
    Canada

Posted 01 December 2012 - 05:54 PM

I was trying to avoid any that run as a service due to user permissions

You can run as service as a particular user, if you like. This is a configurable property of services.




0 user(s) are reading this topic

0 members, 0 guests, 0 anonymous users