From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 8648 invoked by alias); 20 Aug 2013 20:38:33 -0000 Mailing-List: contact ecos-discuss-help@ecos.sourceware.org; run by ezmlm Precedence: bulk List-Id: List-Subscribe: List-Archive: List-Post: List-Help: , Sender: ecos-discuss-owner@ecos.sourceware.org Received: (qmail 8632 invoked by uid 89); 20 Aug 2013 20:38:33 -0000 X-Spam-SWARE-Status: No, score=-2.4 required=5.0 tests=AWL,BAYES_00,KHOP_THREADED,SPF_PASS autolearn=ham version=3.3.2 Received: from mu.redorum.com (HELO mu.redorum.com) (216.105.40.82) by sourceware.org (qpsmtpd/0.84/v0.84-167-ge50287c) with ESMTP; Tue, 20 Aug 2013 20:38:32 +0000 Received: from [172.16.4.241] (mail.systech.com [207.212.80.162]) by mu.redorum.com with SMTP (version=Tls cipher=Rc4 bits=128); Tue, 20 Aug 2013 13:38:21 -0700 Message-ID: <5213D3AD.60307@systech.com> Date: Tue, 20 Aug 2013 20:38:00 -0000 From: Jay Foster Reply-To: jay@systech.com User-Agent: Mozilla/5.0 (Windows NT 5.0; rv:12.0) Gecko/20120428 Thunderbird/12.0.1 MIME-Version: 1.0 To: vx worker CC: ecos-discuss@ecos.sourceware.org References: In-Reply-To: Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit Subject: Re: [ECOS] NTP authentication in eCos X-SW-Source: 2013-08/txt/msg00001.txt.bz2 I have used the sntp eCos. I don't use authentication, but did have a problem a while back with the sntp code not working with ntp servers that were configured to do NTP auth. The eCos sntp code includes the KeyIdentifier and MessageDigest fields in it's NTP packets to the NTP server, but it never fills them in with anything useful. As long as the NTP server isn't configured for NTP auth, it ignores this and all worked fine. I encountered an NTP server that was configured for auth, and would not respond to the eCos NTP packets because the auth failed. I removed the two fields from the NTP_PACKET structure and it then worked fine. So, if you add auth support, you should change the code to send the KeyIdentifier and MessageDigest fields only when they have been actually filled in with something (ie, doing auth). Jay On 8/20/2013 11:22 AM, vx worker wrote: > Hello everybody! Now I need to make NTP authentication work in eCos. > Does anybody have similar experience on this? or any information? > Thanks, Yan! > -- Before posting, please read the FAQ: http://ecos.sourceware.org/fom/ecos and search the list archive: http://ecos.sourceware.org/ml/ecos-discuss