> > The ISC dhcpd approach to using this looks something like this:
> > 
> >   option arch code 93 = unsigned integer 16;
> > 
> >   if option arch = 00:00 {
> >     filename "bios/pxelinux.0";
> >   } elsif  option arch = 00:07 {
> >      filename "efi.x64/syslinux.efi";
> >   }
> 
> [...] IIUC OpenBSD dhcpd doesn't support conditionals...

Ugly workaround is to use rewrite via tftpd's socket
but one has to known IP address in advance.

     -r socket
             Issue filename rewrite requests to the specified UNIX domain
             socket.  tftpd will write lines in the format "IP OP filename",
             terminated by a newline, where IP is the client's IP address, and
             OP is one of "read" or "write".  tftpd expects replies in the
             format "filename" terminated by a newline.  All rewrite requests
             from the daemon must be answered (even if it is with the original
             filename) before the TFTP request will continue.  By default
             tftpd does not use filename rewriting.

j.

Reply via email to