Stephen Morris
46cfa07792
[2404] Further refactoring and a bit of simplification.
...
Also, included dhcpsrv in the list of directories searched by Doxygen.
2012-11-26 19:17:27 +00:00
Marcin Siodelski
bfc050ed6c
[2312] Initialize structure holding buffer for data fields.
2012-11-26 20:02:53 +01:00
Marcin Siodelski
7c73dd5e84
[2312] Use common read/write functions to store values in a buffer.
2012-11-26 20:02:53 +01:00
Marcin Siodelski
f3da5ed9ef
[2312] Added functions to read data of different types from buffer.
2012-11-26 20:02:53 +01:00
Marcin Siodelski
f957fa651d
[2312] Added utility class to write data of various types to a buffer.
2012-11-26 20:02:53 +01:00
Marcin Siodelski
08d0d10dd7
[2312] Created OptionCustom class.
2012-11-26 20:02:53 +01:00
Marcin Siodelski
56cfd6612f
[master] Merge branch 'trac2490'
2012-11-26 18:47:46 +01:00
Michal 'vorner' Vaner
ca25d3c2eb
Fix cppcheck complain
...
Cppcheck complained there's an uninitialized variable in constructor.
This is mostly a false positive (the value is not used before being
assigned), but fix it anyway to make it silent.
2012-11-26 16:18:47 +01:00
Jelte Jansen
d561219a0e
[master] Temporarily disable two tests
...
These make distcheck fail on a number of systems (they have built-in disabling code for a number of other systems). See ticket #2479
2012-11-26 14:49:26 +01:00
Stephen Morris
a8cc78f205
[2364] More changes in response to review
...
Also change type of exception thrown by packX() if universe is incorrect.
2012-11-26 13:28:40 +00:00
Stephen Morris
877c06b953
[2364] Minor changes to exception text after review.
2012-11-26 12:43:39 +00:00
Jelte Jansen
c6ceedc0a1
[2374] Comments for end of unnamed namespaces
2012-11-26 11:57:08 +01:00
Jelte Jansen
9904f524d6
[2374] Use correct type for base of strtoul()
2012-11-26 11:48:48 +01:00
Jelte Jansen
b7a45ac8c1
[2374] Add tests for escapes in numbers that are really strings
2012-11-26 11:43:46 +01:00
Michal 'vorner' Vaner
dfb173cea5
Merge #2375
2012-11-26 11:33:12 +01:00
Jelte Jansen
d337cce495
[2374] Fix comments in number tokens
...
a number directly followed by ;comment was not parsed correctly
2012-11-26 11:30:06 +01:00
Michal 'vorner' Vaner
c5eee92f9b
Merge #2376
...
Conflicts:
src/lib/datasrc/datasrc_messages.mes
2012-11-26 11:13:16 +01:00
Jelte Jansen
69e9734996
[1044] Revert perfdhcp disabled tests
...
This still needs to be done, but should probably go into a separate commit straight to master
2012-11-26 11:01:44 +01:00
JINMEI Tatuya
00256ac162
[2375] a few trivial comment updates (fixing copy-paste errors)
2012-11-26 16:40:01 +09:00
JINMEI Tatuya
0d06017990
[2376] corrected a trivial typo in doc
2012-11-26 15:57:47 +09:00
JINMEI Tatuya
d25ef0869f
[2375] cleanup: removed an unused function
2012-11-26 15:55:37 +09:00
JINMEI Tatuya
4263ba5f49
[2420] use "RRSIG(<covered>)" in logging for RRSIG-only RRsets
2012-11-26 14:29:20 +09:00
JINMEI Tatuya
f31f6dd3b5
[2420] made a comment line less confusing (separate unrelated one and add new)
2012-11-26 14:16:37 +09:00
Mukund Sivaraman
4140b1a97f
[1745] Add pid to all log messages
...
Also adjust affected tests accordingly.
2012-11-26 03:15:24 +05:30
Stephen Morris
5b1850bbc2
[2404] Tidying up and refactoring the code
2012-11-23 18:23:21 +00:00
Jelte Jansen
65962eeed6
[2398] update doc and comments
2012-11-23 16:03:07 +01:00
Jelte Jansen
553dfb31fc
[2398] Test and catch more socket errors
2012-11-23 15:38:36 +01:00
Stephen Morris
3b2c2c14fb
[2404] Add ability to update an IPv4 lease
2012-11-23 14:08:00 +00:00
Jelte Jansen
0ce073c9aa
[2398] Introduce stop mechanism in msgqM
...
Introduced a lowlevel mechanism into msgq to stop it (other than ye olde SIGTERM); a lowlevel message 'stop' will cause it to stop listening and shut down. Needed to add timeouts to poll() and control() for that, but chose them relatively high (their loop should simply reloop if they time out)
This allows the threaded msgq testing code to be more reliable (and not having to daemonize and arbitrarily kill threads except in the case of major failures, in which case the test itself will fail)
2012-11-23 14:58:39 +01:00
Stephen Morris
a08894f451
[2404] Add method to get lease4 by client ID and subnet ID
2012-11-23 13:48:42 +00:00
Stephen Morris
7e6602a873
[2404] Add get lease4 by client ID
2012-11-23 12:47:40 +00:00
Stephen Morris
3eab2458f1
[2404] Add method to get lease4 by hardware address & subnet ID
2012-11-23 12:23:17 +00:00
Stephen Morris
59c65b476b
[2404] Now able to get IPv4 leases by hardware address
2012-11-23 12:05:55 +00:00
Marcin Siodelski
139f66086e
[2490] Changes as a result of review.
2012-11-23 10:06:15 +01:00
Stephen Morris
aac0dd304b
[2410] Changes as a result of review
2012-11-22 19:22:25 +00:00
Jelte Jansen
ebe0d8a602
[1044] Address review comments
...
See http://bind10.isc.org/ticket/1044#comment:13
2012-11-22 15:30:18 +01:00
Michal 'vorner' Vaner
b3bcbf0497
[2375] Eliminate fake states
2012-11-22 14:05:15 +01:00
Michal 'vorner' Vaner
5934fc7661
[2375] Cover the getNextToken with tests without fakes
2012-11-22 13:59:21 +01:00
Stephen Morris
2f15c7833b
[1486] Merge branch 'master' into trac1486
2012-11-22 11:49:16 +00:00
Michal 'vorner' Vaner
644d7aaedf
[2375] Simplify the state transition design pattern
...
We never have a chain of the transitions. We only do start and zero or
one handle on the returned one. Simplify handle to return void, not
NULL.
Besides simplification, it allows testing without fake states (TBD) - we
had no real state to test the multiple transitions.
2012-11-22 11:53:29 +01:00
JINMEI Tatuya
5069933d08
[2375] fixed a typo in a comment
2012-11-22 11:38:22 +01:00
JINMEI Tatuya
6b846ec5ed
[2375] some style matters: mostly about constness, and folded a long line.
...
Conflicts (from cherry-pick):
src/lib/dns/tests/master_lexer_unittest.cc
2012-11-22 11:37:38 +01:00
Michal 'vorner' Vaner
e27a2922bc
[2375] Return a reference to the token
...
The copy is shallow anyway, so it wouldn't survive for long.
2012-11-22 11:34:48 +01:00
Michal 'vorner' Vaner
907061f81b
[2375] Handle EOF after unbalanced parentheses
...
If there's an error that manifests at the end of a file, like an
unbalanced parenthesis or a quoted string that does not end, report the
error. But also, return EOF as the next token, not an exception.
2012-11-22 11:17:55 +01:00
Michal 'vorner' Vaner
0c0888ef6a
[2375] Remove exception handling from getNextToken
...
It was deemed unneeded and is removed therefore, to make the code
smaller.
2012-11-22 11:07:03 +01:00
Jelte Jansen
70a7eb4ae1
[2374] Add Number lexer state
2012-11-21 23:35:40 +01:00
Stephen Morris
af71689ee4
[2404] Add getLease4(const IOAddress&, SubnetId)
...
Add ability to select IPv4 leases by address and Subnet ID.
2012-11-21 19:38:26 +00:00
Stephen Morris
56bcca870b
[2410] Fix race condition in DHCP4 test
...
Same change as in commit 9f454868d6
but applied to the DHCP4 test.
2012-11-21 18:18:28 +00:00
Stephen Morris
9f454868d6
[2410] Attempt to fix race condition in test
...
Attempts to fix a process/subprocess race condition by having
the parent process loop waiting for output instead of assuming
that the subprocess has started and has written something by the
time it gets round to reading it.
Also closes a few unclosed file descriptors at the end of a test.
2012-11-21 18:03:04 +00:00
Marcin Siodelski
c84d8a4bcf
[2490] Removed redundant parameters.
2012-11-21 17:32:49 +01:00