* Stuart Henderson <s...@spacehopper.org> [2010-02-10 20:32]: > On 2010-02-10, Baginski Darren <kick...@ya.ru> wrote: > > Ihave multihomed server with and willing to specify outgoing IP for ntpd, > > since stratum 1 server > > allows connection olnly from IP and OpenNTPd chouses IP closest to > > destination. > > Unfortunately I didn't find any option for that, if any please advise. If > > not, are any plans to have such option? > > So I've patched couple of files to achive that behaviour, it's a hack but > > works for me. > > Source ip should be specifyed with "-o N.X.Y.Z" . > > If anywhere, that should be in the config file. (An alternative hack > is to nat the outgoing packets).
i don't see much value in this option at all to be honest. > > Another question is if any lex file for > > http://www.openbsd.org/cgi-bin/cvsweb/src/usr.sbin/ntpd/parse.y > > or it has been created by hand? > I'm pretty sure it's by hand. yes, all our lexers are handrolled, lex sucks. check yylex() in parse.y -- Henning Brauer, h...@bsws.de, henn...@openbsd.org BS Web Services, http://bsws.de Full-Service ISP - Secure Hosting, Mail and DNS Services Dedicated Servers, Rootservers, Application Hosting