Hi! I am using OpenBSD 4.4 with the build-in TFTP-Daemon for PXE. Distributing OpenBSD works fine. Now I want to distribute OpenBSD and WinPE. I've installed PXELinux 3.72 and configured it. Works also fine for PXELinux and distributing OpenBSD. To distribute WinPE I need a remap rule (\ -> /) for the TFTP-Daemon. I've created a file /etc/tftpd.remap with the following rule: rgG \\ / In /etc/inetd.conf the -m parameter is added: Tftp ... /usr/libexec/tftpd tftpd -m /etc/tftpd.remap -s /tftpboot Result: The TFTP-daemon dosen't start. I've checked the man pages and there is no -m paramter (like on Linux). Does the build-in TFTP-Dameon in OpenBSD has no feature for remapping? If yes, how do I have to enable it? If no, how can I install the TFTPD-HPA 0.49 on OpenBSD 4.4? Regards Hans
Hans-Guenther Maerkle wrote:> > To distribute WinPE I need a remap rule (\ -> /) for the TFTP-Daemon. > I've created a file /etc/tftpd.remap with the following rule: > rgG \\ / > > In /etc/inetd.conf the -m parameter is added: > Tftp ... /usr/libexec/tftpd tftpd -m /etc/tftpd.remap -s /tftpboot > > Result: The TFTP-daemon dosen't start. I've checked the man pages and > there is no -m paramter (like on Linux). > > Does the build-in TFTP-Dameon in OpenBSD has no feature for remapping? > If yes, how do I have to enable it? > If no, how can I install the TFTPD-HPA 0.49 on OpenBSD 4.4? >I don't think it does. You should be able to get the tftp-hpa sources and build them on OpenBSD (see the file INSTALL for instructions.) -hpa -- H. Peter Anvin, Intel Open Source Technology Center I work for Intel. I don't speak on their behalf.
Hans-Guenther Maerkle wrote:>> >> ... >> >> Does the build-in TFTP-Dameon in OpenBSD has no feature forremapping?>> If yes, how do I have to enable it? >> If no, how can I install the TFTPD-HPA 0.49 on OpenBSD 4.4? >> > > I don't think it does. > > You should be able to get the tftp-hpa sources and build them onOpenBSD> (see the file INSTALL for instructions.) > > -hpaHi! I've dowloaded TFTPD-HPA 0.49 to /tmp I've installed gnu make 3.81 via pkg_add Done ./configure - works fine gmake to compile - reports an error: echo \#define VERSION \"tftp-hpa `cat version`\" > version.h gmake -C lib gmake[1]: Entering directory `/tmp/tftp-hpa-0.49/lib' gmake[1]: Nothing to be done for `all'. gmake[1]: Leaving directory `/tmp/tftp-hpa-0.49/lib' gmake -C common gmake[1]: Entering directory `/tmp/tftp-hpa-0.49/common' gcc -g -O2 -W -Wall -Wpointer-arith -Wbad-function-cast -Wstrict-prototypes -Wmissing-prototypes -Wmissing-declarations -Wnested-externs -Winline -Wwrite-strings -Wundef -Wshadow -Wsign-compare -pipe -fno-strict-aliasing -I/tmp/tftp-hpa-0.49 -c tftpsubs.c tftpsubs.c: In function `set_sock_addr': tftpsubs.c:311: error: `AI_ADDRCONFIG' undeclared (first use in this function) tftpsubs.c:311: error: (Each undeclared identifier is reported only once tftpsubs.c:311: error: for each function it appears in.) gmake[1]: *** [tftpsubs.o] Error 1 gmake[1]: Leaving directory `/tmp/tftp-hpa-0.49/common' gmake: *** [common.build] Error 2 The error attemps regardless of the build-in OpenBSD TFTP-Daemon is running or not. Regards Hans
Reasonably Related Threads
- [PATCH tftpd-hpa] tftpd: don't use AI_CANONNAME and AI_ADDRCONFIG to resolve addresses for bind
- Bug#771441: [PATCH tftpd-hpa] tftpd: don't use AI_CANONNAME and AI_ADDRCONFIG to resolve addresses for bind
- Bug#771441: [PATCH tftpd-hpa] tftpd: don't use AI_CANONNAME and AI_ADDRCONFIG to resolve addresses for bind
- (hpa-tftpd] remapping with regular expression problem
- "Secure" tftpd source for Linux?