I’m trying to develop a DHCP client application in java that can receive DHCP Offers and Acks on port 68 without running as root. I’m aware of the linux limitation of binding to ports <1024. What options are available?
[Edit]
The application can send DHCP Discovers and Requests. It needs to be able to receive DHCP Offers and Acks from a DHCP Server that uses custom DHCP options. The application will not be modifying any system information once the DHCP process is complete, but it will perform “custom” actions.
[Edit]
Is there a way to configure the DHCP daemon to forward received packets to an application like how you can configure the SNMP daemon?
There is an Apache Commons Daemon service that might help you. It allows you to do something privileged, like bind to port 68, then switch to a non-priviledged user.