Home > other >  If the deal sa_family AF_INET6 can there a way to get to the IPV4 address of network card?
If the deal sa_family AF_INET6 can there a way to get to the IPV4 address of network card?

Time:10-30

I now use WINPCAP access to the network card information, pcap_if_t structure includes sa_family and SOCKADDR structure information, I now need to IPV4 address of network card information, but when is sa_family AF_INET6 can only be read from the SOCKADDR IPV6 address, at the command line with ipconfig/all can see the IPV6 and IPV4 network card address, the IPV4 address how to obtain?
  • Related