Functions | |
int | ip64_4to6 (const uint8_t *ipv4packet, const uint16_t ipv4len, uint8_t *resultpacket) |
int | ip64_6to4 (const uint8_t *ipv6packet, const uint16_t ipv6len, uint8_t *resultpacket) |
const uip_ip4addr_t * | ip64_get_draddr (void) |
const uip_ip4addr_t * | ip64_get_hostaddr (void) |
const uip_ip4addr_t * | ip64_get_netmask (void) |
int | ip64_hostaddr_is_configured (void) |
void | ip64_init (void) |
void | ip64_set_draddr (const uip_ip4addr_t *draddr) |
void | ip64_set_hostaddr (const uip_ip4addr_t *hostaddr) |
void | ip64_set_ipv4_address (const uip_ip4addr_t *ipv4addr, const uip_ip4addr_t *netmask) |
void | ip64_set_ipv6_address (const uip_ip6addr_t *ipv6addr) |
void | ip64_set_netmask (const uip_ip4addr_t *netmask) |
Variables | |
uint8_t * | ip64_packet_buffer |
uint16_t | ip64_packet_buffer_maxlen |
int ip64_4to6 | ( | const uint8_t * | ipv4packet, |
const uint16_t | ipv4len, | ||
uint8_t * | resultpacket | ||
) |
References BUFSIZE, ipv4_hdr::destipaddr, ipv6_hdr::destipaddr, tcp_hdr::destport, udp_hdr::destport, EPHEMERAL_PORTRANGE, ipv6_hdr::flow, ipv6_hdr::hoplim, ICMP6_ECHO, ICMP_ECHO, icmpv6_hdr::icmpchksum, ip64_addr_4to6(), ip64_addr_copy6(), ip64_addrmap_lookup_port(), ip64_special_ports_incoming_is_special(), ip64_special_ports_translate_incoming(), ip64_addrmap_entry::ip6addr, ip64_addrmap_entry::ip6port, IP_PROTO_ICMPV4, IP_PROTO_ICMPV6, IP_PROTO_TCP, IP_PROTO_UDP, IPV4_HDRLEN, IPV6_HDRLEN, ipv6_transport_checksum(), ipv4_hdr::len, ipv6_hdr::len, NULL, ipv6_hdr::nxthdr, PRINTF, ipv4_hdr::proto, ipv4_hdr::srcipaddr, ipv6_hdr::srcipaddr, ipv6_hdr::tcflow, tcp_hdr::tcpchksum, ipv4_hdr::ttl, icmpv4_hdr::type, icmpv6_hdr::type, uip_ip4addr_t::u16, udp_hdr::udpchksum, uip_create_linklocal_allnodes_mcast, uip_htons(), uip_ip4addr_cmp, uip_ipaddr_maskcmp, uip_ipaddr_to_quad, uip_ntohs, and ipv6_hdr::vtc.
Referenced by input_callback(), and ip64_eth_interface_input().
int ip64_6to4 | ( | const uint8_t * | ipv6packet, |
const uint16_t | ipv6len, | ||
uint8_t * | resultpacket | ||
) |
References DEFAULT_LIFETIME, ipv4_hdr::destipaddr, ipv6_hdr::destipaddr, udp_hdr::destport, EPHEMERAL_PORTRANGE, tcp_hdr::flags, ipv6_hdr::hoplim, ICMP6_ECHO_REPLY, ICMP_ECHO_REPLY, icmpv4_hdr::icmpchksum, ip64_addr_6to4(), ip64_addr_copy4(), ip64_addrmap_create(), ip64_addrmap_lookup(), ip64_addrmap_set_lifetime(), ip64_addrmap_set_recycleble(), ip64_special_ports_outgoing_is_special(), ip64_special_ports_translate_outgoing(), IP_PROTO_ICMPV4, IP_PROTO_ICMPV6, IP_PROTO_TCP, IP_PROTO_UDP, ipv4_hdr::ipchksum, ipv4_hdr::ipid, ipv4_hdr::ipoffset, ipv4_checksum(), IPV4_HDRLEN, ipv4_transport_checksum(), IPV6_HDRLEN, ipv6_transport_checksum(), ipv4_hdr::len, ipv6_hdr::len, ip64_addrmap_entry::mapped_port, NULL, ipv6_hdr::nxthdr, PRINTF, ipv4_hdr::proto, RST_LIFETIME, ipv4_hdr::srcipaddr, ipv6_hdr::srcipaddr, udp_hdr::srcport, SYN_LIFETIME, TCP_FIN, TCP_RST, TCP_SYN, tcp_hdr::tcpchksum, ipv4_hdr::tos, ipv4_hdr::ttl, icmpv4_hdr::type, icmpv6_hdr::type, udp_hdr::udpchksum, uip_debug_ipaddr_print(), UIP_HTONS, uip_htons(), uip_ip4addr_cmp, uip_ntohs, and ipv4_hdr::vhl.
Referenced by output().
const uip_ip4addr_t* ip64_get_draddr | ( | void | ) |
References ip64_draddr.
Referenced by ip64_arp_check_cache(), ip64_arp_create_arp_request(), and ip64_arp_create_ethhdr().
const uip_ip4addr_t* ip64_get_hostaddr | ( | void | ) |
References ip64_hostaddr.
Referenced by ip64_arp_arp_input(), ip64_arp_check_cache(), ip64_arp_create_arp_request(), and ip64_arp_create_ethhdr().
const uip_ip4addr_t* ip64_get_netmask | ( | void | ) |
References ip64_netmask.
Referenced by ip64_arp_check_cache(), ip64_arp_create_arp_request(), and ip64_arp_create_ethhdr().
int ip64_hostaddr_is_configured | ( | void | ) |
References ip64_hostaddr_configured.
Referenced by PROCESS_THREAD().
void ip64_init | ( | void | ) |
References addr, uip_ds6_netif::addr_list, ADDR_PREFERRED, ADDR_TENTATIVE, i, ip64_conv(), ip64_ipv4_dhcp_init(), ip64_set_draddr(), ip64_set_ipv4_address(), ip64_set_ipv6_address(), uip_ds6_addr::ipaddr, uip_ds6_addr::isused, netmask, PRINTF, uip_ds6_addr::state, state, UIP_DS6_ADDR_NB, uip_ds6_if, and uip_ipaddr.
Referenced by PROCESS_THREAD().
void ip64_set_draddr | ( | const uip_ip4addr_t * | draddr | ) |
References ip64_addr_copy4().
Referenced by ip64_dhcpc_configured(), and ip64_init().
void ip64_set_hostaddr | ( | const uip_ip4addr_t * | hostaddr | ) |
References ip64_addr_copy4().
Referenced by ip64_dhcpc_configured(), and ip64_set_ipv4_address().
void ip64_set_ipv4_address | ( | const uip_ip4addr_t * | ipv4addr, |
const uip_ip4addr_t * | netmask | ||
) |
References ip64_set_hostaddr(), ip64_set_netmask(), printf, and uip_ip4addr_t::u8.
Referenced by ip64_init().
void ip64_set_ipv6_address | ( | const uip_ip6addr_t * | ipv6addr | ) |
References ip64_addr_copy6(), PRINTF, and uip_debug_ipaddr_print().
Referenced by ip64_init().
void ip64_set_netmask | ( | const uip_ip4addr_t * | netmask | ) |
References ip64_addr_copy4().
Referenced by ip64_dhcpc_configured(), and ip64_set_ipv4_address().
uint8_t* ip64_packet_buffer |
Referenced by input_callback(), output(), and PROCESS_THREAD().
uint16_t ip64_packet_buffer_maxlen |
Referenced by PROCESS_THREAD().