Home
last modified time | relevance | path

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

/external/linux-kselftest/tools/testing/selftests/bpf/
Dtest_xdp_noinline.c296 __u32 ip_suffix; in encap_v6() local
318 ip_suffix = pckt->flow.srcv6[3] ^ pckt->flow.port16[0]; in encap_v6()
326 ip6h->saddr.in6_u.u6_addr32[3] = ip_suffix; in encap_v6()
337 __u32 ip_suffix = __builtin_bswap16(pckt->flow.port16[0]); in encap_v4() local
346 ip_suffix <<= 15; in encap_v4()
347 ip_suffix ^= pckt->flow.src; in encap_v4()
372 iph->saddr = ((0xFFFF0000 & ip_suffix) | 4268) ^ dst->dst; in encap_v4()
/external/autotest/client/cros/
Ddhcp_test_base.py51 def rewrite_ip_suffix(subnet_mask, ip_in_subnet, ip_suffix): argument
71 suffix = ~mask & struct.unpack('!I', socket.inet_aton(ip_suffix))[0]