Searched refs:packed_addr (Results 1 – 2 of 2) sorted by relevance
3965 unsigned int packed_addr; local3997 packed_addr = 0xFFFFFFFF;4000 packed_addr = inet_addr(ip_addr);4002 if (packed_addr == INADDR_NONE) { /* invalid address */4008 return PyString_FromStringAndSize((char *) &packed_addr,4009 sizeof(packed_addr));4028 struct in_addr packed_addr; local4034 if (addr_len != sizeof(packed_addr)) {4040 memcpy(&packed_addr, packed_str, addr_len);4042 return PyString_FromString(inet_ntoa(packed_addr));[all …]
5991 unsigned int packed_addr; local6023 packed_addr = INADDR_BROADCAST;6027 packed_addr = inet_addr(ip_addr); local6029 if (packed_addr == INADDR_NONE) { /* invalid address */6035 return PyBytes_FromStringAndSize((char *) &packed_addr,6036 sizeof(packed_addr));6054 struct in_addr packed_addr; local6060 if (packed_ip.len != sizeof(packed_addr)) {6067 memcpy(&packed_addr, packed_ip.buf, packed_ip.len);6071 return PyUnicode_FromString(inet_ntoa(packed_addr));