Date: Thu, 24 Nov 2011 22:46:12 +0000 (UTC) From: Gleb Smirnoff <glebius@FreeBSD.org> To: src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-head@freebsd.org Subject: svn commit: r227959 - head/sys/netinet Message-ID: <201111242246.pAOMkC0B016009@svn.freebsd.org>
next in thread | raw e-mail | index | archive | help
Author: glebius Date: Thu Nov 24 22:46:11 2011 New Revision: 227959 URL: http://svn.freebsd.org/changeset/base/227959 Log: Remove superfluous check: SIOCAIFADDR must have ifra_addr supplied. Modified: head/sys/netinet/in.c Modified: head/sys/netinet/in.c ============================================================================== --- head/sys/netinet/in.c Thu Nov 24 22:43:48 2011 (r227958) +++ head/sys/netinet/in.c Thu Nov 24 22:46:11 2011 (r227959) @@ -541,10 +541,7 @@ in_control(struct socket *so, u_long cmd maskIsNew = 0; hostIsNew = 1; error = 0; - if (ifra->ifra_addr.sin_len == 0) { - ifra->ifra_addr = ia->ia_addr; - hostIsNew = 0; - } else if (ifra->ifra_addr.sin_addr.s_addr == + if (ifra->ifra_addr.sin_addr.s_addr == ia->ia_addr.sin_addr.s_addr) hostIsNew = 0; if (ifra->ifra_mask.sin_len) {
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201111242246.pAOMkC0B016009>