A related question is a question created from another question. When the related question is created, it will be automatically linked to the original question.
If you have a related question, please click the "Ask a related question" button in the top right corner. The newly created question will be automatically linked to this question.
I have a need to trap the message "No lease, failing" during boot of my target DM6467T, and therefore I'm looking for the source code that prints this message. It must be in udhcpc. I confirm on the web that there exists a dhcpc.c with this text in it. But searching my git folder on my Ubuntu host, no source file contains this text. I also find a udhcpc program in my file system.
I would have thought that this message was coming from code compiled into my kernel. But at the moment, it appears the kernel is instead calling the program udhcpc, for which I can find no source. I must have inherited this program in the file system derived from the DM6467T EVM. Of course, I just searched git for the text "udhcpc" to find who's loading the program, and there were not hits on this search either. I simply can't figure out the connection between my kernel and this message. PLEASE ADVISE
I would greatly prefer to trap the failure from within the kernel and NOT a separate program like udhcpc. For whoever in the kernel invokes this, if it gets return status, I could trap there instead.
Please note that this effort is about determining that the Internet cable is likely unplugged, and then subsequently powering down the PHY chip, which consumes a great deal of power. Any direct advice on how something is already setup for this would be greatly appreciated. Of course, I really don't think this is the case!
Thanks very much,
Helmut