How to get the lowest/smallest local IP?
Hello,
I need to use the lowest/smallest IP address of the host in my module. Is there an easy way to get a list of the current IP addresses? Thanks. |
Found some code that supposedly does does this, but have not been able to get it to return the correct address.
Code:
/* eth0 to __u32 IP address */ |
Got it working.
Code:
/* eth0 to __u32 IP address */ |
All times are GMT -5. The time now is 03:02 PM. |