Source-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[src/trunk]: src/sys/netatalk Use if_addr_init() instead of ifp->if_ioctl().



details:   https://anonhg.NetBSD.org/src/rev/5a87bd9464e4
branches:  trunk
changeset: 770501:5a87bd9464e4
user:      dyoung <dyoung%NetBSD.org@localhost>
date:      Wed Oct 19 01:50:27 2011 +0000

description:
Use if_addr_init() instead of ifp->if_ioctl().

diffstat:

 sys/netatalk/at_control.c |  6 +++---
 1 files changed, 3 insertions(+), 3 deletions(-)

diffs (27 lines):

diff -r 7ba5f6b3dfab -r 5a87bd9464e4 sys/netatalk/at_control.c
--- a/sys/netatalk/at_control.c Wed Oct 19 01:49:50 2011 +0000
+++ b/sys/netatalk/at_control.c Wed Oct 19 01:50:27 2011 +0000
@@ -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 <sys/cdefs.h>
-__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 <sys/param.h>
 #include <sys/systm.h>
@@ -575,7 +575,7 @@
         * 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..



Home | Main Index | Thread Index | Old Index