summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authordelphij <delphij@FreeBSD.org>2015-01-13 05:32:51 +0000
committerdelphij <delphij@FreeBSD.org>2015-01-13 05:32:51 +0000
commit59b73c2da9b0c61276df671298f7e1584bfbb2fd (patch)
treec011ae29e5388c9fc5cf5f8175eae8a9807fcbd8
parent5c09b3e7717ec16d7aa145e5704120081a416239 (diff)
downloadFreeBSD-src-59b73c2da9b0c61276df671298f7e1584bfbb2fd.zip
FreeBSD-src-59b73c2da9b0c61276df671298f7e1584bfbb2fd.tar.gz
Use the common codepath to handle SIOCGIFADDR.
Before this change, the current code handles SIOCGIFADDR the same way with SIOCSIFADDR, which involves full arp_ifinit, et al. They should be unnecessary for SIOCGIFADDR case. Differential Revision: https://reviews.freebsd.org/D1508 Reviewed by: glebius MFC after: 2 weeks
-rw-r--r--sys/dev/xen/netback/netback.c1
-rw-r--r--sys/dev/xen/netfront/netfront.c1
2 files changed, 0 insertions, 2 deletions
diff --git a/sys/dev/xen/netback/netback.c b/sys/dev/xen/netback/netback.c
index a749f90..794940c 100644
--- a/sys/dev/xen/netback/netback.c
+++ b/sys/dev/xen/netback/netback.c
@@ -2251,7 +2251,6 @@ xnb_ioctl(struct ifnet *ifp, u_long cmd, caddr_t data)
mtx_unlock(&xnb->sc_lock);
break;
case SIOCSIFADDR:
- case SIOCGIFADDR:
#ifdef INET
mtx_lock(&xnb->sc_lock);
if (ifa->ifa_addr->sa_family == AF_INET) {
diff --git a/sys/dev/xen/netfront/netfront.c b/sys/dev/xen/netfront/netfront.c
index 440c189..8f401ac 100644
--- a/sys/dev/xen/netfront/netfront.c
+++ b/sys/dev/xen/netfront/netfront.c
@@ -1741,7 +1741,6 @@ xn_ioctl(struct ifnet *ifp, u_long cmd, caddr_t data)
int mask, error = 0;
switch(cmd) {
case SIOCSIFADDR:
- case SIOCGIFADDR:
#ifdef INET
XN_LOCK(sc);
if (ifa->ifa_addr->sa_family == AF_INET) {
OpenPOWER on IntegriCloud