I would like to ask if there is a way to read the DHCP option in Qt or C ++ (Qt would be better) on linux. I have my own cup backend and would like to read option 9 - LPR Servers (all listed IP addresses) and use it as a uri device.
So, I want to know how to get specific (or all) parameter information from a DHCP lease.
I looked at the Qt documentation, but could not find anything useful and could not find the C ++ libraries for Linux.
source share