Home
last modified time | relevance | path

Searched refs:packed_addr (Results 1 – 2 of 2) sorted by relevance

/external/python/cpython2/Modules/
Dsocketmodule.c3965 unsigned int packed_addr; local
3997 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; local
4034 if (addr_len != sizeof(packed_addr)) {
4040 memcpy(&packed_addr, packed_str, addr_len);
4042 return PyString_FromString(inet_ntoa(packed_addr));
[all …]
/external/python/cpython3/Modules/
Dsocketmodule.c5991 unsigned int packed_addr; local
6023 packed_addr = INADDR_BROADCAST;
6027 packed_addr = inet_addr(ip_addr); local
6029 if (packed_addr == INADDR_NONE) { /* invalid address */
6035 return PyBytes_FromStringAndSize((char *) &packed_addr,
6036 sizeof(packed_addr));
6054 struct in_addr packed_addr; local
6060 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));