Todd C. Miller
7ce95c61c8
Use erealloc3()
2003-03-13 17:03:23 +00:00
Todd C. Miller
c96a62e26c
Use emalloc2() to allocate N things of a certain size.
2003-03-12 21:45:51 +00:00
Todd C. Miller
35014b44bc
Older BSDi releases lack freeifaddrs() so add a test for that and if
...
it is not present just use free().
2002-01-18 19:17:07 +00:00
Todd C. Miller
3b925f81a2
need stdlib.h here too
2001-12-14 22:12:39 +00:00
Todd C. Miller
f61723c47b
o Reorder some headers and use STDC_HEADERS define properly
...
o Update copyright year
2001-12-14 19:52:47 +00:00
Todd C. Miller
d7050d5615
Add support for using getifaddrs() to get the list of ip addr / netmask
...
pairs. Currently IPv4-only.
2000-06-04 23:57:22 +00:00
Todd C. Miller
d7ebfe06d1
o Digital UNIX needs to check for *snprintf() before -ldb is added to LIBS
...
since -ldb includes a bogus snprintf().
o Add forward refs for struct mbuf and struct rtentry for Digital UNIX.
o Reorder some functions in snprintf.c to fix -Wall
o Add missing includes to fix more -Wall
1999-08-12 16:24:10 +00:00
Todd C. Miller
0d732401f4
add 4th term to license similar to term 5 in the apache license
1999-07-31 16:19:50 +00:00
Todd C. Miller
692fe8cdb3
BSD-style copyright, cosmetic changes
1999-07-22 12:49:28 +00:00
Todd C. Miller
80287c981c
Move interface-related defines to interfaces.h so we don't have to include
...
<netinet/in.h> everywhere.
1999-05-17 01:36:30 +00:00
Todd C. Miller
06e586ee7b
Function names should be flush with the start of the line so they can be found trivially in an editor and with grep
1999-04-10 04:49:03 +00:00
Todd C. Miller
eecc5ce1c9
free(3) is already void, no need to cast it
1999-04-10 04:40:57 +00:00
Todd C. Miller
e6deacb6c4
Crank version to 1.6 and combine copyright statements
1999-04-05 20:57:25 +00:00
Todd C. Miller
79c46d1c81
++version
1999-03-29 04:05:15 +00:00
Todd C. Miller
382ef75493
Use emalloc/erealloc/estrdup
1999-03-29 02:59:34 +00:00
Todd C. Miller
ddb4cacb46
include sys/time.h; aparently AIX needs it. ppz@cdu.elektra.ru
1999-02-26 06:19:49 +00:00
Todd C. Miller
52916f16ac
add explicate copyright
1999-02-03 04:32:19 +00:00
Todd C. Miller
826fe213f2
add sudo tags
1999-01-17 23:16:20 +00:00
Todd C. Miller
d3aaf52283
crank version and regen files
1999-01-17 22:40:55 +00:00
Todd C. Miller
d61383848f
close sock when we are done with it
1998-12-07 21:16:00 +00:00
Todd C. Miller
6bf40c3c0d
add back check for sys/sockio.h but only use it if SIOCGIFCONF
...
is not defined
1998-11-18 20:31:25 +00:00
Todd C. Miller
62dba8f4d1
more -Wall
1998-11-18 04:16:13 +00:00
Todd C. Miller
c253188f55
-Wall
1998-11-18 03:51:10 +00:00
Todd C. Miller
de21acbb37
kill perror("malloc") since we already have a good error messages
...
pw_ent -> pw for brevity
1998-11-04 01:39:18 +00:00
Todd C. Miller
5bfb481ca7
no more options.h
1998-10-15 05:41:26 +00:00
Todd C. Miller
a40aca2b10
kill sys/time.h
1998-10-15 05:32:30 +00:00
Todd C. Miller
0ef9f25d7e
updated version
1998-09-17 16:27:15 +00:00
Todd C. Miller
8021b8cb88
kill unused localhost_mask var
...
copy if name to ifr_tmp after we zero it
1998-09-14 15:48:05 +00:00
Todd C. Miller
d228cff313
initialize previfname
1998-09-07 16:06:23 +00:00
Todd C. Miller
65de4eeb79
Don't use SIOCGIFADDR, we don't need it
...
Use SIOCGIFFLAGS if we have it
check ifr_flags against IFF_UP and IFF_LOOPBACK instead of kludging it
1998-09-07 15:51:23 +00:00
Todd C. Miller
12477fd6e6
updated version
1998-04-06 03:35:50 +00:00
Todd C. Miller
e37e1e56b6
updated version
1998-03-31 05:05:49 +00:00
Todd C. Miller
c866646cdf
updated version
1998-02-18 21:39:31 +00:00
Todd C. Miller
9719fa21ba
dynamically size ifconf buffer
1998-02-17 04:58:33 +00:00
Todd C. Miller
bc7803cd08
updated version
1998-02-06 20:49:24 +00:00
Todd C. Miller
0c362fb216
updated version
1998-01-21 06:33:06 +00:00
Todd C. Miller
bb6a33e080
updated version
1998-01-21 05:50:58 +00:00
Todd C. Miller
166789a1dd
++version
1998-01-13 04:48:42 +00:00
Todd C. Miller
5e723efe75
++version
1996-11-14 02:37:56 +00:00
Todd C. Miller
e712f1152c
++version
1996-10-07 05:05:33 +00:00
Todd C. Miller
6a230806a8
courtesan
1996-09-08 00:21:42 +00:00
Todd C. Miller
d189849b44
++version
1996-08-30 00:37:04 +00:00
Todd C. Miller
35825133a7
++version
1996-08-17 23:25:40 +00:00
Todd C. Miller
ed9227dfd7
fixed a typo/thinko that broke BSD's with sa_len
1996-07-12 00:59:06 +00:00
Todd C. Miller
79810c01e0
removed cats of ioctl to int since they didn't shut up -Wall
1996-06-20 04:45:39 +00:00
Todd C. Miller
5fc1d4b79c
explicately cast ioctl() to int since it it not always declared
1996-06-20 04:43:25 +00:00
Todd C. Miller
ed5fcdccca
added STUB_LOAD_INTERFACES
...
++version
1996-01-14 20:16:46 +00:00
Todd C. Miller
a90d2d478e
++version
1996-01-09 17:52:49 +00:00
Todd C. Miller
3aba9c4785
fixed for AIX
...
now deal if num_interfaces == 0 (should not happen)
1995-12-22 02:53:12 +00:00
Todd C. Miller
6d0d2c8bad
works on ISC again
1995-12-20 20:52:17 +00:00