Home
last modified time | relevance | path

Searched refs:saddr (Results 1 – 6 of 6) sorted by relevance

/system/netd/include/
DFwmarkCommand.h36 FwmarkConnectInfo(const int connectErrno, const unsigned latency, const sockaddr* saddr) { in FwmarkConnectInfo()
39 if (saddr->sa_family == AF_INET) { in FwmarkConnectInfo()
40 addr.sin = *((struct sockaddr_in*) saddr); in FwmarkConnectInfo()
41 } else if (saddr->sa_family == AF_INET6) { in FwmarkConnectInfo()
42 addr.sin6 = *((struct sockaddr_in6*) saddr); in FwmarkConnectInfo()
/system/core/libnetutils/
Dpacket.c90 uint32_t saddr, uint32_t daddr, uint32_t sport, uint32_t dport) in send_packet() argument
109 ip.saddr = saddr; in send_packet()
119 udpsum = checksum(&ip.saddr, sizeof(ip.saddr), 0); in send_packet()
168 uint32_t saddr, daddr; in receive_packet() local
221 saddr = packet.ip.saddr; in receive_packet()
225 packet.ip.saddr = saddr; in receive_packet()
Dpacket.h22 uint32_t saddr, uint32_t daddr, uint32_t sport, uint32_t dport);
/system/netd/tests/
Dsock_diag_test.cpp128 struct in6_addr *saddr = (struct in6_addr *) msg->id.idiag_src; in TEST_F() local
130 IN6_IS_ADDR_LOOPBACK(saddr) || in TEST_F()
131 (IN6_IS_ADDR_V4MAPPED(saddr) && saddr->s6_addr32[3] == htonl(INADDR_LOOPBACK))); in TEST_F()
/system/netd/server/
DXfrmController.cpp506 struct sockaddr_storage saddr; in ipSecApplyTransportModeTransform() local
508 socklen_t len = sizeof(saddr); in ipSecApplyTransportModeTransform()
512 if ((err = getsockname(userSocket, reinterpret_cast<struct sockaddr*>(&saddr), &len)) < 0) { in ipSecApplyTransportModeTransform()
527 if (saInfo.addrFamily != saddr.ss_family) { in ipSecApplyTransportModeTransform()
530 saInfo.addrFamily, saddr.ss_family); in ipSecApplyTransportModeTransform()
642 usersa->saddr = record.srcAddr; in fillUserSaInfo()
748 tmpl->saddr = record.srcAddr; in fillUserTemplate()
DSockDiagTest.cpp128 struct in6_addr *saddr = (struct in6_addr *) msg->id.idiag_src; in TEST_F() local
130 IN6_IS_ADDR_LOOPBACK(saddr) || in TEST_F()
131 (IN6_IS_ADDR_V4MAPPED(saddr) && saddr->s6_addr32[3] == htonl(INADDR_LOOPBACK))); in TEST_F()