Search the web
Sign In
New User? Sign Up
dnrd · DNRD discussion list
? Already a member? Sign in to Yahoo!

Yahoo! Groups Tips

Did you know...
Hear how Yahoo! Groups has changed the lives of others. Take me there.

Best of Y! Groups

   Check them out and nominate your group.
Having problems with message search? Fill out this form to ensure your group is one of the first to be migrated to the new message search system.

Messages

  Messages Help
Advanced
Cache preservation (2.10)   Message List  
Reply | Forward Message #236 of 261 |
Re: Cache preservation (2.10)

Hello,
I'm replying to a old Post.
Thee attached patch was Blank!
Is this true? Can I patch Dnrd, so it save the cached
Dns entries?
I'm using dnrd 2.10 in Freesco (slackware 3.9)
Also, I would like to know if I can add my own entries
kinda like a Windows Hosts file. If so, Where?
Thanx,
Kevin




--- In dnrd@y..., Darren Salt <list@y...> wrote:
The attached patch allows dnrd 2.10 to save the cache on exit and
reload it,using the existing caching code, on startup. The cache is
also saved on SIGHUP. (This is the first step towards implementing
the auto-restarting dnrd which I described a few weeks ago.)

The cache is currently saved as /tmp/dnrd.cache
and has the structure:
char[]: "#!/bin/true\ndnrd cache\n" (unterminated)
char: endianness - 1 if the cache was saved on a little endian
machine
char: sizeof (int)
{
int: packet length
char[]: packet dump
} []

If the endianness and int size bytes don't match, the cache is
ignored. I'm unable to test this properly, not having any machines
on which these have values other than 1 and 4 :-)

Also, the cache loader hasn't been tested with malformed cache
files; perhaps some of you might like to help with that.

BTW, Brad: any chance of the trailing spaces in the source files
being removed for 2.11? I have this text editor which is
(deliberately) configured to remove them... :-)

-- | Darren Salt | nr. Ashington, | d
youmustbejoking.demon.co.uk






Wed Dec 19, 2001 11:44 pm

linxwiler
Offline Offline
Send Email Send Email

Forward
Message #236 of 261 |
Expand Messages Author Sort by Date

The attached patch allows dnrd 2.10 to save the cache on exit and reload it, using the existing caching code, on startup. The cache is also saved on SIGHUP....
Darren Salt
list@...
Send Email
Mar 9, 2001
4:41 am

Can I apply this patch to my dnrd directly or does dnrd need to be recompiled? ... reload it, ... saved on ... restarting dnrd ... machine ... ignored. I'm ......
linxwiler
Offline Send Email
Apr 17, 2002
3:26 pm

I demand that linxwiler may or may not have written... ... Patch and recompile, of course. Or are you using a C interpreter? :-) [snip] -- ... Stuff taxidermy....
list@...
Send Email
Apr 18, 2002
1:05 pm

Hello, I'm replying to a old Post. Thee attached patch was Blank! Is this true? Can I patch Dnrd, so it save the cached Dns entries? I'm using dnrd 2.10 in...
linxwiler
Offline Send Email
Apr 17, 2002
4:25 pm

I demand that linxwiler may or may not have written... ... [snip] It looks fine to me (uuencoded plain text), although the ",fff" may be confusing your...
list@...
Send Email
Apr 18, 2002
5:59 am
Advanced

Copyright © 2009 Yahoo! Inc. All rights reserved.
Privacy Policy - Terms of Service - Guidelines - Help