freebsd-nq/usr.sbin/ypserv
Bill Paul adc4fa336b More async resolver refinements:
- yp_main.c: Always add the resolver socket to the set of fds
  monitored by select(). It can happen that pending == 0 but we
  still have some data in the socket buffer from an old query.
  This way, the data will be flushed in a timely manner.

- yp_extern.h: remove proto for yp_dns_pending() since we don't need
  it anynmore.

- yp_server.c: call yp_async_lookup_name()/yp_async_lookup_addr()
  functions with the svc_req pointer as an arg instead of the xprt.
  (The svc_req struct includes a pointer to the transport handle,
  and it also has the service version number which the async DNS
  code will need. (see below))

- yp_dnslookup.c:

   o Nuke yp_dns_pending() since we don't need it anymore.
   o In yp_run_dnsq(), swallow up and ignore replies if no requests
     are pending or the ID doesn't match any of the IDs in the queue.
   o In yp_send_dns_reply(), we assume that we will always be
     replying to an NIS v2 client. While this will probably always
     be the case, we do support the v1 'match' procedure, and it
     has a different result struct than v2. For completeness,
     support replying to both NIS v1 and v2 clients.
   o Update the queue entry structure to include a member to
     keep track of the NIS version number.
   o Have yp_async_lookup_name/addr() extract the version number
     from the svc_req structure and save it with the queue entry
     for yp_send_dns_reply() to inspect later.
   o Add some comments.
1996-12-25 18:10:35 +00:00
..
Makefile Big round o changes: 1996-12-22 22:30:58 +00:00
Makefile.yp Eek! When I added the YP_INTERDOMAIN and YP_SECURE support, I documented 1996-11-15 18:01:59 +00:00
yp_access.c Add support for handling the YP_SECURE and YP_INTERDOMAIN keys from 1996-10-24 18:58:26 +00:00
yp_dblookup.c Big round o changes: 1996-12-22 22:30:58 +00:00
yp_dnslookup.c More async resolver refinements: 1996-12-25 18:10:35 +00:00
yp_error.c Small touch-ups -- no functional changes. 1996-05-31 16:01:51 +00:00
yp_extern.h More async resolver refinements: 1996-12-25 18:10:35 +00:00
yp_main.c More async resolver refinements: 1996-12-25 18:10:35 +00:00
yp_server.c More async resolver refinements: 1996-12-25 18:10:35 +00:00
yp_svc_udp.c Big round o changes: 1996-12-22 22:30:58 +00:00
ypserv.8 Use the .Fx macro where appropriate. 1996-08-23 00:57:08 +00:00