Hi All,
This is the updated and consolidated patch with the following additional
features
a) Add options to the Config.in to allow the platform developer to select
between the different supported query id generation logics using make
config/menuconfig/...
Inturn now one can select between the following modes SimpleCounter /
Urandom Only / Clock Only / PrngPlus (with automatic URandom & or Clock
based reseeding) . So based on the features available on a given target,
and or needs of a specific platform or release, uclibc's dns query id
generation can be suitably selected/adjusted.
b) The PrngPlus mode maintains its own state wrt prng, so that users of the
global random prng won't be affected by dns lookups' use of random.
c) Have hopefully tried to follow the coding style better this time.
However as I have done lot of changes to the code flow from earlier patchs,
I need to cross check once again the same.
Please do cross-check the patch once for any possible oversights and or
issues. Do note that I have tried this only on a linux vm+container setup,
by hand holding the native host build tools and inturn using the prints and
tcpdump to verify things are working as required.
If no other issues are found, I will remove some of the debug prints I have
still retained (and or convert to DPRINTF) and make a release tomorrow.
--
Keep ;-)
HanishKVC
Show replies by date