Skip site navigation (1)Skip section navigation (2)
Date:      Tue, 22 Nov 2011 19:37:57 +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: r227830 - head/sys/netinet
Message-ID:  <201111221937.pAMJbvHI006418@svn.freebsd.org>

next in thread | raw e-mail | index | archive | help
Author: glebius
Date: Tue Nov 22 19:37:57 2011
New Revision: 227830
URL: http://svn.freebsd.org/changeset/base/227830

Log:
  Fix SIOCDIFADDR semantics: if no address is specified, then delete first one.

Modified:
  head/sys/netinet/in.c

Modified: head/sys/netinet/in.c
==============================================================================
--- head/sys/netinet/in.c	Tue Nov 22 19:31:43 2011	(r227829)
+++ head/sys/netinet/in.c	Tue Nov 22 19:37:57 2011	(r227830)
@@ -375,7 +375,7 @@ in_control(struct socket *so, u_long cmd
 	switch (cmd) {
 	case SIOCAIFADDR:
 	case SIOCDIFADDR:
-		{
+		if (ifra->ifra_addr.sin_len == AF_INET) {
 			struct in_ifaddr *oia;
 
 			IN_IFADDR_RLOCK();



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201111221937.pAMJbvHI006418>