Andreas Gustafsson
5d82424f5d
New source file netaddr.c; new functions isc_netaddr_eqprefix(),
...
isc_netaddr_masktoprefixlen(), isc_netaddr_fromsockaddr(),
isc_netaddr_fromin(), isc_netaddr_fromin6(), isc_sockaddr_fromnetaddr();
new result code ISC_R_MASKNONCONTIG
2000-02-09 22:52:37 +00:00
Bob Halley
ca41b452ed
update copyrights
2000-02-03 23:08:31 +00:00
David Lawrence
c5f33ba0f0
added isc_sockaddr_getport
2000-01-31 21:52:17 +00:00
Bob Halley
043c6c62e6
add isc_sockaddr_setport()
2000-01-26 19:22:41 +00:00
Andreas Gustafsson
37eebcb917
isc_sockaddr_eqaddrprefix() checked prefix length against wrong value
1999-11-30 22:03:16 +00:00
Andreas Gustafsson
33911b409b
added isc_sockaddr_eqaddrprefix()
1999-11-29 20:00:19 +00:00
Bob Halley
a5cda71d84
fix bad return value
1999-10-31 00:06:38 +00:00
Bob Halley
8393bb7925
eliminate type warning
1999-10-31 00:01:47 +00:00
Andreas Gustafsson
297d85a324
silenced compiler warning
1999-10-30 01:37:55 +00:00
Andreas Gustafsson
9ed7290e07
new isc_sockaddr_totext() had a comparison backwards
1999-10-30 01:00:05 +00:00
Andreas Gustafsson
91fbf6ef97
the new isc_sockaddr_totext() now null terminates the text;
...
the terminating null is not part of the buffer's used region
1999-10-29 23:53:26 +00:00
Andreas Gustafsson
4ed0c326e6
isc_sockaddr_totext() now writes to an isc_buf_t, not
...
a dynamically allocated string
1999-10-29 23:46:27 +00:00
Andreas Gustafsson
0e42fb6588
ISC_NET_HAVESALEN -> ISC_PLATFORM_HAVESALEN
1999-10-28 01:36:36 +00:00
Mark Andrews
0f0ed7ea47
Add "const" to input only arguements.
1999-10-25 14:37:04 +00:00
James Brister
54570ba7ff
Added isc_sockaddr_eqaddr and its protoype: compares only the addresses
...
(and not the port values) of two isc_sockaddr_t.
1999-10-25 10:07:37 +00:00
David Lawrence
a252c2771f
include isc/net.h, do not include sys/socket.h, netinet/in.h or arpa/inet.h,
...
and/or use type in_port_t instead of unsigned int for ports
1999-10-02 02:54:16 +00:00
David Lawrence
2af4e7e0e6
Remove #include <unistd.h>. Not portable to NT and is apparently
...
not needed for any unix-standard thing, at least none that I could
identify in the file, and removing it did not generate any errors
on BSD/OS.
1999-09-27 19:23:57 +00:00
Mark Andrews
ff89d6add5
add isc_sockaddr_totext()
1999-09-02 12:07:00 +00:00
Michael Graff
2dcb05b6a8
more portable method to generate v6 from v4 sockaddrs
1999-08-28 05:33:29 +00:00
Bob Halley
ae35d63c9d
memset structures to 0; add isc_sockaddr_v6fromin() and isc_sockaddr_pf()
1999-07-15 20:10:38 +00:00
Bob Halley
1ece2b413f
add isc_sockaddr_from{in,in6}
1999-07-13 01:46:15 +00:00
Bob Halley
e430659af6
lint
1999-07-12 19:34:46 +00:00
Bob Halley
3724ec85fb
isc_sockaddr_equal() wasn't matching sockets that really were equal because
...
it was comparing the sin_zero fields which weren't equal.
1999-07-12 18:43:53 +00:00
Bob Halley
56f6fd8362
simply _equal; add _hash
1999-07-08 00:04:44 +00:00
Bob Halley
283be780d8
do not need to include sys/types.h or sys/socket.h
1999-07-06 22:58:44 +00:00
Bob Halley
38bc5e05ab
fix casting problem
1999-06-28 18:29:35 +00:00
Michael Graff
5c02d3183f
add isc_sockaddr_equal()
1999-06-25 22:09:35 +00:00