Ted Lemon
21fd88eaec
- Register the interface_initialize function (fixes a problem with
...
uninitialized interfaces being registered anyway and causing the
server to exit).
2001-01-03 23:13:46 +00:00
Ted Lemon
90439d6bfe
Fix up internal documentation for option parse codes.
2000-12-29 06:46:23 +00:00
Ted Lemon
42c6a80350
Add support for parsing enumerations.
2000-12-29 06:45:49 +00:00
Ted Lemon
3a9992b455
Add support (not debugged) for printing enumerations.
2000-12-29 06:45:00 +00:00
Ted Lemon
3fdb840514
Correctly implement the subnet selection option.
2000-12-28 23:20:53 +00:00
Ted Lemon
aab30e3b02
Fix debug message for 'static' operator.
2000-12-28 23:20:28 +00:00
Ted Lemon
630786fcff
- Fix typo in base64 table (Albert Herranz).
...
- Allow key names to be any valid domain name.
2000-12-28 23:18:36 +00:00
Ted Lemon
98a8d72e71
- Fix up a minor nit in the fqdn code.
...
- Consistently tack an end option onto any outgoing option buffer.
2000-12-28 23:16:19 +00:00
Ted Lemon
a034015fac
Move interface code so that it doesn't pollute the relay agent.
2000-12-28 23:14:46 +00:00
Ted Lemon
e93c7089ca
Account for word alignment of buffer returned by bpf.
2000-12-28 23:13:07 +00:00
Damien Neil
b992d7e23d
DDNS implementation rewrite. DDNS should now operate according to
...
<draft-ietf-dhc-dhcp-dns-12.txt>.
common/options.c, common/tables.c, includes/dhcp.h:
Split the fqdn.name option into fqdn.hostname and fqdn.domainname.
includes/dhcpd.h, server/Makefile.dist, server/ddns.c, server/dhcp.c,
server/mdb.c, server/stables.c:
Added a new file (server/ddns.c) containing the DDNS updates code.
This file exports two functions: ddns_updates() and ddns_removals().
ddns_updates() is called when a lease is granted, and ddns_removals()
is called when the lease expires or is released.
server/dhcpd.c:
Remove the previous DDNS update code, and add default code for the
ddns-hostname, ddns-domainname, ddns-ttl, and ddns-rev-domainname
server options.
2000-12-11 18:56:45 +00:00
Ted Lemon
2f98b84e37
Support unqualified signature algorithm names and base64 in quotes.
2000-12-05 07:15:16 +00:00
Ted Lemon
752214df9a
Document client-state operator.
2000-12-05 07:13:16 +00:00
Ted Lemon
cf19946363
Add client state keywords.
2000-12-05 07:12:18 +00:00
Damien Neil
81beacfb83
Added a case to handle log statements in write_statements(), avoiding
...
server death when log statements appear in commit or expiry clauses.
2000-12-02 00:04:22 +00:00
Ted Lemon
eec641ca22
Word-align BPF buffers.
2000-11-30 18:12:56 +00:00
Ted Lemon
8df547bf26
Fix an uninitialized variable reference
2000-11-29 13:38:36 +00:00
Ted Lemon
16121af516
- Add client-state expression.
...
- Fix debugging printf formats.
- Pass client state to eval functions.
2000-11-28 23:23:13 +00:00
Ted Lemon
6d531e7fd2
Add printer for client-state.
2000-11-28 23:18:40 +00:00
Ted Lemon
9a7f6fcd0b
- Move some common functions from clparse.c.
...
- Print an error if not is invoked on a non-boolean expression. Add
client-state function.
2000-11-28 23:16:26 +00:00
Ted Lemon
dd15a833d1
- Pass client state to eval functions.
...
- Fix a couple of bugs in agent option handling.
2000-11-28 23:10:28 +00:00
Ted Lemon
63b4fbf9ae
Pass client state to eval functions.
2000-11-28 22:50:38 +00:00
Ted Lemon
d2ba836d0b
Pass client state to eval functions.
2000-11-28 22:34:02 +00:00
Ted Lemon
adccf9164a
Add client-state keyword.
2000-11-28 22:11:52 +00:00
Ted Lemon
97a4f219a3
Fix a mistaken reference in reverse().
2000-11-24 04:08:31 +00:00
Ted Lemon
f769d5ac91
Initialize option_space_foreach for ad-hoc option spaces.
2000-11-24 04:04:04 +00:00
Ted Lemon
b05b429887
Fix up a bunch of suboption parsing bugs.
2000-11-24 04:00:04 +00:00
Ted Lemon
488e1310f6
Don't look up null zones, and don't allocate a zone if we already have one.
2000-11-24 03:55:46 +00:00
Damien Neil
e1befbaa3a
Applied fix from bug #427 : cache_found_zone() was callign dns_zone_lookup()
...
with an uninitialized value.
2000-11-02 00:04:40 +00:00
Ted Lemon
e28dccc159
Fix the math in the udp packet length calculator.
2000-10-15 18:54:29 +00:00
Ted Lemon
da9a43af69
Fix a stupid byte-swap error.
2000-10-14 07:56:59 +00:00
Ted Lemon
4ab5d6e340
Fix title.
2000-10-13 19:00:11 +00:00
Ted Lemon
b0fff90afc
Don't trust udp -> uh_len.
2000-10-13 18:54:56 +00:00
Ted Lemon
37ab25f678
Take out a bogus option cache dereference.
2000-10-13 18:47:21 +00:00
Ted Lemon
8e979eb6c4
Make print.c compile with DEBUG (and, coincidentally, make it work better).
2000-10-12 08:59:07 +00:00
Ted Lemon
b2b468ef84
Add cache_found_zone() function.
2000-10-12 08:58:11 +00:00
Ted Lemon
d4efd974e5
Fix a couple of signed vs. unsigned pointer errors.
2000-10-11 07:57:20 +00:00
Ted Lemon
85c14386b8
Use set_option instead of universe -> set_func
2000-10-10 23:22:39 +00:00
Ted Lemon
c0017c7560
Update the agent option documentation.
2000-10-10 23:21:04 +00:00
Ted Lemon
975bd4642d
- Add some code for testing more potential configuration file errors at
...
parse time, but don't enable it yet.
- Use option_get and option_put rather than universe-specific get_func
and put_func calls.
2000-10-10 22:51:58 +00:00
Ted Lemon
781c0375bf
- Add the FQDN option space.
...
- Add support for encapsulations in option format strings, and use it.
- Standardize the functions that access option universes.
2000-10-10 22:48:20 +00:00
Ted Lemon
962dc4ab09
- Add support for user-defined encapsulations.
...
- Add code to detect impossible or unlikely tests and flag them with
warnings, but don't enable this code until after the 3.0 release.
For example, it would flag a warning on this code:
if (substring (foo, 0, 3) = 01:02:03:04) { ...
because this comparison can never succeed.
2000-10-10 22:45:25 +00:00
Ted Lemon
77956158d4
- Make option spaces stored as linked lists first-class objects.
...
- Use these spaces for the agent option space, fqdn option space and
nwip option space.
- Make encapsulator and decoder for fqdn option space.
- Support the agent option space the way all option spaces are supported
to the extent possibol, rather than special-casing it.
- Add an enumerator function for defined options in an option space.
- Support encapsulated options directly with a format string, rather than
as another special case.
2000-10-10 22:39:47 +00:00
Ted Lemon
e31656de63
Don't compile in Token Ring support if it's not supported.
2000-10-10 22:34:39 +00:00
Ted Lemon
f1242fb40f
Fix up call to omapi_object_type_register.
2000-10-10 22:33:56 +00:00
Ted Lemon
08921fe06c
- Add initializer for interfaces.
...
- Don't register for I/O on interfaces on which we are not listening.
2000-10-10 22:31:41 +00:00
Ted Lemon
ae7bc13a2f
Document encapsulate type and fqdn option space.
2000-10-10 22:29:33 +00:00
Ted Lemon
88179fea29
Undocument check operator.
2000-10-10 22:07:25 +00:00
Ted Lemon
eebf58bc75
Add initializer arg to object type setup calls.
2000-10-10 22:05:53 +00:00
Ted Lemon
52b2c64036
Don't compile in token ring stuff if we don't support it.
2000-10-10 22:00:09 +00:00