Example IPv4 address: 192.168.0.1
| 44 | |
| 45 | // Example IPv4 address: 192.168.0.1 |
| 46 | TEST(CIPAddress, IPv4_pton) |
| 47 | { |
| 48 | srt::TestInit srtinit; |
| 49 | const char* peer_ip = "192.168.0.1"; |
| 50 | const uint32_t ip[4] = {htobe32(0xC0A80001), 0, 0, 0}; |
| 51 | test_cipaddress_pton(peer_ip, AF_INET, ip); |
| 52 | } |
| 53 | |
| 54 | // Example IPv6 address: 2001:db8:85a3:8d3:1319:8a2e:370:7348 |
| 55 | TEST(CIPAddress, IPv6_pton) |
nothing calls this directly
no test coverage detected