diff options
Diffstat (limited to 'networking/udhcp/dhcpc.c')
-rw-r--r-- | networking/udhcp/dhcpc.c | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/networking/udhcp/dhcpc.c b/networking/udhcp/dhcpc.c index 8009bec04..d99711c43 100644 --- a/networking/udhcp/dhcpc.c +++ b/networking/udhcp/dhcpc.c | |||
@@ -439,6 +439,9 @@ int main(int argc, char *argv[]) | |||
439 | (unsigned long) packet.xid, xid); | 439 | (unsigned long) packet.xid, xid); |
440 | continue; | 440 | continue; |
441 | } | 441 | } |
442 | /* Ignore packets that aren't for us */ | ||
443 | if (memcmp(client_config.arp,packet.chaddr,6)) | ||
444 | continue; | ||
442 | 445 | ||
443 | if ((message = get_option(&packet, DHCP_MESSAGE_TYPE)) == NULL) { | 446 | if ((message = get_option(&packet, DHCP_MESSAGE_TYPE)) == NULL) { |
444 | DEBUG(LOG_ERR, "couldnt get option from packet -- ignoring"); | 447 | DEBUG(LOG_ERR, "couldnt get option from packet -- ignoring"); |