Searched refs:saddr (Results 1 – 12 of 12) sorted by relevance
/system/netd/include/ |
D | FwmarkCommand.h | 36 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/ |
D | packet.c | 90 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 235 saddr = packet.ip.saddr; in receive_packet() 239 packet.ip.saddr = saddr; in receive_packet()
|
D | packet.h | 22 uint32_t saddr, uint32_t daddr, uint32_t sport, uint32_t dport);
|
D | checksum.c | 119 current = ip_checksum_add(current, &(ip->saddr), sizeof(uint32_t)); in ipv4_pseudo_header_checksum()
|
/system/netd/bpf_progs/ |
D | clatd.c | 94 ip6->saddr.in6_u.u6_addr32[0], in nat64() 95 ip6->saddr.in6_u.u6_addr32[1], in nat64() 96 ip6->saddr.in6_u.u6_addr32[2], in nat64() 121 .saddr = ip6->saddr.in6_u.u6_addr32[3], // u32 in nat64()
|
/system/netd/tests/ |
D | sock_diag_test.cpp | 128 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/ |
D | TcpSocketMonitor.cpp | 79 char saddr[INET6_ADDRSTRLEN] = {}; in tcpInfoPrint() local 81 inet_ntop(sockinfo->idiag_family, &(sockinfo->id.idiag_src), saddr, sizeof(saddr)); in tcpInfoPrint() 90 saddr, in tcpInfoPrint()
|
D | SockDiagTest.cpp | 130 struct in6_addr *saddr = (struct in6_addr *) msg->id.idiag_src; in TEST_F() local 132 IN6_IS_ADDR_LOOPBACK(saddr) || in TEST_F() 133 (IN6_IS_ADDR_V4MAPPED(saddr) && saddr->s6_addr32[3] == htonl(INADDR_LOOPBACK))); in TEST_F()
|
D | WakeupController.cpp | 87 inet_ntop(AF_INET, &header.saddr, addr, sizeof(addr)); in extractIpHeader()
|
D | XfrmController.cpp | 714 struct sockaddr_storage saddr = ret.value(); in ipSecApplyTransportModeTransform() local 729 if (saddr.ss_family == AF_INET && spInfo.addrFamily != AF_INET) { in ipSecApplyTransportModeTransform() 732 saddr.ss_family, spInfo.addrFamily); in ipSecApplyTransportModeTransform() 747 switch (saddr.ss_family) { in ipSecApplyTransportModeTransform() 1055 usersa->saddr = record.srcAddr; in fillUserSaInfo() 1271 tmpl->saddr = record.srcAddr; in fillUserTemplate()
|
D | XfrmControllerTest.cpp | 293 expectAddressEquals(family, localAddr, userspi.info.saddr); in TEST_P() 386 expectAddressEquals(family, localAddr, usersa.saddr); in testIpSecAddSecurityAssociation() 537 expectAddressEquals(xfrmFamily, localAddr, policy.tmpl.saddr); in TEST_P()
|
D | WakeupControllerTest.cpp | 201 inet_pton(AF_INET, kSrcIpAddr, &msg.ipHeader.saddr); in TEST_F()
|