bash-5.1$ git diff net/net.c diff --git a/net/net.c b/net/net.c index c1bb19a523..af68029428 100644 --- a/net/net.c +++ b/net/net.c @@ -173,6 +173,7 @@ static void qemu_macaddr_set_used(MACAddr *macaddr) for (index = 0x56; index < 0xFF; index++) { if (macaddr->a[5] == index) { mac_table[index]++; + return; } } } @@ -188,6 +189,7 @@ static void qemu_macaddr_set_free(MACAddr *macaddr) for (index = 0x56; index < 0xFF; index++) { if (macaddr->a[5] == index) { mac_table[index]--; + return; } } }
- macaddr: ignore the checking from index to 0xFF Liu Jaloo
- Re: macaddr: ignore the checking from index to 0xFF Peter Maydell