R
Rob Bonzer
I've searched around looking for answers but haven't found any that work
yet.
I'm trying to distinguish between having the ethernet cable unplugged vs.
having an ip address conflict. I've used GetIfTable, but it will return
MIB_IF_OPER_STATUS_NON_OPERATIONAL and have an ip address of 0.0.0.0 if its
unplugged OR address conflict. It returns MIB_IF_OPER_STATUS_OPERATIONAL if
its all working. I've never seen it return MIB_IF_OPER_STATUS_DISCONNECTED.
Other code snippets that I've seen posted here look like they just try and
see if the interface is operational and ip address is not empty. I'm not
sure that would work either.
Has anyone figured out how to do this (in C/C++ code)?
Rob
yet.
I'm trying to distinguish between having the ethernet cable unplugged vs.
having an ip address conflict. I've used GetIfTable, but it will return
MIB_IF_OPER_STATUS_NON_OPERATIONAL and have an ip address of 0.0.0.0 if its
unplugged OR address conflict. It returns MIB_IF_OPER_STATUS_OPERATIONAL if
its all working. I've never seen it return MIB_IF_OPER_STATUS_DISCONNECTED.
Other code snippets that I've seen posted here look like they just try and
see if the interface is operational and ip address is not empty. I'm not
sure that would work either.
Has anyone figured out how to do this (in C/C++ code)?
Rob