I need to retrieve the subnet mask of the default network interface of a PC, using C. The OS is linux.
Does anybody know some C function that does this? I know that there are some files storing the interface details, and they can be read and parsed. But is there a simpler way out?
LOL A ship is safe in the harbour, but that's not what it is meant for!!! LOL
Does anybody know some C function that does this? I know that there are some files storing the interface details, and they can be read and parsed. But is there a simpler way out?
LOL A ship is safe in the harbour, but that's not what it is meant for!!! LOL