diff options
author | tegge <tegge@FreeBSD.org> | 1997-05-14 16:39:52 +0000 |
---|---|---|
committer | tegge <tegge@FreeBSD.org> | 1997-05-14 16:39:52 +0000 |
commit | 87b96fe037bf4cd2123c99459fddc369f7668d43 (patch) | |
tree | 849a98d07fa8ced402b87514a4c4e29fbd5c33bc /sys | |
parent | 6c6d8f1e04a60b1aac60d68fd8102021e8203f29 (diff) | |
download | FreeBSD-src-87b96fe037bf4cd2123c99459fddc369f7668d43.zip FreeBSD-src-87b96fe037bf4cd2123c99459fddc369f7668d43.tar.gz |
Don't send arp request for the ip address 0.0.0.0.
Diffstat (limited to 'sys')
-rw-r--r-- | sys/netinet/if_ether.c | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/sys/netinet/if_ether.c b/sys/netinet/if_ether.c index 1c6952e..c02abc0 100644 --- a/sys/netinet/if_ether.c +++ b/sys/netinet/if_ether.c @@ -31,7 +31,7 @@ * SUCH DAMAGE. * * @(#)if_ether.c 8.1 (Berkeley) 6/10/93 - * $Id$ + * $Id: if_ether.c,v 1.39 1997/02/22 09:41:24 peter Exp $ */ /* @@ -630,8 +630,9 @@ arp_ifinit(ac, ifa) struct arpcom *ac; struct ifaddr *ifa; { - arprequest(ac, &(IA_SIN(ifa)->sin_addr.s_addr), - &(IA_SIN(ifa)->sin_addr.s_addr), ac->ac_enaddr); + if (ntohl(IA_SIN(ifa)->sin_addr.s_addr) != INADDR_ANY) + arprequest(ac, &(IA_SIN(ifa)->sin_addr.s_addr), + &(IA_SIN(ifa)->sin_addr.s_addr), ac->ac_enaddr); ifa->ifa_rtrequest = arp_rtrequest; ifa->ifa_flags |= RTF_CLONING; } |