Home | History | Annotate | Download | only in android-clat

Lines Matching refs:ipv6

58 /* 40 bytes IPv6 header - 20 bytes IPv4 header + 8 bytes fragment header */
79 .sll_pkttype = PACKET_OTHERHOST, // The 464xlat IPv6 address is not assigned to the kernel.
86 uint32_t *ipv6 = Global_Clatd_Config.ipv6_local_subnet.s6_addr32;
88 // Load the first four bytes of the IPv6 destination address (starts 24 bytes in).
89 // Compare it against the first four bytes of our IPv6 address, in host byte order (BPF loads
92 // three words of the IPv6 address, and if they all match, return PACKETLEN (accept packet).
94 BPF_JUMP(BPF_JMP | BPF_JEQ | BPF_K, htonl(ipv6[0]), 0, 7),
96 BPF_JUMP(BPF_JMP | BPF_JEQ | BPF_K, htonl(ipv6[1]), 0, 5),
98 BPF_JUMP(BPF_JMP | BPF_JEQ | BPF_K, htonl(ipv6[2]), 0, 3),
100 BPF_JUMP(BPF_JMP | BPF_JEQ | BPF_K, htonl(ipv6[3]), 0, 1),
118 * configures the ipv4 and ipv6 addresses on the tunnel interface
196 * opens a packet socket to receive IPv6 packets and a raw socket to send them
224 * picks the clat IPv6 address and configures packet translation to use it.
236 logmsg(ANDROID_LOG_ERROR, "Unable to find an IPv6 address on interface %s", interface);
240 // If our prefix hasn't changed, do nothing. (If this is the first time we configure an IPv6
253 logmsg(ANDROID_LOG_INFO, "Using IPv6 address %s on %s", addrstr, interface);
258 logmsg(ANDROID_LOG_INFO, "clat IPv6 address changed from %s to %s", from_addr, addrstr);
279 * uplink_interface - network interface to use to reach the ipv6 internet
330 * to_ipv6 - whether the packet is to be translated to ipv6 or ipv4