forked from unpbook/unpv13e
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathProgs.siocgifconf
93 lines (93 loc) · 3.92 KB
/
Progs.siocgifconf
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
if (ioctl(s, SIOCGIFCONF, (char *) &ifc) < 0)
./games/hunt/hunt/hunt.c
i = ioctl(sock, SIOCGIFCONF, (char *)&ifc);
./lib/libc/net/getifaddrs.c
if (ioctl(s, SIOCGIFCONF, (char *)&ifc) < 0) {
./lib/librpc/rpc/get_myaddress.c
if (ioctl(sock, SIOCGIFCONF, (char *)&ifc) < 0) {
./lib/librpc/rpc/pmap_rmt.c
ioc.ic_cmd = SIOCGIFCONF;
m = ioctl(s, SIOCGIFCONF, (caddr_t) & ifconf);
report(LOG_ERR, "ioctl SIOCGIFCONF");
./libexec/bootpd/bootpd/getif.c
if (ioctl(fd, SIOCGIFCONF, (char *) &ifc) < 0 ||
report(LOG_ERR, "getether: SIOCGIFCONF: %s", get_errmsg);
./libexec/bootpd/bootptest/getether.c
#ifdef OSIOCGIFCONF
if (ioctl(fd, OSIOCGIFCONF, (char *)&ifc) < 0 ||
(void) strcpy(errbuf, "bpf: ioctl(OSIOCGIFCONF): %m");
if (ioctl(fd, SIOCGIFCONF, (char *)&ifc) < 0 ||
(void) strcpy(errbuf, "bpf: ioctl(SIOCGIFCONF): %m");
./libexec/rbootd/bpf.c
#define SCO_SIOCGIFCONF 0xc0084911
if ((r = ioctl(f, SIOCGIFCONF, &bifc)) == -1) {
case SCO_SIOCGIFCONF:
./sco/emulator/sco_sockops.c
case SIOCGIFCONF:
case OSIOCGIFCONF:
if (cmd == OSIOCGIFCONF) {
./sys/net/if.c
case SIOCGIFCONF_X25:
./sys/netccitt/pk_usrreq.c
if (ioctl(sk, SIOCGIFCONF, (caddr_t) &ifc) < 0)
./usr.sbin/amd/amd/wire.c
if (ioctl(vs, SIOCGIFCONF, (char *)&ifc) < 0) {
./usr.sbin/named/named/ns_main.c
if (ioctl(fd, SIOCGIFCONF, (caddr_t)&ifc) < 0 ||
err(FATAL, "init_all: SIOCGIFCONF: %s", strerror(errno));
We must instead get all the interfaces with SIOCGIFCONF
if (ioctl(fd, SIOCGIFCONF, (caddr_t)&ifc) < 0 ||
./usr.sbin/rarpd/rarpd.c
#ifdef SIOCGIFCONF
#ifdef SIOCGIFCONF
if (ioctl(s, SIOCGIFCONF, (char *)&ifc) < 0)
./usr.sbin/sendmail/src/conf.c
if (ioctl(fd, SIOCGIFCONF, (char *)&ifc) < 0 ||
(void)sprintf(errbuf, "SIOCGIFCONF: %s", pcap_strerror(errno));
./usr.sbin/tcpdump/libpcap/inet.c
if (ioctl(sock, SIOCGIFCONF, (char *)&ifc) < 0) {
./usr.sbin/timed/timed/timed.c
ioc.ic_cmd = SIOCGIFCONF;
if (ioctl(vs, SIOCGIFCONF, (char *)&ifc) < 0) {
#ifdef SIOCGIFCONF
#endif /* SIOCGIFCONF */
./usr.sbin/xntp/xntpd/ntp_io.c
#if ((defined(SVR4) && !defined(sun)) || defined(ISC)) && defined(SIOCGIFCONF)
#define SYSV_SIOCGIFCONF
#ifdef SYSV_SIOCGIFCONF
/* Deal with different SIOCGIFCONF ioctl semantics on SYSV, SVR4 */
if (cmd == SIOCGIFCONF)
/* SIOCGIFCONF is somewhat brain damaged on ISC. The argument
if (ret >= 0 && cmd == SIOCGIFCONF)
#else /* SYSV_SIOCGIFCONF */
#endif /* SYSV_SIOCGIFCONF */
#if defined(STREAMSCONN) && !defined(SYSV_SIOCGIFCONF) && !defined(NCR)
#ifdef SIOCGIFCONF
if (ifioctl (fd, SIOCGIFCONF, (char *) &ifc) < 0)
* this is ugly but SIOCGIFCONF returns decnet addresses in
#else /* SIOCGIFCONF */
#endif /* SIOCGIFCONF else */
#endif /* STREAMSCONN && !SYSV_SIOCGIFCONF else */
./X11/xc/programs/xdm/auth.c
#if ((defined(SVR4) && !defined(sun) && !defined(NCR)) || defined(ISC)) && defined(SIOCGIFCONF)
/* Deal with different SIOCGIFCONF ioctl semantics on these OSs */
if (cmd == SIOCGIFCONF)
/* SIOCGIFCONF is somewhat brain damaged on ISC. The argument
if (ret >= 0 && cmd == SIOCGIFCONF)
#else /* ((SVR4 && !sun && !NCR) || ISC) && SIOCGIFCONF */
#endif /* ((SVR4 && !sun) || ISC) && SIOCGIFCONF */
if (ifioctl (socketFD, (int) SIOCGIFCONF, (char *) &ifc) < 0)
./X11/xc/programs/xdm/chooser.c
#if ((defined(SVR4) && !defined(sun) && !defined(NCR)) || defined(ISC)) && defined(SIOCGIFCONF)
/* Deal with different SIOCGIFCONF ioctl semantics on these OSs */
if (cmd == SIOCGIFCONF)
/* SIOCGIFCONF is somewhat brain damaged on ISC. The argument
if (ret >= 0 && cmd == SIOCGIFCONF)
#else /* ((SVR4 && !sun) || ISC) && SIOCGIFCONF */
#endif /* ((SVR4 && !sun) || ISC) && SIOCGIFCONF */
#if !defined(SIOCGIFCONF) || (defined (hpux) && ! defined (HAS_IFREQ))
if (ifioctl (fd, (int) SIOCGIFCONF, (pointer) &ifc) < 0)
./X11/xc/programs/Xserver/os/access.c
#if !defined(SIOCGIFCONF) || (defined (hpux) && ! defined (HAS_IFREQ))
if (ioctl (fd, (int) SIOCGIFCONF, (pointer) &ifc) < 0)
./X11/xc/workInProgress/lbx/programs/lbxproxy/os/access.c