home *** CD-ROM | disk | FTP | other *** search
/ NetNews Usenet Archive 1993 #1 / NN_1993_1.iso / spool / comp / protocol / time / ntp / 1152 < prev    next >
Encoding:
Internet Message Format  |  1993-01-08  |  1.5 KB

  1. Xref: sparky comp.protocols.time.ntp:1152 comp.unix.aix:13032 comp.protocols.tcp-ip:5808
  2. Path: sparky!uunet!vtserf!black-ice.cc.vt.edu!valdis
  3. From: valdis@black-ice.cc.vt.edu (Valdis Kletnieks)
  4. Newsgroups: comp.protocols.time.ntp,comp.unix.aix,comp.protocols.tcp-ip
  5. Subject: Re: xntp3 socket problem with UDP datagrams from INADDR_ANY.
  6. Keywords: xntp3,AIX/370,UDP,socket
  7. Message-ID: <10895@vtserf.cc.vt.edu>
  8. Date: 6 Jan 93 00:33:23 GMT
  9. References: <1992Dec29.115408.103086@ipgaix.unipg.it>
  10. Sender: usenet@vtserf.cc.vt.edu
  11. Followup-To: comp.protocols.time.ntp
  12. Organization: Virginia Tech, Blacksburg, VA
  13. Lines: 29
  14.  
  15. In article <1992Dec29.115408.103086@ipgaix.unipg.it> peppe@ipgaix.unipg.it (G. Vitillaro) writes:
  16. >
  17. >I had this problem with xntp3 (in xntpd) under AIX/370 1.2.1 (1400).
  18. >I'm interested to understand if I met a bug and
  19. >if there is any way to go over the problem.
  20.  
  21. Oh.. *that* little bug.  It drove me bonkers while trying to get
  22. AIX/370 and xntp to cooperate.  Here's the fix I used to work
  23. around it:
  24.  
  25. *** ntp_io.c.dist       Tue Mar 17 16:39:15 1992
  26. --- ntp_io.c    Tue Mar 17 16:40:26 1992
  27. ***************
  28. *** 688,693 ****
  29. --- 688,694 ----
  30.                 printf("sendpkt(%s, %s, %d)\n", ntoa(dest),
  31.                         ntoa(&inter->sin), len);
  32.   #endif
  33. +       if (inter == any_interface) inter++;
  34.  
  35.         for (slot = ERRORCACHESIZE; --slot >= 0; )
  36.                 if (badaddrs[slot].port == dest->sin_port &&
  37.  
  38.  
  39. This basically prevents xntpd from "seeing" the 'wildcard' interface.
  40.  
  41.                 Valdis Kletnieks
  42.                 Computer Systems Engineer
  43.                 Virginia Tech
  44.