svn commit: r227830 - head/sys/netinet

Gleb Smirnoff glebius at FreeBSD.org
Tue Nov 22 19:37:57 UTC 2011


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();


More information about the svn-src-all mailing list