Source-Changes-HG archive

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

[src/trunk]: src/sbin/ifconfig ioctl -> prog_ioctl as pointed out by pooka@



details:   https://anonhg.NetBSD.org/src/rev/1f6cacc8f9e1
branches:  trunk
changeset: 338146:1f6cacc8f9e1
user:      roy <roy%NetBSD.org@localhost>
date:      Tue May 12 14:05:29 2015 +0000

description:
ioctl -> prog_ioctl as pointed out by pooka@

diffstat:

 sbin/ifconfig/af_inet.c  |  6 +++---
 sbin/ifconfig/af_inet6.c |  6 +++---
 2 files changed, 6 insertions(+), 6 deletions(-)

diffs (54 lines):

diff -r 00b6c69f66ed -r 1f6cacc8f9e1 sbin/ifconfig/af_inet.c
--- a/sbin/ifconfig/af_inet.c   Tue May 12 10:37:20 2015 +0000
+++ b/sbin/ifconfig/af_inet.c   Tue May 12 14:05:29 2015 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: af_inet.c,v 1.16 2015/05/02 14:43:51 roy Exp $ */
+/*     $NetBSD: af_inet.c,v 1.17 2015/05/12 14:05:29 roy Exp $ */
 
 /*
  * Copyright (c) 1983, 1993
@@ -31,7 +31,7 @@
 
 #include <sys/cdefs.h>
 #ifndef lint
-__RCSID("$NetBSD: af_inet.c,v 1.16 2015/05/02 14:43:51 roy Exp $");
+__RCSID("$NetBSD: af_inet.c,v 1.17 2015/05/12 14:05:29 roy Exp $");
 #endif /* not lint */
 
 #include <sys/param.h> 
@@ -232,7 +232,7 @@
        ifr.ifr_addr = *ifa->ifa_addr;
        if ((s = getsock(AF_INET)) == -1)
                err(EXIT_FAILURE, "%s: getsock", __func__);
-       if (ioctl(s, SIOCGIFAFLAG_IN, &ifr) == -1)
+       if (prog_ioctl(s, SIOCGIFAFLAG_IN, &ifr) == -1)
                err(EXIT_FAILURE, "SIOCGIFAFLAG_IN");
        return ifr.ifr_addrflags & IN_IFF_TENTATIVE ? true : false;
 #else
diff -r 00b6c69f66ed -r 1f6cacc8f9e1 sbin/ifconfig/af_inet6.c
--- a/sbin/ifconfig/af_inet6.c  Tue May 12 10:37:20 2015 +0000
+++ b/sbin/ifconfig/af_inet6.c  Tue May 12 14:05:29 2015 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: af_inet6.c,v 1.32 2015/04/22 17:42:22 roy Exp $        */
+/*     $NetBSD: af_inet6.c,v 1.33 2015/05/12 14:05:29 roy Exp $        */
 
 /*
  * Copyright (c) 1983, 1993
@@ -31,7 +31,7 @@
 
 #include <sys/cdefs.h>
 #ifndef lint
-__RCSID("$NetBSD: af_inet6.c,v 1.32 2015/04/22 17:42:22 roy Exp $");
+__RCSID("$NetBSD: af_inet6.c,v 1.33 2015/05/12 14:05:29 roy Exp $");
 #endif /* not lint */
 
 #include <sys/param.h> 
@@ -487,7 +487,7 @@
        memset(&ifr, 0, sizeof(ifr));
        strncpy(ifr.ifr_name, ifa->ifa_name, sizeof(ifr.ifr_name));
        ifr.ifr_addr = *(struct sockaddr_in6 *)ifa->ifa_addr;
-       if (ioctl(s, SIOCGIFAFLAG_IN6, &ifr) == -1)
+       if (prog_ioctl(s, SIOCGIFAFLAG_IN6, &ifr) == -1)
                err(EXIT_FAILURE, "SIOCGIFAFLAG_IN6");
        return ifr.ifr_ifru.ifru_flags6 & IN6_IFF_TENTATIVE ? true : false;
 }



Home | Main Index | Thread Index | Old Index