ViewVC Help
View File | Revision Log | Show Annotations | View Changeset | Root Listing
root/svn/ircd-hybrid/trunk/src/res.c
Revision 8881 - (view) (annotate) - [select for diffs]
Modified Sun Apr 14 16:03:29 2019 UTC (4 years, 11 months ago) by michael
File length: 18705 byte(s)
Diff to previous 8752 , to selected 1124
- Add address_compare() and make use of it in some places

Revision 8752 - (view) (annotate) - [select for diffs]
Modified Tue Jan 1 11:07:01 2019 UTC (5 years, 2 months ago) by michael
File length: 19651 byte(s)
Diff to previous 8658 , to selected 1124
- Update copyright years

Revision 8658 - (view) (annotate) - [select for diffs]
Modified Mon Nov 12 19:03:09 2018 UTC (5 years, 4 months ago) by michael
File length: 19651 byte(s)
Diff to previous 8522 , to selected 1124
- Make use of the bool data type in some more places

Revision 8522 - (view) (annotate) - [select for diffs]
Modified Tue Apr 24 19:48:22 2018 UTC (5 years, 11 months ago) by michael
File length: 19583 byte(s)
Diff to previous 8437 , to selected 1124
- Style corrections

Revision 8437 - (view) (annotate) - [select for diffs]
Modified Thu Mar 29 09:05:34 2018 UTC (6 years ago) by michael
File length: 19587 byte(s)
Diff to previous 8385 , to selected 1124
- Stylistic changes

Revision 8385 - (view) (annotate) - [select for diffs]
Modified Fri Mar 16 20:09:55 2018 UTC (6 years ago) by michael
File length: 19575 byte(s)
Diff to previous 8363 , to selected 1124
- Rip out mempool

Revision 8363 - (view) (annotate) - [select for diffs]
Modified Sun Mar 4 14:27:01 2018 UTC (6 years ago) by michael
File length: 19680 byte(s)
Diff to previous 8339 , to selected 1124
- res.c:restart_resolver(): Added sanity test. ResolverFileDescriptor might be NULL at this point

Revision 8339 - (view) (annotate) - [select for diffs]
Modified Sat Mar 3 22:47:06 2018 UTC (6 years ago) by michael
File length: 19672 byte(s)
Diff to previous 8279 , to selected 1124
- Restore fd_table. No longer allocate fde_t items from within any other structures like the AuthRequest, or Connection structure
- struct AuthRequest once again is no longer allocated from within the Connection structure

Revision 8279 - (view) (annotate) - [select for diffs]
Modified Tue Feb 20 19:30:13 2018 UTC (6 years, 1 month ago) by michael
File length: 19596 byte(s)
Diff to previous 7924 , to selected 1124
- Update copyright years

Revision 7924 - (view) (annotate) - [select for diffs]
Modified Sat Dec 31 13:57:08 2016 UTC (7 years, 2 months ago) by michael
File length: 19596 byte(s)
Diff to previous 7914 , to selected 1124
- Update copyright years

Revision 7914 - (view) (annotate) - [select for diffs]
Modified Sun Nov 27 18:54:53 2016 UTC (7 years, 4 months ago) by michael
File length: 19596 byte(s)
Diff to previous 7870 , to selected 1124
- Style corrections

Revision 7870 - (view) (annotate) - [select for diffs]
Modified Wed Nov 9 20:12:50 2016 UTC (7 years, 4 months ago) by michael
File length: 19666 byte(s)
Diff to previous 7668 , to selected 1124
- Style corrections in several places

Revision 7668 - (view) (annotate) - [select for diffs]
Modified Wed Jul 20 17:09:49 2016 UTC (7 years, 8 months ago) by michael
File length: 19666 byte(s)
Diff to previous 7597 , to selected 1124
- Fixed svn properties

Revision 7597 - (view) (annotate) - [select for diffs]
Modified Fri Jun 10 16:17:17 2016 UTC (7 years, 9 months ago) by michael
File length: 19666 byte(s)
Diff to previous 7595 , to selected 1124
- res.c: minor stylistic changes

Revision 7595 - (view) (annotate) - [select for diffs]
Modified Thu Jun 9 16:04:26 2016 UTC (7 years, 9 months ago) by michael
File length: 19733 byte(s)
Diff to previous 7593 , to selected 1124
- res.c: reslist::id is now of unsigned type; remove reslist::sent which we currently don't need

Revision 7593 - (view) (annotate) - [select for diffs]
Modified Thu Jun 9 15:52:21 2016 UTC (7 years, 9 months ago) by michael
File length: 19886 byte(s)
Diff to previous 7569 , to selected 1124
- res.c:send_res_msg(): remove extraneous parentheses

Revision 7569 - (view) (annotate) - [select for diffs]
Modified Tue May 24 16:26:05 2016 UTC (7 years, 10 months ago) by michael
File length: 19888 byte(s)
Diff to previous 7330 , to selected 1124
- Rename init_resolver() to resolver_init()

Revision 7330 - (view) (annotate) - [select for diffs]
Modified Fri Feb 19 17:50:13 2016 UTC (8 years, 1 month ago) by michael
File length: 19888 byte(s)
Diff to previous 7006 , to selected 1124
- Now that we got time_t to work nicely on openbsd with snprintf's conversion specifiers,
  we ran into a similiar issue on Raspbian/ARMv7's time_t which is of signed 32 bit and
  doesn't cope at all with %j. Instead of doing tricks, get rid of time_t everywhere and
  forever and use uintmax_t instead which has at least a 'standardized' conversion specifier
  associated with it.

Revision 7006 - (view) (annotate) - [select for diffs]
Modified Fri Jan 1 00:07:54 2016 UTC (8 years, 2 months ago) by michael
File length: 19879 byte(s)
Diff to previous 6839 , to selected 1124
- Update copyright years

Revision 6839 - (view) (annotate) - [select for diffs]
Modified Tue Nov 24 17:28:49 2015 UTC (8 years, 4 months ago) by michael
File length: 19879 byte(s)
Diff to previous 6836 , to selected 1124
- res.c: remove unused header includes

Revision 6836 - (view) (annotate) - [select for diffs]
Modified Tue Nov 24 17:21:29 2015 UTC (8 years, 4 months ago) by michael
File length: 19975 byte(s)
Diff to previous 5347 , to selected 1124
- Move report_dns_servers() from res.c to m_stats.c

Revision 5347 - (view) (annotate) - [select for diffs]
Modified Sun Jan 11 12:42:20 2015 UTC (9 years, 2 months ago) by michael
File length: 20358 byte(s)
Diff to previous 5051 , to selected 1124
- Update copyright years

Revision 5051 - (view) (annotate) - [select for diffs]
Modified Sat Dec 13 21:31:06 2014 UTC (9 years, 3 months ago) by michael
File length: 20358 byte(s)
Diff to previous 4815 , to selected 1124
- Fixed compile warnings

Revision 4815 - (view) (annotate) - [select for diffs]
Modified Sat Nov 1 15:28:42 2014 UTC (9 years, 4 months ago) by michael
File length: 20352 byte(s)
Diff to previous 4565 , to selected 1124
- Renamed variables

Revision 4565 - (view) (annotate) - [select for diffs]
Modified Sun Aug 24 10:27:40 2014 UTC (9 years, 7 months ago) by michael
File length: 20339 byte(s)
Diff to previous 4476 , to selected 1124
- Update GPL 2 license headers

Revision 4476 - (view) (annotate) - [select for diffs]
Modified Thu Aug 14 09:49:49 2014 UTC (9 years, 7 months ago) by michael
File length: 20335 byte(s)
Diff to previous 4468 , to selected 1124
- res.c: style corrections

Revision 4468 - (view) (annotate) - [select for diffs]
Modified Wed Aug 13 19:00:50 2014 UTC (9 years, 7 months ago) by michael
File length: 20347 byte(s)
Diff to previous 4465 , to selected 1124
- res.c:query_name(): get rid of useless typecasting

Revision 4465 - (view) (annotate) - [select for diffs]
Modified Wed Aug 13 18:56:33 2014 UTC (9 years, 7 months ago) by michael
File length: 20363 byte(s)
Diff to previous 4461 , to selected 1124
- res.c:proc_answer(): error out and leave the client unresolved if we get an unexpected record type

Revision 4461 - (view) (annotate) - [select for diffs]
Modified Wed Aug 13 17:05:26 2014 UTC (9 years, 7 months ago) by michael
File length: 20627 byte(s)
Diff to previous 4460 , to selected 1124
- Removed stupid PF typedef in fdlist.h which prevented both gcc and clang from spitting out
  a warning about the first argument of s_bsd:ssl_handshake() being an 'int' when it really
  has to be a 'fde_t' pointer.
- Fixed first argument of s_bsd:ssl_handshake() which should be a 'fde_t' pointer instead of an 'int'.

Revision 4460 - (view) (annotate) - [select for diffs]
Modified Mon Aug 11 19:45:11 2014 UTC (9 years, 7 months ago) by michael
File length: 20608 byte(s)
Diff to previous 4457 , to selected 1124
- conf.c:conf_dns_lookup(): use gethost_byname_type()
- res.h, res.c: removed gethost_byname()

Revision 4457 - (view) (annotate) - [select for diffs]
Modified Mon Aug 11 16:28:23 2014 UTC (9 years, 7 months ago) by michael
File length: 20824 byte(s)
Diff to previous 4456 , to selected 1124
- res.c:proc_answer(): delete useless castings

Revision 4456 - (view) (annotate) - [select for diffs]
Modified Mon Aug 11 15:59:33 2014 UTC (9 years, 7 months ago) by michael
File length: 20966 byte(s)
Diff to previous 4453 , to selected 1124
- res.c:proc_answer(): use 'unsigned'

Revision 4453 - (view) (annotate) - [select for diffs]
Modified Mon Aug 11 15:53:17 2014 UTC (9 years, 7 months ago) by michael
File length: 20953 byte(s)
Diff to previous 4452 , to selected 1124
- res.c: removed "request_state" enum

Revision 4452 - (view) (annotate) - [select for diffs]
Modified Mon Aug 11 15:51:47 2014 UTC (9 years, 7 months ago) by michael
File length: 21384 byte(s)
Diff to previous 4449 , to selected 1124
- res.c:proc_answer(): applied "Ignore CNAME records in dns queries" fix from p4.
  ** Ignore CNAME records in dns queries. Allows PTRS to point to CNAMEs
     which can point to an A/AAAA which resolves to the correct IP.

Revision 4449 - (view) (annotate) - [select for diffs]
Modified Mon Aug 11 15:46:56 2014 UTC (9 years, 7 months ago) by michael
File length: 21806 byte(s)
Diff to previous 4448 , to selected 1124
- res.c: removed "try A if AAAA failed" logic

Revision 4448 - (view) (annotate) - [select for diffs]
Modified Sat Aug 9 19:20:10 2014 UTC (9 years, 7 months ago) by michael
File length: 22565 byte(s)
Diff to previous 4439 , to selected 1124
- res.c:start_resolver(): made /stats F more descriptive about the resolver socket

Revision 4439 - (view) (annotate) - [select for diffs]
Modified Sat Aug 9 18:36:19 2014 UTC (9 years, 7 months ago) by michael
File length: 22561 byte(s)
Diff to previous 4423 , to selected 1124
- Renamed various variables

Revision 4423 - (view) (annotate) - [select for diffs]
Modified Thu Aug 7 16:57:57 2014 UTC (9 years, 7 months ago) by michael
File length: 22562 byte(s)
Diff to previous 4420 , to selected 1124
- res.c: was missing +1 in reslist::name

Revision 4420 - (view) (annotate) - [select for diffs]
Modified Thu Aug 7 16:51:58 2014 UTC (9 years, 7 months ago) by michael
File length: 22502 byte(s)
Diff to previous 4415 , to selected 1124
- res.c:init_resolver(): removed useless memset()

Revision 4415 - (view) (annotate) - [select for diffs]
Modified Thu Aug 7 14:09:36 2014 UTC (9 years, 7 months ago) by michael
File length: 22555 byte(s)
Diff to previous 4408 , to selected 1124
- Removed ipv6 detection. We now assume all systems that run hybrid have
  ipv6 availability and sockaddr_storage.

Revision 4408 - (view) (annotate) - [select for diffs]
Modified Wed Aug 6 21:19:38 2014 UTC (9 years, 7 months ago) by michael
File length: 22830 byte(s)
Diff to previous 4317 , to selected 1124
- Fixed resolver/auth issues with too long hostnames

Revision 4317 - (view) (annotate) - [select for diffs]
Modified Thu Jul 31 21:16:49 2014 UTC (9 years, 7 months ago) by michael
File length: 22545 byte(s)
Diff to previous 4316 , to selected 1124
- res.c:res_readreply(): read as many packets as possible from kernel buffer
  in a single run. This might increase performance for heavy loaded servers
  doing lots of dns requests. As side-effect it fixes issues with edge-triggered
  epoll (we're only doing level-triggered right now)

Revision 4316 - (view) (annotate) - [select for diffs]
Modified Thu Jul 31 20:46:32 2014 UTC (9 years, 7 months ago) by michael
File length: 22472 byte(s)
Diff to previous 4311 , to selected 1124
- res.c:res_readreply(): don't grant further retries if the packet
  couldn't be decoded. We only give it one shot.

Revision 4311 - (view) (annotate) - [select for diffs]
Modified Thu Jul 31 17:02:13 2014 UTC (9 years, 7 months ago) by michael
File length: 22721 byte(s)
Diff to previous 4303 , to selected 1124
- res.c: reformatting; style corrections; updated comments

Revision 4303 - (view) (annotate) - [select for diffs]
Modified Sat Jul 26 17:56:04 2014 UTC (9 years, 8 months ago) by michael
File length: 23045 byte(s)
Diff to previous 4298 , to selected 1124
- res.c:res_readreply(): use ssize_t for 'rc'

Revision 4298 - (view) (annotate) - [select for diffs]
Modified Sun Jul 20 13:51:16 2014 UTC (9 years, 8 months ago) by michael
File length: 23083 byte(s)
Diff to previous 4240 , to selected 1124
- Fixed typos all over the place

Revision 4240 - (view) (annotate) - [select for diffs]
Modified Tue Jul 15 17:40:39 2014 UTC (9 years, 8 months ago) by michael
File length: 23095 byte(s)
Diff to previous 4237 , to selected 1124
- res.c:res_readreply(): removed sparc/alpha hack

Revision 4237 - (view) (annotate) - [select for diffs]
Modified Tue Jul 15 17:38:39 2014 UTC (9 years, 8 months ago) by michael
File length: 23356 byte(s)
Diff to previous 4236 , to selected 1124
- res.c:res_readreply(): don't do anything until we checked for possible
  fake replies

Revision 4236 - (view) (annotate) - [select for diffs]
Modified Tue Jul 15 17:32:28 2014 UTC (9 years, 8 months ago) by michael
File length: 23356 byte(s)
Diff to previous 4233 , to selected 1124
- res.c:res_readreply(): even if it's not clear if it's possible to receive
  a response for a query we didn't send, but we better execute auth_dns_callback()
  immediately instead of waiting until timeout_auth_queries_event() takes action.

Revision 4233 - (view) (annotate) - [select for diffs]
Modified Tue Jul 15 17:24:50 2014 UTC (9 years, 8 months ago) by michael
File length: 23295 byte(s)
Diff to previous 4094 , to selected 1124
- res.c: made timeout_query_list() not require an argument

Revision 4094 - (view) (annotate) - [select for diffs]
Modified Sun Jun 29 11:48:50 2014 UTC (9 years, 9 months ago) by michael
File length: 23273 byte(s)
Diff to previous 4086 , to selected 1124
- Merged Adam's event system rewrite

Revision 4086 - (view) (annotate) - [select for diffs]
Modified Sat Jun 28 16:44:20 2014 UTC (9 years, 9 months ago) by michael
File length: 23192 byte(s)
Diff to previous 3652 , to selected 1124
- Let mp_pool_get() clear memory

Revision 3652 - (view) (annotate) - [select for diffs]
Modified Mon May 26 15:41:42 2014 UTC (9 years, 10 months ago) by michael
File length: 23232 byte(s)
Diff to previous 3504 , to selected 1124
- res.c: removed unused definitions

Revision 3504 - (view) (annotate) - [select for diffs]
Modified Sat May 10 19:51:29 2014 UTC (9 years, 10 months ago) by michael
File length: 23352 byte(s)
Diff to previous 3347 , to selected 1124
- Renamed MyMalloc() to MyCalloc()

Revision 3347 - (view) (annotate) - [select for diffs]
Modified Sun Apr 20 14:03:06 2014 UTC (9 years, 11 months ago) by michael
File length: 23352 byte(s)
Diff to previous 3322 , to selected 1124
- Moved files:
  s_user.c -> user.c
  s_misc.c -> misc.c
  s_serv.c -> server.c

Revision 3322 - (view) (annotate) - [select for diffs]
Modified Tue Apr 15 16:11:11 2014 UTC (9 years, 11 months ago) by michael
File length: 23354 byte(s)
Copied from: ircd-hybrid/trunk/src/irc_res.c revision 3318
Diff to previous 3298 , to selected 1124
- Moved irc_res.c to res.c
- Moved irc_reslib.c to reslib.c

Revision 3298 - (view) (annotate) - [select for diffs]
Modified Fri Apr 11 16:21:02 2014 UTC (9 years, 11 months ago) by michael
Original Path: ircd-hybrid/trunk/src/irc_res.c
File length: 23366 byte(s)
Diff to previous 3297 , to selected 1124
- irc_res.c: style fixes

Revision 3297 - (view) (annotate) - [select for diffs]
Modified Fri Apr 11 16:08:55 2014 UTC (9 years, 11 months ago) by michael
Original Path: ircd-hybrid/trunk/src/irc_res.c
File length: 23375 byte(s)
Diff to previous 3268 , to selected 1124
- Made irc_nscount an unsigned type

Revision 3268 - (view) (annotate) - [select for diffs]
Modified Sat Apr 5 19:21:55 2014 UTC (9 years, 11 months ago) by michael
Original Path: ircd-hybrid/trunk/src/irc_res.c
File length: 23321 byte(s)
Diff to previous 3235 , to selected 1124
- irc_res.c:make_request(): lowered retries counter to 2

Revision 3235 - (view) (annotate) - [select for diffs]
Modified Sat Mar 29 19:34:16 2014 UTC (10 years ago) by michael
Original Path: ircd-hybrid/trunk/src/irc_res.c
File length: 23321 byte(s)
Diff to previous 3109 , to selected 1124
- Style corrections all over the place

Revision 3109 - (view) (annotate) - [select for diffs]
Modified Thu Mar 6 19:25:12 2014 UTC (10 years ago) by michael
Original Path: ircd-hybrid/trunk/src/irc_res.c
File length: 23370 byte(s)
Diff to previous 2916 , to selected 1124
- Applied Adam's sendto_one_numeric() changes

Revision 2916 - (view) (annotate) - [select for diffs]
Modified Sat Jan 25 21:09:18 2014 UTC (10 years, 2 months ago) by michael
Original Path: ircd-hybrid/trunk/src/irc_res.c
File length: 23407 byte(s)
Diff to previous 1834 , to selected 1124
- Clean up all files in include/ (fixed indentation, removed whitespaces/tabs)
- Fixed copyright years

Revision 1834 - (view) (annotate) - [select for diffs]
Modified Fri Apr 19 19:50:27 2013 UTC (10 years, 11 months ago) by michael
Original Path: ircd-hybrid/trunk/src/irc_res.c
File length: 22494 byte(s)
Diff to previous 1832 , to selected 1124
- Revert to -r1831

Revision 1832 - (view) (annotate) - [select for diffs]
Modified Fri Apr 19 19:16:09 2013 UTC (10 years, 11 months ago) by michael
Original Path: ircd-hybrid/trunk/src/irc_res.c
File length: 22484 byte(s)
Diff to previous 1793 , to selected 1124
- Made all numeric defines use the actual string instead of the numeric value
  which allows to use gcc's printf format attribute
- Remove current message locale implementation

Revision 1793 - (view) (annotate) - [select for diffs]
Modified Sun Mar 31 14:06:08 2013 UTC (10 years, 11 months ago) by michael
Original Path: ircd-hybrid/trunk/src/irc_res.c
File length: 22494 byte(s)
Diff to previous 1654 , to selected 1124
- Replaced all occurrences of ircsprintf with sprintf/snprintf
  and killed sprintf_irc.(c|h)

Revision 1654 - (view) (annotate) - [select for diffs]
Modified Fri Nov 16 19:39:37 2012 UTC (11 years, 4 months ago) by michael
Original Path: ircd-hybrid/trunk/src/irc_res.c
File length: 22519 byte(s)
Diff to previous 1592 , to selected 1124
- Implemented memory pool allocator which basically is taken from Tor's
  mempool allocator for Tor cells
- Fixed compile warnings in conf_class.c
- ./configure --enable-assert works again

Revision 1592 - (view) (annotate) - [select for diffs]
Modified Sat Oct 27 21:02:32 2012 UTC (11 years, 5 months ago) by michael
Original Path: ircd-hybrid/trunk/src/irc_res.c
File length: 22496 byte(s)
Diff to previous 1346 , to selected 1124
- Second time's the charm? Moving svnroot/ircd-hybrid-8 to
  svnroot/ircd-hybrid/trunk

Revision 1346 - (view) (annotate) - [select for diffs]
Modified Mon Apr 9 17:35:40 2012 UTC (11 years, 11 months ago) by michael
Original Path: ircd-hybrid-8/src/irc_res.c
File length: 22496 byte(s)
Diff to previous 1325 , to selected 1124
- irc_reslib.c: add localhost as default nameserver in case we cannot find
  a suitable entrie in resolv.conf
- irc_res.c:res_ourserver(): no need to test against INADDR_ANY.
  This is a relict of old BIND versions which added INADDR_ANDY as default
  nameserver if no other servers could be found.

Revision 1325 - (view) (annotate) - [select for diffs]
Modified Sat Mar 31 10:29:02 2012 UTC (12 years ago) by michael
Original Path: ircd-hybrid-8/src/irc_res.c
File length: 22679 byte(s)
Diff to previous 1309 , to selected 1124
- Get rid of fileio.c. Replace some ircsprintf() with snprintf() while on it

Revision 1309 - (view) (annotate) - [select for diffs]
Modified Sun Mar 25 11:24:18 2012 UTC (12 years ago) by michael
Original Path: ircd-hybrid-8/src/irc_res.c
File length: 22735 byte(s)
Diff to previous 1247 , to selected 1124
- renaming files:

  ircd_parser.y -> conf_parser.y
  ircd_lexer.l  -> conf_lexer.l
  s_conf.c      -> conf.c
  s_conf.h      -> conf.h
  s_log.c       -> log.c
  s_log.h       -> log.h

Revision 1247 - (view) (annotate) - [select for diffs]
Modified Sat Oct 1 07:54:24 2011 UTC (12 years, 5 months ago) by michael
Original Path: ircd-hybrid-8/src/irc_res.c
File length: 22737 byte(s)
Diff to previous 1243 , to selected 1124
- Rewrite and cleanup half-broken logging subsystem.
  Logfile rotating is not working yet

Revision 1243 - (view) (annotate) - [select for diffs]
Modified Fri Sep 30 10:47:53 2011 UTC (12 years, 6 months ago) by michael
Original Path: ircd-hybrid-8/src/irc_res.c
File length: 22731 byte(s)
Diff to previous 1156 , to selected 1124
- move content of msg.h, ircd_handler.h and handlers.h into parse.h and
  remove headers accordingly
- killed common.h
- remove m_killhost.c and m_flags.c from contrib/
- sort out unused header includes here and there

Revision 1156 - (view) (annotate) - [select for diffs]
Modified Tue Aug 9 20:29:20 2011 UTC (12 years, 7 months ago) by michael
Original Path: ircd-hybrid-8/src/irc_res.c
File length: 22731 byte(s)
Diff to previous 1155 , to selected 1124
- create ircd-hybrid-8 "branch"

Revision 1155 - (view) (annotate) - [select for diffs]
Modified Tue Aug 9 20:27:45 2011 UTC (12 years, 7 months ago) by michael
Original Path: ircd-hybrid/src/irc_res.c
File length: 22731 byte(s)
Diff to previous 1124
- recreate "trunk"

Revision 1124 - (view) (annotate) - [selected]
Modified Mon Feb 7 11:45:27 2011 UTC (13 years, 1 month ago) by michael
Original Path: ircd-hybrid-7.3/src/irc_res.c
File length: 22731 byte(s)
Diff to previous 1123
- replace several ircsprintf with snprintf

Revision 1123 - (view) (annotate) - [select for diffs]
Modified Sun Feb 6 21:57:50 2011 UTC (13 years, 1 month ago) by michael
Original Path: ircd-hybrid-7.3/src/irc_res.c
File length: 23016 byte(s)
Diff to previous 1029 , to selected 1124
- Got rid of irc_addrinfo.c and irc_getnameinfo.c
- Fixed broken ipv6 detection due to incorrect use of AC_CHECK_TYPES

Revision 1029 - (view) (annotate) - [select for diffs]
Modified Sun Nov 8 13:10:50 2009 UTC (14 years, 4 months ago) by michael
Original Path: ircd-hybrid-7.3/src/irc_res.c
File length: 23057 byte(s)
Diff to previous 1028 , to selected 1124
- branch off trunk to create 7.3 branch
Revision 1028 - (view) (annotate) - [select for diffs]
Modified Sun Nov 8 13:03:38 2009 UTC (14 years, 4 months ago) by michael
Original Path: ircd-hybrid/src/irc_res.c
File length: 23057 byte(s)
Diff to previous 1011 , to selected 1124
- move ircd-hybrid-7.2 to trunk

Revision 1011 - (view) (annotate) - [select for diffs]
Modified Fri Sep 18 10:14:09 2009 UTC (14 years, 6 months ago) by michael
Original Path: ircd-hybrid-7.2/src/irc_res.c
File length: 23057 byte(s)
Diff to previous 998 , to selected 1124
- move list manipulation routines from tools.c to list.c
- mem_frob() goes to memory.c
- sort out redundant/unneeded header includes

Revision 998 - (view) (annotate) - [select for diffs]
Modified Sun Aug 23 12:43:17 2009 UTC (14 years, 7 months ago) by michael
Original Path: ircd-hybrid-7.2/src/irc_res.c
File length: 23097 byte(s)
Diff to previous 997 , to selected 1124
- change resolver/auth to use balloc memory pool
- ircd.c: init_resolver() has to be called *before* read_conf_files(), otherwise
  recvfrom() aborts with ENOTSOCK in case there are configured connect{} blocks
  with a host that needs to be resolved on the very first configuration read.

Revision 997 - (view) (annotate) - [select for diffs]
Modified Fri Aug 21 10:25:40 2009 UTC (14 years, 7 months ago) by michael
Original Path: ircd-hybrid-7.2/src/irc_res.c
File length: 22986 byte(s)
Diff to previous 995 , to selected 1124
- delete_resolver_queries(): remove extranous non-NULL test. ptr->data can never be NULL.
  let it crash, if it ever happens to be

Revision 995 - (view) (annotate) - [select for diffs]
Modified Fri Aug 21 10:11:14 2009 UTC (14 years, 7 months ago) by michael
Original Path: ircd-hybrid-7.2/src/irc_res.c
File length: 23025 byte(s)
Diff to previous 994 , to selected 1124
- remove add_local_domain

Revision 994 - (view) (annotate) - [select for diffs]
Modified Fri Aug 21 09:15:31 2009 UTC (14 years, 7 months ago) by michael
Original Path: ircd-hybrid-7.2/src/irc_res.c
File length: 23701 byte(s)
Diff to previous 992 , to selected 1124
- res_readreply(): check for fake replies before doing anything else

Revision 992 - (view) (annotate) - [select for diffs]
Modified Mon Aug 17 19:19:16 2009 UTC (14 years, 7 months ago) by michael
Original Path: ircd-hybrid-7.2/src/irc_res.c
File length: 23757 byte(s)
Diff to previous 986 , to selected 1124
- fix possible auth/dns related memleaks

Revision 986 - (view) (annotate) - [select for diffs]
Modified Sat Aug 15 21:12:34 2009 UTC (14 years, 7 months ago) by michael
Original Path: ircd-hybrid-7.2/src/irc_res.c
File length: 23739 byte(s)
Diff to previous 985 , to selected 1124
- irc_res.c: fixed wide-spread off-by-one when copying hostnames

Revision 985 - (view) (annotate) - [select for diffs]
Modified Sat Aug 15 20:31:54 2009 UTC (14 years, 7 months ago) by michael
Original Path: ircd-hybrid-7.2/src/irc_res.c
File length: 23746 byte(s)
Diff to previous 984 , to selected 1124
- res_readreply, do_query_number: removed ip6.int support.
  ip6.int delegations were deleted in 2006

Revision 984 - (view) (annotate) - [select for diffs]
Modified Fri Aug 14 13:18:14 2009 UTC (14 years, 7 months ago) by michael
Original Path: ircd-hybrid-7.2/src/irc_res.c
File length: 24235 byte(s)
Diff to previous 982 , to selected 1124
- res_readreply(): fix broken logic with ipv6 enabled where we ONLY sent a
                   second A QUERY in case a -broken- nameserver returns NXDOMAIN
                   for AAAA when A record exists. fixed and removed workaround
                   for broken nameservers.

Revision 982 - (view) (annotate) - [select for diffs]
Modified Thu Aug 13 22:15:08 2009 UTC (14 years, 7 months ago) by michael
Original Path: ircd-hybrid-7.2/src/irc_res.c
File length: 24566 byte(s)
Diff to previous 468 , to selected 1124
- added a mersenne twister basedn prng

Revision 468 - (view) (annotate) - [select for diffs]
Modified Fri Feb 17 02:42:23 2006 UTC (18 years, 1 month ago) by db
Original Path: ircd-hybrid-7.2/src/irc_res.c
File length: 24863 byte(s)
Diff to previous 463 , to selected 1124
- Cleaned up the resolver some more, added some comments


Revision 463 - (view) (annotate) - [select for diffs]
Modified Mon Feb 13 03:30:53 2006 UTC (18 years, 1 month ago) by db
Original Path: ircd-hybrid-7.2/src/irc_res.c
File length: 24557 byte(s)
Diff to previous 447 , to selected 1124
- Redo NXDOMAIN check so IPV6 still works 


Revision 447 - (view) (annotate) - [select for diffs]
Modified Sun Feb 12 02:59:16 2006 UTC (18 years, 1 month ago) by db
Original Path: ircd-hybrid-7.2/src/irc_res.c
File length: 24572 byte(s)
Diff to previous 411 , to selected 1124
- reported by Jon, resolver was not checking for NXDOMAIN as well as SERVFAIL
this caused odd DNS reports and took longer to connect.

Tested by Jon (ThaPrince).

(backported from head)


Revision 411 - (view) (annotate) - [select for diffs]
Modified Wed Feb 8 14:42:01 2006 UTC (18 years, 1 month ago) by adx
Original Path: ircd-hybrid-7.2/src/irc_res.c
File length: 24539 byte(s)
Diff to previous 169 , to selected 1124
+ fixed unaligned memory reference in resolver

Submitted by: Immo 'FaUl' Wehrenberg

Revision 169 - (view) (annotate) - [select for diffs]
Modified Fri Oct 21 09:37:16 2005 UTC (18 years, 5 months ago) by michael
Original Path: ircd-hybrid-7.2/src/irc_res.c
File length: 24273 byte(s)
Diff to previous 155 , to selected 1124
- Removed LocalUser.port
- Removed two extra memsets in make_request()

Revision 155 - (view) (annotate) - [select for diffs]
Modified Tue Oct 18 02:54:54 2005 UTC (18 years, 5 months ago) by db
Original Path: ircd-hybrid-7.2/src/irc_res.c
File length: 24371 byte(s)
Diff to previous 34 , to selected 1124
(backported from HEAD)
- irc_res.c would send out hundreds? of retry requests on clients that
 did not resolve, i.e. SERVFAIL. The code was essentailly ignoring
 SERVFAIL hence generating request after request after request.
 This appears to fix this major bug. It would be a good idea to add
 some logging here however.


Revision 34 - (view) (annotate) - [select for diffs]
Modified Sun Oct 2 21:05:51 2005 UTC (18 years, 5 months ago) by lusky
Original Path: ircd-hybrid-7.2/src/irc_res.c
File length: 24420 byte(s)
Diff to previous 33 , to selected 1124
create 7.2 branch, we can move/rename it as needed.


Revision 33 - (view) (annotate) - [select for diffs]
Modified Sun Oct 2 20:50:00 2005 UTC (18 years, 5 months ago) by knight
Original Path: ircd-hybrid/src/irc_res.c
File length: 24420 byte(s)
Diff to previous 32 , to selected 1124
- svn:keywords

Revision 32 - (view) (annotate) - [select for diffs]
Modified Sun Oct 2 20:41:23 2005 UTC (18 years, 5 months ago) by knight
Original Path: ircd-hybrid/src/irc_res.c
File length: 24420 byte(s)
Diff to previous 31 , to selected 1124
- svn:keywords

Revision 31 - (view) (annotate) - [select for diffs]
Modified Sun Oct 2 20:34:05 2005 UTC (18 years, 5 months ago) by knight
Original Path: ircd-hybrid/src/irc_res.c
File length: 24420 byte(s)
Diff to previous 30 , to selected 1124
- Fix svn:keywords

Revision 30 - (view) (annotate) - [select for diffs]
Added Sun Oct 2 20:03:27 2005 UTC (18 years, 5 months ago) by adx
Original Path: ircd-hybrid/src/irc_res.c
File length: 24473 byte(s)
Diff to selected 1124
- imported sources
- can be moved later according to the directory/branching scheme,
  but we need the svn up

Convenience Links

Links to HEAD: (view) (annotate)

Compare Revisions

This form allows you to request diffs between any two revisions of this file. For each of the two "sides" of the diff, enter a numeric revision.

  Diffs between and
  Type of Diff should be a