]> git.saurik.com Git - apple/xnu.git/blobdiff - bsd/netinet/if_atm.c
xnu-1228.9.59.tar.gz
[apple/xnu.git] / bsd / netinet / if_atm.c
index 5418f59266a0762626ff665d1489d8d46efe19d9..0fa54144fb381a986fc81960c634701e787fc320 100644 (file)
@@ -178,8 +178,7 @@ atm_rtrequest(req, rt, sa)
                 */
                bcopy(LLADDR(SDL(gate)), &api.aph, sizeof(api.aph));
                api.rxhand = NULL;
-               if (dlil_ioctl(0, rt->rt_ifp, SIOCATMENA, 
-                                                       (caddr_t)&api) != 0) {
+               if (ifnet_ioctl(rt->rt_ifpm 0, SIOCATMENA, &api) != 0) {
                        printf("atm: couldn't add VC\n");
                        goto failed;
                }
@@ -221,8 +220,7 @@ failed:
 
                bcopy(LLADDR(SDL(gate)), &api.aph, sizeof(api.aph));
                api.rxhand = NULL;
-               dlil_ioctl(0, rt->rt_ifp, SIOCATMDIS, 
-                                                       (caddr_t)&api);
+               ifnet_ioctl(rt->rt_ifp, 0, SIOCATMDIS, &api);
 
                break;
        }