2
0
mirror of https://gitlab.isc.org/isc-projects/kea synced 2025-08-30 13:37:55 +00:00
Commit Graph

22505 Commits

Author SHA1 Message Date
Jelte Jansen
8541de1b5e documentation and cleanup of CCSession.py
git-svn-id: svn://bind10.isc.org/svn/bind10/branches/parkinglot@566 e5f2f494-b856-4b98-b285-d166d9295462
2010-01-27 19:11:19 +00:00
Jelte Jansen
97a6c1671a data definition checker in python api
git-svn-id: svn://bind10.isc.org/svn/bind10/branches/parkinglot@565 e5f2f494-b856-4b98-b285-d166d9295462
2010-01-27 14:49:35 +00:00
JINMEI Tatuya
e3accd375c cleanup: localize and avoid using temporary variables as much as possible
git-svn-id: svn://bind10.isc.org/svn/bind10/branches/parkinglot@564 e5f2f494-b856-4b98-b285-d166d9295462
2010-01-27 09:34:01 +00:00
JINMEI Tatuya
d212f61872 renamed a confusing local variable (was a copy-paste typo indeed)
git-svn-id: svn://bind10.isc.org/svn/bind10/branches/parkinglot@563 e5f2f494-b856-4b98-b285-d166d9295462
2010-01-27 09:19:08 +00:00
JINMEI Tatuya
81f56e2daa added an experimental implementation of "optimized built-in answers".
this version records pre-rendered authors/version.bind answers and reuses
them to build responses very efficiently.
This implementation intends to show how we can customize the RRset class
by inheritance from the base abstract class to optimize response generation.


git-svn-id: svn://bind10.isc.org/svn/bind10/branches/parkinglot@562 e5f2f494-b856-4b98-b285-d166d9295462
2010-01-27 09:15:19 +00:00
JINMEI Tatuya
edf3f3c766 simplified the code logic using the for_each algorithm instead of
explicit loops


git-svn-id: svn://bind10.isc.org/svn/bind10/branches/parkinglot@561 e5f2f494-b856-4b98-b285-d166d9295462
2010-01-27 07:22:00 +00:00
JINMEI Tatuya
c7d15b42d3 - some improvements on builtin (authors/version.bind) data:
+ let the daemon answer these queries without having configured data sources
  + add CH/NS RR
  + use 0 TTL (just to be compatible with prior versions of BIND)


git-svn-id: svn://bind10.isc.org/svn/bind10/branches/parkinglot@560 e5f2f494-b856-4b98-b285-d166d9295462
2010-01-27 07:14:56 +00:00
JINMEI Tatuya
2771f5516a constified class member functions whenever possible.
git-svn-id: svn://bind10.isc.org/svn/bind10/branches/parkinglot@559 e5f2f494-b856-4b98-b285-d166d9295462
2010-01-27 05:06:46 +00:00
JINMEI Tatuya
9af1172530 corrected typo in a previous commit of mine: s/ANSWER/AUTHORITY/
git-svn-id: svn://bind10.isc.org/svn/bind10/branches/parkinglot@557 e5f2f494-b856-4b98-b285-d166d9295462
2010-01-27 01:42:32 +00:00
JINMEI Tatuya
7cb0576d88 simplification by eliminating unnecessary temporary variables.
git-svn-id: svn://bind10.isc.org/svn/bind10/branches/parkinglot@556 e5f2f494-b856-4b98-b285-d166d9295462
2010-01-27 01:39:14 +00:00
Jelte Jansen
1fbdb10467 more python client side API stuff for configuration
git-svn-id: svn://bind10.isc.org/svn/bind10/branches/parkinglot@555 e5f2f494-b856-4b98-b285-d166d9295462
2010-01-27 01:27:34 +00:00
Michael Graff
c3e6c86cb3 fix up comments a bit more
git-svn-id: svn://bind10.isc.org/svn/bind10/branches/parkinglot@553 e5f2f494-b856-4b98-b285-d166d9295462
2010-01-27 00:59:12 +00:00
Michael Graff
84fcb30c69 fix up comment to not mention that this is a rewrite
git-svn-id: svn://bind10.isc.org/svn/bind10/branches/parkinglot@551 e5f2f494-b856-4b98-b285-d166d9295462
2010-01-27 00:56:04 +00:00
Likun Zhang
7cca5aa337 Prompt the user for a password without echoing.
git-svn-id: svn://bind10.isc.org/svn/bind10/branches/parkinglot@550 e5f2f494-b856-4b98-b285-d166d9295462
2010-01-27 00:52:10 +00:00
JINMEI Tatuya
ee8fefeaf6 removed a (seemingly) unnecessary white space
git-svn-id: svn://bind10.isc.org/svn/bind10/branches/parkinglot@549 e5f2f494-b856-4b98-b285-d166d9295462
2010-01-27 00:49:20 +00:00
Michael Graff
4754ad3431 fix up per review comments
git-svn-id: svn://bind10.isc.org/svn/bind10/branches/parkinglot@548 e5f2f494-b856-4b98-b285-d166d9295462
2010-01-27 00:49:04 +00:00
JINMEI Tatuya
f7a928e06c removed a redundant author
git-svn-id: svn://bind10.isc.org/svn/bind10/branches/parkinglot@547 e5f2f494-b856-4b98-b285-d166d9295462
2010-01-27 00:47:39 +00:00
JINMEI Tatuya
a3d9a1e5f6 use NS::getNSName() to retrieve NS name from an NS RDATA entry.
the use of dynamic_cast is intientional, assuming such specialization is rare.


git-svn-id: svn://bind10.isc.org/svn/bind10/branches/parkinglot@546 e5f2f494-b856-4b98-b285-d166d9295462
2010-01-27 00:38:25 +00:00
JINMEI Tatuya
6cd40e8084 added getNSName()
git-svn-id: svn://bind10.isc.org/svn/bind10/branches/parkinglot@545 e5f2f494-b856-4b98-b285-d166d9295462
2010-01-27 00:33:28 +00:00
Likun Zhang
4a72bd9596 Make the socket address can be reused.
git-svn-id: svn://bind10.isc.org/svn/bind10/branches/parkinglot@544 e5f2f494-b856-4b98-b285-d166d9295462
2010-01-27 00:27:12 +00:00
JINMEI Tatuya
bff50de170 format fix for Message::toText()
git-svn-id: svn://bind10.isc.org/svn/bind10/branches/parkinglot@543 e5f2f494-b856-4b98-b285-d166d9295462
2010-01-27 00:26:33 +00:00
JINMEI Tatuya
5c8f340a7a corrected Additional section ID
git-svn-id: svn://bind10.isc.org/svn/bind10/branches/parkinglot@542 e5f2f494-b856-4b98-b285-d166d9295462
2010-01-27 00:20:16 +00:00
Jeremy C. Reed
f8ec205857 jinmei: DNS msg API now doesn't rely on socket API. so the app
should include necessary .h's explicitly.

so:
#include <netinet/in.h>



git-svn-id: svn://bind10.isc.org/svn/bind10/branches/parkinglot@541 e5f2f494-b856-4b98-b285-d166d9295462
2010-01-27 00:04:05 +00:00
JINMEI Tatuya
9bf0fe6c05 missing header file
git-svn-id: svn://bind10.isc.org/svn/bind10/branches/parkinglot@540 e5f2f494-b856-4b98-b285-d166d9295462
2010-01-26 23:45:29 +00:00
JINMEI Tatuya
5de1f70e0d be sure to set Rcode in responses
git-svn-id: svn://bind10.isc.org/svn/bind10/branches/parkinglot@539 e5f2f494-b856-4b98-b285-d166d9295462
2010-01-26 23:42:24 +00:00
JINMEI Tatuya
bca8ede488 adapted the "host" implementation with the latest DNS message lib
git-svn-id: svn://bind10.isc.org/svn/bind10/branches/parkinglot@538 e5f2f494-b856-4b98-b285-d166d9295462
2010-01-26 23:39:27 +00:00
JINMEI Tatuya
46f36f53a7 made it compile with the latest DNS message lib
(not tested yet)


git-svn-id: svn://bind10.isc.org/svn/bind10/branches/parkinglot@535 e5f2f494-b856-4b98-b285-d166d9295462
2010-01-26 23:10:10 +00:00
JINMEI Tatuya
b4db67074b added some more well known RR Type constants
git-svn-id: svn://bind10.isc.org/svn/bind10/branches/parkinglot@534 e5f2f494-b856-4b98-b285-d166d9295462
2010-01-26 23:08:23 +00:00
Jelte Jansen
8c390e8980 incredibly non-functional start for client-side config API in python
git-svn-id: svn://bind10.isc.org/svn/bind10/branches/parkinglot@533 e5f2f494-b856-4b98-b285-d166d9295462
2010-01-26 23:05:43 +00:00
Shane Kerr
45f81b418a Refactor the child reaping code to sit in the boss class, so we don't
have to kill processes that respect the shutdown command.


git-svn-id: svn://bind10.isc.org/svn/bind10/branches/parkinglot@532 e5f2f494-b856-4b98-b285-d166d9295462
2010-01-26 22:54:35 +00:00
JINMEI Tatuya
3d514aca61 #-Woverloaded-virtual will produce so many warnings. Suppress them for rapid
# prototyping, but we should soon fix the code, rather than ignoring the
# warnings!!


git-svn-id: svn://bind10.isc.org/svn/bind10/branches/parkinglot@531 e5f2f494-b856-4b98-b285-d166d9295462
2010-01-26 22:22:49 +00:00
JINMEI Tatuya
19760b1bb1 merged the latest snapshot of DNS message library to parkinglot
git-svn-id: svn://bind10.isc.org/svn/bind10/branches/parkinglot@530 e5f2f494-b856-4b98-b285-d166d9295462
2010-01-26 22:15:42 +00:00
Likun Zhang
8fdab175f3 Change command run_bindctl to bindctl.
git-svn-id: svn://bind10.isc.org/svn/bind10/branches/parkinglot@529 e5f2f494-b856-4b98-b285-d166d9295462
2010-01-26 22:11:25 +00:00
Likun Zhang
11510aca9c 1. Rename run_bindctl to bindctl.
2. Rename file name "bindctl.py" to 'bindcmd.py'.
3. Rename file name "command.py" to 'cmdparse.py'.

git-svn-id: svn://bind10.isc.org/svn/bind10/branches/parkinglot@528 e5f2f494-b856-4b98-b285-d166d9295462
2010-01-26 22:06:30 +00:00
Jelte Jansen
30a7e3fce4 merged back branches/jelte_datasource1 branch
git-svn-id: svn://bind10.isc.org/svn/bind10/branches/parkinglot@527 e5f2f494-b856-4b98-b285-d166d9295462
2010-01-26 21:55:00 +00:00
Jelte Jansen
0962844906 renamed lib/bind-cfgd to lib/config because it will also contain client-config stuff
moved data_def.* and ccsession.* to lib/config/cpp, they are compiled into lib/config/libclient.a (for now)
fixed includes and ldadds for the rest of the stuff

also fixed an include problem in parkinglot/common.h


git-svn-id: svn://bind10.isc.org/svn/bind10/branches/parkinglot@526 e5f2f494-b856-4b98-b285-d166d9295462
2010-01-26 21:33:45 +00:00
Michael Graff
d255a50214 add kqueue() support in parallel to poll() support
git-svn-id: svn://bind10.isc.org/svn/bind10/branches/parkinglot@525 e5f2f494-b856-4b98-b285-d166d9295462
2010-01-26 21:32:10 +00:00
Jelte Jansen
35fabdf103 some minor include fixes
git-svn-id: svn://bind10.isc.org/svn/bind10/branches/parkinglot@523 e5f2f494-b856-4b98-b285-d166d9295462
2010-01-26 20:46:42 +00:00
Jelte Jansen
98cb1b7335 rest of doxygen for DataDefinition class
git-svn-id: svn://bind10.isc.org/svn/bind10/branches/parkinglot@522 e5f2f494-b856-4b98-b285-d166d9295462
2010-01-26 20:16:56 +00:00
Jeremy C. Reed
13b30757df Sorry another dummy commit -- testing svn post-commit hook.
git-svn-id: svn://bind10.isc.org/svn/bind10/branches/parkinglot@521 e5f2f494-b856-4b98-b285-d166d9295462
2010-01-26 20:08:45 +00:00
Shane Kerr
22ec353059 First BoB tests created
Respect verbose flag when starting BoB
Make message processing robust
Refactor to make testable
Convert from poll() to select() 

Update TODO list



git-svn-id: svn://bind10.isc.org/svn/bind10/branches/parkinglot@520 e5f2f494-b856-4b98-b285-d166d9295462
2010-01-26 20:03:47 +00:00
Jeremy C. Reed
ca1cfc039a Minor changes. (Testing svn post-commit hook.)
git-svn-id: svn://bind10.isc.org/svn/bind10/branches/parkinglot@519 e5f2f494-b856-4b98-b285-d166d9295462
2010-01-26 20:01:50 +00:00
Jelte Jansen
d15a22cd34 a bit of documentation for the DataDefinition class
git-svn-id: svn://bind10.isc.org/svn/bind10/branches/parkinglot@518 e5f2f494-b856-4b98-b285-d166d9295462
2010-01-26 19:57:03 +00:00
Jelte Jansen
c6233a9430 removed manual test binary (this 'test' belongs in a to-be made data_spec_unittests file)
git-svn-id: svn://bind10.isc.org/svn/bind10/branches/parkinglot@517 e5f2f494-b856-4b98-b285-d166d9295462
2010-01-26 19:48:29 +00:00
Jeremy C. Reed
b8b4032ff3 This is for http://bind10.isc.org/ticket/18.
Update configure for lcov and gtest detection.
Be more verbose.
Use gtest-config if available.


git-svn-id: svn://bind10.isc.org/svn/bind10/branches/parkinglot@516 e5f2f494-b856-4b98-b285-d166d9295462
2010-01-26 19:41:22 +00:00
Jelte Jansen
f389d00070 merged back branches/jelte_datasource1 branch
git-svn-id: svn://bind10.isc.org/svn/bind10/branches/parkinglot@515 e5f2f494-b856-4b98-b285-d166d9295462
2010-01-26 18:44:38 +00:00
Jelte Jansen
86b6d221bb fix call to python_exec
git-svn-id: svn://bind10.isc.org/svn/bind10/branches/parkinglot@514 e5f2f494-b856-4b98-b285-d166d9295462
2010-01-26 18:33:51 +00:00
Jeremy C. Reed
bd010e8cc2 Add directory for the userguide and beginning of style guide for it.
git-svn-id: svn://bind10.isc.org/svn/bind10/branches/parkinglot@508 e5f2f494-b856-4b98-b285-d166d9295462
2010-01-25 23:16:09 +00:00
Jelte Jansen
c7378aa072 removed old c msgq
git-svn-id: svn://bind10.isc.org/svn/bind10/trunk@500 e5f2f494-b856-4b98-b285-d166d9295462
2010-01-21 15:58:53 +00:00
Likun Zhang
b1f321649b Add TODO for bindctl and cmd-ctrld.
git-svn-id: svn://bind10.isc.org/svn/bind10/branches/parkinglot@499 e5f2f494-b856-4b98-b285-d166d9295462
2010-01-21 15:40:22 +00:00