Statistics
| Branch: | Revision:

root / slirp / arp_table.c @ 34b5d2c6

History | View | Annotate | Download (3.4 kB)

# Date Author Comment
ed6bc28e 09/01/2013 06:09 pm Peter Maydell

slirp/arp_table.c: Avoid shifting into sign bit of signed integers

"0xf << 28" shifts right into the sign bit, since 0xf is a signed
integer. Use the 'U' suffix to force an unsigned shift to avoid
this undefined behaviour and a clang sanitizer warning.

Signed-off-by: Peter Maydell <>...

1a89b608 11/15/2012 11:27 am Nickolai Zeldovich

slirp: Don't crash on packets from 0.0.0.0/8.

LWIP can generate packets with a source of 0.0.0.0, which triggers an
assertion failure in arp_table_add(). Instead of crashing, simply return
to avoid adding an invalid ARP table entry.

Signed-off-by: Nickolai Zeldovich <>...

5a371a2e 08/05/2011 01:51 pm Jan Kiszka

slirp: Fix types of IP address parameters

Should be uint32_t for IPv4, not int. Also avoid in_addr_t without
proper includes. Fixes build regression on mingw32.

Signed-off-by: Jan Kiszka <>

1a0ca1e1 08/03/2011 01:57 pm Fabien Chouteau

Simple ARP table

This patch adds a simple ARP table in Slirp and also adds handling of
gratuitous ARP requests.

Signed-off-by: Fabien Chouteau <>
Signed-off-by: Jan Kiszka <>