qemu-e2k/slirp
Guillaume Subiron 0d6ff71ae3 slirp: Adding IPv6, ICMPv6 Echo and NDP autoconfiguration
This patch adds the functions needed to handle IPv6 packets. ICMPv6 and
NDP headers are implemented.

Slirp is now able to send NDP Router or Neighbor Advertisement when it
receives Router or Neighbor Solicitation. Using a 64bit-sized IPv6
prefix, the guest is now able to perform stateless autoconfiguration
(SLAAC) and to compute its IPv6 address.

This patch adds an ndp_table, mainly inspired by arp_table, to keep an
NDP cache and manage network address resolution.
Slirp regularly sends NDP Neighbor Advertisement, as recommended by the
RFC, to make the guest refresh its route.

This also adds ip6_cksum() to compute ICMPv6 checksums using IPv6
pseudo-header.

Some #define ETH_* are moved upper in slirp.h to make them accessible to
other slirp/*.h

Signed-off-by: Guillaume Subiron <maethor@subiron.org>
Signed-off-by: Samuel Thibault <samuel.thibault@ens-lyon.org>
Reviewed-by: Thomas Huth <thuth@redhat.com>
2016-03-15 10:35:00 +01:00
..
arp_table.c slirp: Clean up includes 2016-02-04 17:41:30 +00:00
bootp.c slirp: Clean up includes 2016-02-04 17:41:30 +00:00
bootp.h
cksum.c slirp: Adding IPv6, ICMPv6 Echo and NDP autoconfiguration 2016-03-15 10:35:00 +01:00
COPYRIGHT
debug.h
dnssearch.c slirp: Clean up includes 2016-02-04 17:41:30 +00:00
if.c slirp: Adding IPv6, ICMPv6 Echo and NDP autoconfiguration 2016-03-15 10:35:00 +01:00
if.h
ip6_icmp.c slirp: Adding IPv6, ICMPv6 Echo and NDP autoconfiguration 2016-03-15 10:35:00 +01:00
ip6_icmp.h slirp: Adding IPv6, ICMPv6 Echo and NDP autoconfiguration 2016-03-15 10:35:00 +01:00
ip6_input.c slirp: Adding IPv6, ICMPv6 Echo and NDP autoconfiguration 2016-03-15 10:35:00 +01:00
ip6_output.c slirp: Adding IPv6, ICMPv6 Echo and NDP autoconfiguration 2016-03-15 10:35:00 +01:00
ip6.h slirp: Adding IPv6, ICMPv6 Echo and NDP autoconfiguration 2016-03-15 10:35:00 +01:00
ip_icmp.c slirp: Clean up includes 2016-02-04 17:41:30 +00:00
ip_icmp.h
ip_input.c slirp: Clean up includes 2016-02-04 17:41:30 +00:00
ip_output.c slirp: Clean up includes 2016-02-04 17:41:30 +00:00
ip.h
libslirp.h
main.h
Makefile.objs slirp: Adding IPv6, ICMPv6 Echo and NDP autoconfiguration 2016-03-15 10:35:00 +01:00
mbuf.c slirp: Clean up includes 2016-02-04 17:41:30 +00:00
mbuf.h slirp: Generalizing and neutralizing ARP code 2016-02-04 13:22:06 +08:00
misc.c slirp: Clean up includes 2016-02-04 17:41:30 +00:00
misc.h
ndp_table.c slirp: Adding IPv6, ICMPv6 Echo and NDP autoconfiguration 2016-03-15 10:35:00 +01:00
sbuf.c slirp: Clean up includes 2016-02-04 17:41:30 +00:00
sbuf.h
slirp_config.h
slirp.c slirp: Adding IPv6, ICMPv6 Echo and NDP autoconfiguration 2016-03-15 10:35:00 +01:00
slirp.h slirp: Adding IPv6, ICMPv6 Echo and NDP autoconfiguration 2016-03-15 10:35:00 +01:00
socket.c slirp: Clean up includes 2016-02-04 17:41:30 +00:00
socket.h slirp: Adding IPv6, ICMPv6 Echo and NDP autoconfiguration 2016-03-15 10:35:00 +01:00
tcp_input.c osdep: remove use of socket_error() from all code 2016-03-10 17:19:34 +00:00
tcp_output.c slirp: Clean up includes 2016-02-04 17:41:30 +00:00
tcp_subr.c slirp: Clean up includes 2016-02-04 17:41:30 +00:00
tcp_timer.c slirp: Clean up includes 2016-02-04 17:41:30 +00:00
tcp_timer.h
tcp_var.h
tcp.h
tcpip.h
tftp.c slirp: Clean up includes 2016-02-04 17:41:30 +00:00
tftp.h
udp.c slirp: Clean up includes 2016-02-04 17:41:30 +00:00
udp.h slirp: Make udp_attach IPv6 compatible 2016-02-04 14:13:11 +08:00