Hello, This is another respin of IPv6 in Qemu -net user mode.
The following patches first make some refactoring to make current code ready for IPv6, and do not change the behavior. The actual IPv6 support will then be submitted as a separate patch series. Difference with version 5 is: - separate generalizing ARP code and adding switch for incoming frames - move IPv4/6 frame preparation into separate functions - bump save version_id - separate factorizing solookup and making it family-agnostic - simplify indentation in sockaddr_equal Here is a summary of the patches: [PATCH 1/9] slirp: goto bad in udp_input if sosendto fails [PATCH 2/9] slirp: Generalizing and neutralizing ARP code [PATCH 3/9] slirp: Adding address family switch for incoming frames [PATCH 4/9] slirp: Make Socket structure IPv6 compatible [PATCH 5/9] slirp: Factorizing address translation [PATCH 6/9] slirp: Factorizing and cleaning solookup() [PATCH 7/9] slirp: Add sockaddr_equal, make solookup family-agnostic [PATCH 8/9] slirp: Make udp_attach IPv6 compatible [PATCH 9/9] slirp: Adding family argument to tcp_fconnect()