Re: [ntp:questions] Details about code structure

2007-11-24 Thread Danny Mayer
Pradhap Nirmal Natarajan wrote: > Thanks all for your responses and suggestions. I also suggest more > comments and documentation along the code rather than a separate doc. > I am not sure if there is a review process for new commits but it > will be great if we can stick to minimal set of do

Re: [ntp:questions] Details about code structure

2007-11-24 Thread Richard B. Gilbert
Danny Mayer wrote: > Richard B. Gilbert wrote: > >>It's never easy to wrap your mind around someone else's code, especially >>when there's that much of it. It's even tougher if you're not really >>fluent in C. I can struggle though it but I'm not what you'd call fluent. >> >>Rather than writin

Re: [ntp:questions] Details about code structure

2007-11-24 Thread Danny Mayer
Richard B. Gilbert wrote: > It's never easy to wrap your mind around someone else's code, especially > when there's that much of it. It's even tougher if you're not really > fluent in C. I can struggle though it but I'm not what you'd call fluent. > > Rather than writing a separate document, I

Re: [ntp:questions] Details about code structure

2007-11-21 Thread Pradhap Nirmal Natarajan
Thanks all for your responses and suggestions. I also suggest more comments and documentation along the code rather than a separate doc. I am not sure if there is a review process for new commits but it will be great if we can stick to minimal set of documentation guidelines. I am sure this

Re: [ntp:questions] Details about code structure

2007-11-21 Thread David L. Mills
Richard, May I recommend the skeleton appendix in the RFC draft along with the main text and flow diagrams. More detailed diagrams are in the UDel report cited in the RFC. I took great care in commenting the protocol and crypto source code, expecially since some of my code is fifteen years old

Re: [ntp:questions] Details about code structure

2007-11-21 Thread David L. Mills
Hal, There is a page in the documentation on how to write a reference driver. It's old, but mostly correct. Dave Hal Murray wrote: >>I had my computer count the lines of code in one of the older versions, >>about two years ago. 70,000 or so lines of code may be a small number >>to you but it

Re: [ntp:questions] Details about code structure

2007-11-21 Thread Hal Murray
>I had my computer count the lines of code in one of the older versions, >about two years ago. 70,000 or so lines of code may be a small number >to you but it seems like a lot to me. I once looked at the code for the >Motorola Oncore driver to try to understand what was going on and failed. It h

Re: [ntp:questions] Details about code structure

2007-11-21 Thread Richard B. Gilbert
Harlan Stenn wrote: In article <[EMAIL PROTECTED]>, [EMAIL PROTECTED] (Prathapnirmal) writes: >>> > > prathapnirmal> Hi All, Which will be the best document to refer if I need to > prathapnirmal> know information about the organization of code in ntp? > > And the answer is... > > prathapnirm

Re: [ntp:questions] Details about code structure

2007-11-21 Thread Hal Murray
>Would such a document really be all that useful? It seems to me that the >codebase is pretty small, and it should not be all that hard to figure out. I use grep whatever *.c or grep whatever -r . If that doesn't work in the directory I'm working in, then I cd .. and try again. After doing t

Re: [ntp:questions] Details about code structure

2007-11-21 Thread Harlan Stenn
>>> In article <[EMAIL PROTECTED]>, [EMAIL PROTECTED] (Prathapnirmal) writes: prathapnirmal> Hi All, Which will be the best document to refer if I need to prathapnirmal> know information about the organization of code in ntp? And the answer is... prathapnirmal> One obvious way is to look at the

[ntp:questions] Details about code structure

2007-11-20 Thread Prathapnirmal
Hi All, Which will be the best document to refer if I need to know information about the organization of code in ntp? I am looking for information like, * a convenience library is created in libopts directory which is further used to link against the final exe * a library is created in libntpd to