I get information about an Ethernet device on my computer using a function call that returns a sockaddr* struct. when i output the sa_data in that struct and expect to get my IP (should be a 192.x.x.x cause i'm off a local switch) and my netmask, i'm getting numbers like
"1694607552" for IP and
"16777215" for netmask
I'm almost sure the sockaddr is holding that info because another similair program retrievs the correct info from the same function call, but I don't know how. Am I missing something obvious? Why isn't the number even close to correct? And how can I get it into the familiar dotted notation?? Thank you for any help.
"1694607552" for IP and
"16777215" for netmask
I'm almost sure the sockaddr is holding that info because another similair program retrievs the correct info from the same function call, but I don't know how. Am I missing something obvious? Why isn't the number even close to correct? And how can I get it into the familiar dotted notation?? Thank you for any help.