| 157 | typedef unsigned long uint32; |
| 158 | |
| 159 | uint32 SockAddrToUint32(struct sockaddr *a) { |
| 160 | return ((a) && (a->sa_family == AF_INET)) ? ntohl(((struct sockaddr_in *) a)->sin_addr.s_addr) |
| 161 | : 0; |
| 162 | } |
| 163 | |
| 164 | // convert a numeric IP address into its string representation |
| 165 | void Inet_NtoA(uint32 addr, char *ipbuf) { |
no outgoing calls
no test coverage detected