[ntp:hackers] Re: ntpsim

Danny Mayer mayer at ntp.isc.org
Mon Feb 6 13:38:00 UTC 2006


Harlan Stenn wrote:
> Dave,
> 
> It was a surprise to me too.
> 
> Basically, the recvbuf stuff changed and Danny didn't realize ntpsim was
> part of the package.
> 
> I'm slowly working on it, but it would be lots better if somebody who
> understood what was going on before took a look.
> 
> It should be pretty straightforward - the old code that did the queue
> processing using the ->next member needs to be converted to use the
> ISC_LIST_* macros.
> 

No! You shouldn't even know what the internal structure of recvbuf uses.
Use the standard recvbuf functions: get_free_recv_buffer(),
add_full_recv_buffer(), freerecvbuf as appropriate. Don't fool around
with how the internal structure works. It's called separation of
functionality.

Danny

> In the interim, please save a copy of the old ntpsim executable.
> 
> H
> _______________________________________________
> hackers mailing list
> hackers at support.ntp.org
> https://support.ntp.org/mailman/listinfo/hackers
> 



More information about the hackers mailing list