| Summary: | xntpd doesn't handle interface aliases properly | ||||||
|---|---|---|---|---|---|---|---|
| Product: | Base System | Reporter: | Christopher N. Harrell <cnh> | ||||
| Component: | bin | Assignee: | Ollivier Robert <roberto> | ||||
| Status: | Closed FIXED | ||||||
| Severity: | Affects Only Me | ||||||
| Priority: | Normal | ||||||
| Version: | 3.2-STABLE | ||||||
| Hardware: | Any | ||||||
| OS: | Any | ||||||
| Attachments: |
|
||||||
|
Description
Christopher N. Harrell
1999-07-23 22:50:00 UTC
State Changed From-To: open->feedback Are you in a position to produce a diff that addresses this issue? Responsible Changed From-To: freebsd-bugs->sheldonh I'm keen on feedback. :-) Could you post your route info as well? 10.0.0.1 is normally on the same subnet as 10.0.0.2, but the interfaces aren't. The netmask for 10.x.x.x is by default 255.0.0.0 . Maybe you should try your How-To-Repeat by setting the netmask to 255.255.255.0 and make the alias 10.1.0.1 and the other IP address 10.0.0.2 . Cheers, Nick -- ISIS/STA, T.P.270, Joint Research Centre, 21020 Ispra, Italy ---------- Forwarded message ---------- Date: Mon, 26 Jul 1999 18:06:42 -0400 From: "Christopher N . Harrell" <cnh@mindspring.net> To: Nick Hibma <n_hibma@webweaving.org> Subject: Re: bin/12782: xntpd doesn't handle interface aliases properly Quoting Nick Hibma: > > Could you post your route info as well? 10.0.0.1 is normally on the same > subnet as 10.0.0.2, but the interfaces aren't. The netmask for 10.x.x.x > is by default 255.0.0.0 . The netmask on the alias is actually 0xffffffff -- just forgot to type that part. > > Maybe you should try your How-To-Repeat by setting the netmask to > 255.255.255.0 and make the alias 10.1.0.1 and the other IP address > 10.0.0.2 . The core of the problem is that th aliases on lo0 don't get their own socket. (see netstat -an on a machine configured as described and ntp_io.c's init_io().) cheers, Christopher Hi there, Dag-Erling Smorgrav mentioned that you may have patches available that fix a problem reported on a FreeBSD Problem Report I'm looking at. It's PR 12782, which addresses xntpd's improper handling of interfaces. If you could comment, I'd greatly appreciate it. You can view the PR online at http://www.freebsd.org/cgi/query-pr.cgi?pr=12782 . Thanks, Sheldon. Var det ikke Sheldon Hearn som sa: | | Hi there, | | Dag-Erling Smorgrav mentioned that you may have patches available that | fix a problem reported on a FreeBSD Problem Report I'm looking at. It's | PR 12782, which addresses xntpd's improper handling of interfaces. | | If you could comment, I'd greatly appreciate it. You can view the PR | online at http://www.freebsd.org/cgi/query-pr.cgi?pr=12782 . Our local setup here often demands that certain daemons listen to arbitrary addresses, including those non-primary addresses on the interfaces. This patch only checks to see if the address returned from SIOCGIFADDR differs from SIOCGIFCONF. If it does, then there are more addresses than the primary one. -- Åge Røbekk, EUnet Norge AS Responsible Changed From-To: sheldonh->roberto We use the newer ntp package which comes with ntpd, not xntpd and the new package has a new maintainer. I'm leaving the state as feedback, because it'd be good to have feedback on whether this is still a problem with the new NTP4 package in CURRENT. State Changed From-To: feedback->closed No longer an issue. |