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...
Show off your group to the world. Share a photo of your group with us.

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 #235 of 261 |
Re: Cache preservation (2.10)

Can I apply this patch to my dnrd directly or does dnrd
need to be recompiled?


--- 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
> | Risc PC, Spec+3, A3010 | Northumberland | s zap.uk.eu.org
> | BBC M128, Linux PC | Toon Army | @ retrospec.co.uk
> | ZapEmail. ZapDS. MakeExtern.
>
> Who to himself is law no law doth need, offends no law, and is a
king indeed.





Thu Dec 20, 2001 7:43 am

linxwiler
Offline Offline
Send Email Send Email

Forward
Message #235 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