summaryrefslogtreecommitdiff
path: root/busybox/networking/udhcp/dhcpc.c
diff options
context:
space:
mode:
Diffstat (limited to 'busybox/networking/udhcp/dhcpc.c')
-rw-r--r--busybox/networking/udhcp/dhcpc.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/busybox/networking/udhcp/dhcpc.c b/busybox/networking/udhcp/dhcpc.c
index 449b517..91af915 100644
--- a/busybox/networking/udhcp/dhcpc.c
+++ b/busybox/networking/udhcp/dhcpc.c
@@ -419,6 +419,9 @@ int main(int argc, char *argv[])
(unsigned long) packet.xid, xid);
continue;
}
+ /* Ignore packets that aren't for us */
+ if (memcmp(client_config.arp,packet.chaddr,6))
+ continue;
if ((message = get_option(&packet, DHCP_MESSAGE_TYPE)) == NULL) {
DEBUG(LOG_ERR, "couldnt get option from packet -- ignoring");