Re: [Dnsmasq-discuss] specifying dhcp options in proxy mode

2017-05-26 Thread Floris Bos
On 05/26/2017 10:43 AM, Andriy Gapon wrote: That actually made sense as the DHCP sever could be configured to provide different information depending on the PXE client. That's how my environment is setup: dnsmasq offers a menu of boot options (via pxe-service + pxe-prompt) to a client that's bu

Re: [Dnsmasq-discuss] specifying dhcp options in proxy mode

2017-05-26 Thread Andriy Gapon
On 25/05/2017 20:48, Floris Bos wrote: > I am pretty sure it didn't send any additional DHCP packets itself in the > past. Looks like it is the other way around. I am using an older version of FreeBSD and it does send those packates because I see them with Wireshark. > And code seems to reflect

Re: [Dnsmasq-discuss] specifying dhcp options in proxy mode

2017-05-25 Thread Floris Bos
On 05/25/2017 04:30 PM, Andriy Gapon wrote: First, the initial PXE client must be instructed to load and run FreeBSD pxeboot. pxeboot is a special loader, an intermediate stage that loads the actual FreeBSD kernel. pxeboot is itself a DHCP and PXE client. I am pretty sure it didn't send any a

Re: [Dnsmasq-discuss] specifying dhcp options in proxy mode

2017-05-25 Thread Andriy Gapon
On 25/05/2017 14:30, Simon Kelley wrote: > How does this handle the case that the PXE client has received _two_ > packets, one from the DHCP server with an IP address, and one from a PXE > proxy server with netbbot information. Does GET_CACHED_INFO return one, > or both, or the combined information

Re: [Dnsmasq-discuss] specifying dhcp options in proxy mode

2017-05-25 Thread Andriy Gapon
On 25/05/2017 14:29, Simon Kelley wrote: > > > On 23/05/17 07:05, Andriy Gapon wrote: >> On 23/05/2017 01:14, Simon Kelley wrote: >>> To the best of my knowledge it's _only_ PXE clients which can accept >>> extra options from a proxy. PXE is a superset of DHCP, which includes >>> that functionali

Re: [Dnsmasq-discuss] specifying dhcp options in proxy mode

2017-05-25 Thread Simon Kelley
On 23/05/17 07:05, Andriy Gapon wrote: > On 23/05/2017 01:14, Simon Kelley wrote: >> To the best of my knowledge it's _only_ PXE clients which can accept >> extra options from a proxy. PXE is a superset of DHCP, which includes >> that functionality. The DHCP clients run by the OS are just that -

Re: [Dnsmasq-discuss] specifying dhcp options in proxy mode

2017-05-25 Thread Floris Bos
On 05/25/2017 01:30 PM, Simon Kelley wrote: On 23/05/17 13:09, Floris Bos wrote: On 05/11/2017 01:36 PM, Simon Kelley wrote: As stated in the thread you link to, if you're netbooting an OS via PXE then one the OS starts, it will do DHCP again, and that's the time to send arbitrary options. Re

Re: [Dnsmasq-discuss] specifying dhcp options in proxy mode

2017-05-25 Thread Simon Kelley
On 23/05/17 13:09, Floris Bos wrote: > On 05/11/2017 01:36 PM, Simon Kelley wrote: >> As stated in the thread you link to, if you're netbooting an OS via PXE >> then one the OS starts, it will do DHCP again, and that's the time to >> send arbitrary options. > > Recall some operating systems like

Re: [Dnsmasq-discuss] specifying dhcp options in proxy mode

2017-05-23 Thread Floris Bos
On 05/11/2017 01:36 PM, Simon Kelley wrote: As stated in the thread you link to, if you're netbooting an OS via PXE then one the OS starts, it will do DHCP again, and that's the time to send arbitrary options. Recall some operating systems like FreeBSD do not do DHCP again when net booting, bu

Re: [Dnsmasq-discuss] specifying dhcp options in proxy mode

2017-05-22 Thread Andriy Gapon
On 23/05/2017 01:14, Simon Kelley wrote: > To the best of my knowledge it's _only_ PXE clients which can accept > extra options from a proxy. PXE is a superset of DHCP, which includes > that functionality. The DHCP clients run by the OS are just that - DHCP > clients, they don't know how to do the

Re: [Dnsmasq-discuss] specifying dhcp options in proxy mode

2017-05-22 Thread Simon Kelley
On 12/05/17 15:35, Andriy Gapon wrote: > On 11/05/2017 14:36, Simon Kelley wrote: >> The design is that dnsmasq sends the options expected by a PXE client if >> it's acting as a proxy (because the whole proxy thing is part of the PXE >> spec: a normal DHCP client doesn't know how to deal with it.)

Re: [Dnsmasq-discuss] specifying dhcp options in proxy mode

2017-05-12 Thread Andriy Gapon
On 11/05/2017 14:36, Simon Kelley wrote: > The design is that dnsmasq sends the options expected by a PXE client if > it's acting as a proxy (because the whole proxy thing is part of the PXE > spec: a normal DHCP client doesn't know how to deal with it.) The > replies to the PXE client are construc

Re: [Dnsmasq-discuss] specifying dhcp options in proxy mode

2017-05-11 Thread Simon Kelley
The design is that dnsmasq sends the options expected by a PXE client if it's acting as a proxy (because the whole proxy thing is part of the PXE spec: a normal DHCP client doesn't know how to deal with it.) The replies to the PXE client are constructed using the information given in the pxe-servic

[Dnsmasq-discuss] specifying dhcp options in proxy mode

2017-05-10 Thread Andriy Gapon
It seems that present dnsmasq adds only vendor-specific option when it operates on the proxy mode. E.g., with a config that has dhcp-range=192.168.0.88,proxy,255.255.255.0 dhcp-option=vendor:PXEClient,6,2b dnsmasq adds option 43, suboption 6 to its responses. But if I have