mirror of
https://github.com/Motorhead1991/qemu.git
synced 2025-08-01 06:43:53 -06:00
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>
This commit is contained in:
parent
1a0ca1e1f6
commit
1ab74cea06
5 changed files with 69 additions and 37 deletions
|
@ -42,5 +42,5 @@ extern int tcp_keepintvl;
|
|||
#define PROTO_PPP 0x2
|
||||
#endif
|
||||
|
||||
void if_encap(Slirp *slirp, const uint8_t *ip_data, int ip_data_len);
|
||||
int if_encap(Slirp *slirp, struct mbuf *ifm);
|
||||
ssize_t slirp_send(struct socket *so, const void *buf, size_t len, int flags);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue