]> git.proxmox.com Git - qemu.git/commit - slirp/slirp.c
Delayed IP packets
authorFabien Chouteau <chouteau@adacore.com>
Mon, 1 Aug 2011 16:18:37 +0000 (18:18 +0200)
committerJan Kiszka <jan.kiszka@siemens.com>
Wed, 3 Aug 2011 10:57:11 +0000 (12:57 +0200)
commit1ab74cea060d776b19857c3babc64d729bbdba5c
tree024f3b1df329cc1cbf5cd0069df0e585e5ffe957
parent1a0ca1e1f6011a8623ec0653a1b35bbfc3f576c9
Delayed IP packets

In the current implementation, if Slirp tries to send an IP packet to a client
with an unknown hardware address, the packet is simply dropped and an ARP
request is sent (if_encap in slirp/slirp.c).

With this patch, Slirp will send the ARP request, re-queue the packet and try
to send it later. The packet is dropped after one second if the ARP reply is
not received.

Signed-off-by: Fabien Chouteau <chouteau@adacore.com>
Signed-off-by: Jan Kiszka <jan.kiszka@siemens.com>
slirp/if.c
slirp/main.h
slirp/mbuf.c
slirp/mbuf.h
slirp/slirp.c