1: /*
2: * Copyright (c) 1983 Regents of the University of California.
3: * All rights reserved. The Berkeley software License Agreement
4: * specifies the terms and conditions for redistribution.
5: */
6:
7: #if defined(LIBC_SCCS) && !defined(lint)
8: static char sccsid[] = "@(#)inet_ntoa.c 5.2 (Berkeley) 3/9/86";
9: #endif LIBC_SCCS and not lint
10:
11: /*
12: * Convert network-format internet address
13: * to base 256 d.d.d.d representation.
14: */
15: #include <sys/types.h>
16: #include <netinet/in.h>
17:
18: char *
19: inet_ntoa(in)
20: struct in_addr in;
21: {
22: static char b[18];
23: register char *p;
24:
25: p = (char *)∈
26: #define UC(b) (((int)b)&0xff)
27: sprintf(b, "%d.%d.%d.%d", UC(p[0]), UC(p[1]), UC(p[2]), UC(p[3]));
28: return (b);
29: }
Defined functions
inet_ntoa
defined in line
18; used 105 times
- in /usr/include/arpa/inet.h line
14
- in /usr/src/etc/arp.c line
175,
182,
226,
232,
298
- in /usr/src/etc/ftpd/ftpd.c line
425,
441,
460,
758
- in /usr/src/etc/ifconfig.c line
310,
322,
340,
353
- in /usr/src/etc/inetd.c line
679
- in /usr/src/etc/named/db_dump.c line
63,
97,
164
- in /usr/src/etc/named/ns_forw.c line
86,
298
- in /usr/src/etc/named/ns_init.c line
281
- in /usr/src/etc/named/ns_main.c line
337,
420,
744
- in /usr/src/etc/named/ns_maint.c line
151
- in /usr/src/etc/named/ns_req.c line
468
- in /usr/src/etc/named/ns_resp.c line
378,
415,
437
- in /usr/src/etc/named/tools/ns.lookup/src/debug.c line
239-243(2),
331
- in /usr/src/etc/named/tools/ns.lookup/src/list.c line
424-426(2)
- in /usr/src/etc/named/tools/ns.lookup/src/main.c line
193,
769-772(2)
- in /usr/src/etc/named/tools/ns.lookup/src/res.h line
112
- in /usr/src/etc/named/tools/ns.lookup/src/subr.c line
164,
201,
429-433(2)
- in /usr/src/etc/named/tools/nsquery.c line
60-63(2)
- in /usr/src/etc/named/tools/nstest.c line
17
- in /usr/src/etc/ping.c line
308,
318,
326,
340
- in /usr/src/etc/rlogind.c line
77,
104
- in /usr/src/etc/route.c line
368
- in /usr/src/etc/routed/af.c line
131-133(2)
- in /usr/src/etc/routed/tools/query.c line
147-152(2),
201-204(2)
- in /usr/src/etc/routed/trace.c line
149-151(2),
232-235(2),
252
- in /usr/src/etc/rshd.c line
150
- in /usr/src/etc/syslogd.c line
705-707(2),
716-717(2)
- in /usr/src/etc/telnetd.c line
242,
287
- in /usr/src/etc/timed/readmsg.c line
415,
429,
438
- in /usr/src/etc/timed/timed.c line
523
- in /usr/src/etc/trpt.c line
251-253(2)
- in /usr/src/games/hunt/hunt.c line
133
- in /usr/src/include/arpa/inet.h line
14
- in /usr/src/lib/libc/net/rcmd.c line
78,
85
- in /usr/src/lib/libc/net/res_debug.c line
21,
217-221(2),
306
- in /usr/src/lib/libc/net/res_send.c line
69
- in /usr/src/new/X/xhost/xhost.c line
183,
199
- in /usr/src/new/mh/support/pop/popd.c line
184
- in /usr/src/new/mh/support/pop/smtpd.c line
177
- in /usr/src/new/nntp/server/access.c line
84,
91
- in /usr/src/ucb/ftp/ftp.c line
82,
89
- in /usr/src/ucb/systat/netcmds.c line
257
- in /usr/src/ucb/telnet.c line
2100,
2107
- in /usr/src/usr.bin/uucp/cico.c line
309,
330,
358
- in /usr/src/usr.bin/uucp/uucpd.c line
196,
277
- in /usr/src/usr.lib/lpr/lpd.c line
387,
396
- in /usr/src/usr.lib/sendmail/src/daemon.c line
228-232(2)
Defined variables
sccsid
defined in line
8;
never used
Defined macros
UC
defined in line
26; used 4 times