Re: RNDIS and DHCPD

2022-01-25 Thread Gregory Nutt
> Good question! Normally the computer/host is supposed to run the DHCP > server, you need to check in the spec if there is some way to change > it. > I wrote a DHCP server a long time ago. It is at apps/netutils/dhcpd. Haven't used it in a long time so I would expecit it to have some bit rot.

Re: RNDIS and DHCPD

2022-01-25 Thread Alan Carvalho de Assis
Good question! Normally the computer/host is supposed to run the DHCP server, you need to check in the spec if there is some way to change it. On 1/25/22, TimH wrote: > Will check those configs, thanks Alan. But I want the NuttX device to be > the DHCP server, so the PC gets an IP address in the

Re: RNDIS and DHCPD

2022-01-25 Thread TimH
Will check those configs, thanks Alan. But I want the NuttX device to be the DHCP server, so the PC gets an IP address in the same subnet as the NuttX device, assuming the PC is set to get IP addresses via DHCP. I don't think the PC (Linux or Windows) can give the NuttX device an IP address wit

Re: RNDIS and DHCPD

2022-01-25 Thread Alan Carvalho de Assis
Hi Tim, Looking my see you can see that I faced some issues with Ubuntu attributing DHCP address to my board, but I think it works if you use a better dhcp server on Linux. I suggest you too look how other boards are configuring it, i.e.: boards/arm/lc823450/lc823450-xgevk/configs/rndis/defconfi

RNDIS and DHCPD

2022-01-25 Thread TimH
First attempt hasn't worked, but not I've investigated or checked my .config yet; but, before I do, is it reasonable to expect NuttX to support DHCP server and USB RNDIS such that a connected PC gets an IP address from the NuttX RNDIS "gadget" allowing connectivity without the PC user having to