Lines Matching full:ipv4
71 * return the corresponding ipv4 address for the given ipv6 address
73 * returns: the IPv4 address
89 * return the corresponding ipv6 address for the given ipv4 address
90 * addr4 - ipv4 address
109 * proto - ethernet protocol id: ETH_P_IP(ipv4) or ETH_P_IPV6(ipv6)
117 * generate an ipv4 header from an ipv6 header
118 * ip_targ - (ipv4) target packet header, source: original ipv4 addr, dest: local subnet addr
142 // In that case, the source IPv6 address can't be translated and we need to make up an IPv4
151 * generate an ipv6 header from an ipv4 header
155 * old_header - (ipv4) source packet header, source: local subnet addr, dest: internet's ipv4 addr
172 * generate an ipv6 fragment header from an ipv4 header
175 * old_header - (ipv4) source packet header
189 // In IPv4, the offset is the bottom 13 bits; in IPv6 it's the top 13 bits.
202 * generate an ipv6 fragment header from an ipv4 header
204 * ip_targ - target (ipv4) header
219 * translate ipv4 icmp to ipv6 icmp
248 // The pseudo-header checksum was calculated on the transport length of the original IPv4
250 // needs to be, because the ICMP error contains an IPv4 header, which we will be translating to
253 // pseudo-header when calculating its checksum (as the IPv4 header has its own checksum).
274 * translate ipv6 icmp to ipv4 icmp
395 * common between ipv4/ipv6 - setup checksum and send udp packet
435 * common between ipv4/ipv6 - setup checksum and send tcp packet
439 * checksum - partial checksum covering ipv4/ipv6 header
491 * to_ipv6 - true if translating to ipv6, false if translating to ipv4