Searched refs:ip_suffix (Results 1 – 2 of 2) sorted by relevance
296 __u32 ip_suffix; in encap_v6() local318 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() local346 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()
51 def rewrite_ip_suffix(subnet_mask, ip_in_subnet, ip_suffix): argument71 suffix = ~mask & struct.unpack('!I', socket.inet_aton(ip_suffix))[0]