From 0438231d629c56244ac28aa81562b24dd74e666b Mon Sep 17 00:00:00 2001 From: dyoung Date: Wed, 19 Oct 2011 01:50:27 +0000 Subject: [PATCH] Use if_addr_init() instead of ifp->if_ioctl(). --- sys/netatalk/at_control.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/sys/netatalk/at_control.c b/sys/netatalk/at_control.c index 7fca0b857ba1..d4506caeca68 100644 --- a/sys/netatalk/at_control.c +++ b/sys/netatalk/at_control.c @@ -1,4 +1,4 @@ -/* $NetBSD: at_control.c,v 1.33 2010/01/30 21:48:30 is Exp $ */ +/* $NetBSD: at_control.c,v 1.34 2011/10/19 01:50:27 dyoung Exp $ */ /* * Copyright (c) 1990,1994 Regents of The University of Michigan. @@ -27,7 +27,7 @@ */ #include -__KERNEL_RCSID(0, "$NetBSD: at_control.c,v 1.33 2010/01/30 21:48:30 is Exp $"); +__KERNEL_RCSID(0, "$NetBSD: at_control.c,v 1.34 2011/10/19 01:50:27 dyoung Exp $"); #include #include @@ -575,7 +575,7 @@ at_ifinit(struct ifnet *ifp, struct at_ifaddr *aa, const struct sockaddr_at *sat * Now that we have selected an address, we need to tell the * interface about it, just in case it needs to adjust something. */ - if ((error = (*ifp->if_ioctl)(ifp, SIOCINITIFADDR, aa)) != 0) { + if ((error = if_addr_init(ifp, &aa->aa_ifa, true)) != 0) { /* * of course this could mean that it objects violently * so if it does, we back out again..