Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
D
dhcp
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
72
Issues
72
List
Boards
Labels
Service Desk
Milestones
Merge Requests
18
Merge Requests
18
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Operations
Operations
Incidents
Environments
Packages & Registries
Packages & Registries
Container Registry
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
ISC Open Source Projects
dhcp
Commits
c57db45c
Commit
c57db45c
authored
Jan 29, 2007
by
Shane Kerr
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Spelling fixes. See RT ticket 16513 for details.
parent
253c8b6a
Changes
16
Hide whitespace changes
Inline
Side-by-side
Showing
16 changed files
with
53 additions
and
50 deletions
+53
-50
RELNOTES
RELNOTES
+3
-0
client/clparse.c
client/clparse.c
+2
-2
common/options.c
common/options.c
+2
-2
common/parse.c
common/parse.c
+19
-19
common/print.c
common/print.c
+2
-2
common/tables.c
common/tables.c
+4
-4
common/tree.c
common/tree.c
+7
-7
dhcpctl/omshell.c
dhcpctl/omshell.c
+2
-2
doc/ja_JP.eucJP/dhcp-eval.5
doc/ja_JP.eucJP/dhcp-eval.5
+2
-2
includes/cf/linux.h
includes/cf/linux.h
+1
-1
includes/cf/sample.h
includes/cf/sample.h
+2
-2
includes/dhcpd.h
includes/dhcpd.h
+1
-1
includes/failover.h
includes/failover.h
+1
-1
includes/tree.h
includes/tree.h
+1
-1
server/confpars.c
server/confpars.c
+2
-2
server/failover.c
server/failover.c
+2
-2
No files found.
RELNOTES
View file @
c57db45c
...
...
@@ -25,6 +25,9 @@ For information on how to install, configure and run this software,
as
well
as
how
to
find
documentation
and
report
bugs
,
please
consult
the
README
file
.
Changes
since
3.1.0
a3
-
Some
spelling
fixes
.
Changes
since
3.1.0
a2
...
...
client/clparse.c
View file @
c57db45c
...
...
@@ -34,7 +34,7 @@
#ifndef lint
static
char
copyright
[]
=
"$Id: clparse.c,v 1.6
7 2006/06/01 20:23:16 dhankins
Exp $ Copyright (c) 2004-2006 Internet Systems Consortium. All rights reserved.
\n
"
;
"$Id: clparse.c,v 1.6
8 2007/01/29 10:25:54 shane
Exp $ Copyright (c) 2004-2006 Internet Systems Consortium. All rights reserved.
\n
"
;
#endif
/* not lint */
#include "dhcpd.h"
...
...
@@ -288,7 +288,7 @@ void parse_client_statement (cfile, ip, config)
return
;
/* REQUIRE can either start a policy statement or a
comma-sep
e
rated list of names of required options. */
comma-sep
a
rated list of names of required options. */
case
REQUIRE
:
next_token
(
&
val
,
(
unsigned
*
)
0
,
cfile
);
token
=
peek_token
(
&
val
,
(
unsigned
*
)
0
,
cfile
);
...
...
common/options.c
View file @
c57db45c
...
...
@@ -34,7 +34,7 @@
#ifndef lint
static
char
copyright
[]
=
"$Id: options.c,v 1.10
2 2007/01/11 16:31:51 dhankins
Exp $ Copyright (c) 2004-2006 Internet Systems Consortium. All rights reserved.
\n
"
;
"$Id: options.c,v 1.10
3 2007/01/29 10:25:54 shane
Exp $ Copyright (c) 2004-2006 Internet Systems Consortium. All rights reserved.
\n
"
;
#endif
/* not lint */
#define DHCP_OPTION_DATA
...
...
@@ -476,7 +476,7 @@ int fqdn_universe_decode (struct option_state *options,
}
/* cons options into a big buffer, and then split them out into the
three sep
e
rate buffers if needed. This allows us to cons up a set
three sep
a
rate buffers if needed. This allows us to cons up a set
of vendor options using the same routine. */
int
cons_options
(
inpacket
,
outpacket
,
lease
,
client_state
,
...
...
common/parse.c
View file @
c57db45c
...
...
@@ -34,7 +34,7 @@
#ifndef lint
static
char
copyright
[]
=
"$Id: parse.c,v 1.11
8 2007/01/28 23:00:19 each
Exp $ Copyright (c) 2004-2006 Internet Systems Consortium. All rights reserved.
\n
"
;
"$Id: parse.c,v 1.11
9 2007/01/29 10:25:54 shane
Exp $ Copyright (c) 2004-2006 Internet Systems Consortium. All rights reserved.
\n
"
;
#endif
/* not lint */
#include "dhcpd.h"
...
...
@@ -414,7 +414,7 @@ parse_ip_addr_with_subnet(cfile, match)
}
/*
* hardware-parameter :== HARDWARE hardware-type colon-sep
e
rated-hex-list SEMI
* hardware-parameter :== HARDWARE hardware-type colon-sep
a
rated-hex-list SEMI
* hardware-type :== ETHERNET | TOKEN_RING | FDDI
*/
...
...
@@ -513,18 +513,18 @@ void parse_lease_time (cfile, timep)
}
/* No BNF for numeric aggregates - that's defined by the caller. What
this function does is to parse a sequence of numbers sep
e
rated by
the token specified in sep
e
rator. If max is zero, any number of
this function does is to parse a sequence of numbers sep
a
rated by
the token specified in sep
a
rator. If max is zero, any number of
numbers will be parsed; otherwise, exactly max numbers are
expected. Base and size tell us how to internalize the numbers
once they've been tokenized. */
unsigned
char
*
parse_numeric_aggregate
(
cfile
,
buf
,
max
,
sep
e
rator
,
base
,
size
)
max
,
sep
a
rator
,
base
,
size
)
struct
parse
*
cfile
;
unsigned
char
*
buf
;
unsigned
*
max
;
int
sep
e
rator
;
int
sep
a
rator
;
int
base
;
unsigned
size
;
{
...
...
@@ -545,7 +545,7 @@ unsigned char *parse_numeric_aggregate (cfile, buf,
do
{
if
(
count
)
{
token
=
peek_token
(
&
val
,
(
unsigned
*
)
0
,
cfile
);
if
(
token
!=
sep
e
rator
)
{
if
(
token
!=
sep
a
rator
)
{
if
(
!*
max
)
break
;
if
(
token
!=
RBRACE
&&
token
!=
LBRACE
)
...
...
@@ -802,11 +802,11 @@ TIME parse_date (cfile)
if
(
year
>
1900
)
year
-=
1900
;
/* Slash sep
e
rating year from month... */
/* Slash sep
a
rating year from month... */
token
=
next_token
(
&
val
,
(
unsigned
*
)
0
,
cfile
);
if
(
token
!=
SLASH
)
{
parse_warn
(
cfile
,
"expected slash sep
e
rating year from month."
);
"expected slash sep
a
rating year from month."
);
if
(
token
!=
SEMI
)
skip_to_semi
(
cfile
);
return
(
TIME
)
0
;
...
...
@@ -822,11 +822,11 @@ TIME parse_date (cfile)
}
mon
=
atoi
(
val
)
-
1
;
/* Slash sep
e
rating month from day... */
/* Slash sep
a
rating month from day... */
token
=
next_token
(
&
val
,
(
unsigned
*
)
0
,
cfile
);
if
(
token
!=
SLASH
)
{
parse_warn
(
cfile
,
"expected slash sep
e
rating month from day."
);
"expected slash sep
a
rating month from day."
);
if
(
token
!=
SEMI
)
skip_to_semi
(
cfile
);
return
(
TIME
)
0
;
...
...
@@ -852,11 +852,11 @@ TIME parse_date (cfile)
}
hour
=
atoi
(
val
);
/* Colon sep
e
rating hour from minute... */
/* Colon sep
a
rating hour from minute... */
token
=
next_token
(
&
val
,
(
unsigned
*
)
0
,
cfile
);
if
(
token
!=
COLON
)
{
parse_warn
(
cfile
,
"expected colon sep
e
rating hour from minute."
);
"expected colon sep
a
rating hour from minute."
);
if
(
token
!=
SEMI
)
skip_to_semi
(
cfile
);
return
(
TIME
)
0
;
...
...
@@ -872,11 +872,11 @@ TIME parse_date (cfile)
}
min
=
atoi
(
val
);
/* Colon sep
e
rating minute from second... */
/* Colon sep
a
rating minute from second... */
token
=
next_token
(
&
val
,
(
unsigned
*
)
0
,
cfile
);
if
(
token
!=
COLON
)
{
parse_warn
(
cfile
,
"expected colon sep
e
rating hour from minute."
);
"expected colon sep
a
rating hour from minute."
);
if
(
token
!=
SEMI
)
skip_to_semi
(
cfile
);
return
(
TIME
)
0
;
...
...
@@ -1701,8 +1701,8 @@ int parse_base64 (data, cfile)
/*
* colon-sep
e
rated-hex-list :== NUMBER |
* NUMBER COLON colon-sep
e
rated-hex-list
* colon-sep
a
rated-hex-list :== NUMBER |
* NUMBER COLON colon-sep
a
rated-hex-list
*/
int
parse_cshl
(
data
,
cfile
)
...
...
@@ -3101,7 +3101,7 @@ int parse_boolean_expression (expr, cfile, lose)
* PACKET LPAREN numeric-expression COMMA
* numeric-expression RPAREN |
* STRING |
* colon_sep
e
rated_hex_list
* colon_sep
a
rated_hex_list
*/
int
parse_data_expression
(
expr
,
cfile
,
lose
)
...
...
@@ -3519,7 +3519,7 @@ int parse_non_binary (expr, cfile, lose, context)
if
(
token
!=
COMMA
)
goto
nocomma
;
if
(
!
parse_data_expression
(
&
(
*
expr
)
->
data
.
b2a
.
sep
e
rator
,
if
(
!
parse_data_expression
(
&
(
*
expr
)
->
data
.
b2a
.
sep
a
rator
,
cfile
,
lose
))
goto
nodata
;
...
...
common/print.c
View file @
c57db45c
...
...
@@ -34,7 +34,7 @@
#ifndef lint
static
char
copyright
[]
=
"$Id: print.c,v 1.6
2 2007/01/28 23:00:19 each
Exp $ Copyright (c) 2004-2006 Internet Systems Consortium. All rights reserved.
\n
"
;
"$Id: print.c,v 1.6
3 2007/01/29 10:25:54 shane
Exp $ Copyright (c) 2004-2006 Internet Systems Consortium. All rights reserved.
\n
"
;
#endif
/* not lint */
#include "dhcpd.h"
...
...
@@ -918,7 +918,7 @@ static unsigned print_subexpression (expr, buf, len)
rv
+=
print_subexpression
(
expr
->
data
.
b2a
.
width
,
buf
+
rv
,
len
-
rv
-
3
);
buf
[
rv
++
]
=
' '
;
rv
+=
print_subexpression
(
expr
->
data
.
b2a
.
sep
e
rator
,
rv
+=
print_subexpression
(
expr
->
data
.
b2a
.
sep
a
rator
,
buf
+
rv
,
len
-
rv
-
2
);
buf
[
rv
++
]
=
' '
;
rv
+=
print_subexpression
(
expr
->
data
.
b2a
.
buffer
,
...
...
common/tables.c
View file @
c57db45c
...
...
@@ -34,7 +34,7 @@
#ifndef lint
static
char
copyright
[]
=
"$Id: tables.c,v 1.6
0 2006/10/27 22:54:12 dhankins
Exp $ Copyright (c) 2004-2006 Internet Systems Consortium. All rights reserved.
\n
"
;
"$Id: tables.c,v 1.6
1 2007/01/29 10:25:54 shane
Exp $ Copyright (c) 2004-2006 Internet Systems Consortium. All rights reserved.
\n
"
;
#endif
/* not lint */
#include "dhcpd.h"
...
...
@@ -74,7 +74,7 @@ HASH_FUNCTIONS (option_code, const unsigned *, struct option,
F - implicit flag - the presence of the option indicates that the
flag is true.
o - the preceding value is optional.
E - encapsulation, string or colon-sep
e
rated hex list (the latter
E - encapsulation, string or colon-sep
a
rated hex list (the latter
two for parsing). E is followed by a text string containing
the name of the option space to encapsulate, followed by a '.'.
If the E is immediately followed by '.', the applicable vendor
...
...
@@ -86,9 +86,9 @@ HASH_FUNCTIONS (option_code, const unsigned *, struct option,
thing in the option.
X - either an ASCII string or binary data. On output, the string is
scanned to see if it's printable ASCII and, if so, output as a
quoted string. If not, it's output as colon-sep
e
rated hex. On
quoted string. If not, it's output as colon-sep
a
rated hex. On
input, the option can be specified either as a quoted string or as
a colon-sep
e
rated hex list.
a colon-sep
a
rated hex list.
N - enumeration. N is followed by a text string containing
the name of the set of enumeration values to parse or emit,
followed by a '.'. The width of the data is specified in the
...
...
common/tree.c
View file @
c57db45c
...
...
@@ -34,7 +34,7 @@
#ifndef lint
static
char
copyright
[]
=
"$Id: tree.c,v 1.11
1 2007/01/28 23:00:19 each
Exp $ Copyright (c) 2004-2006 Internet Systems Consortium. All rights reserved.
\n
"
;
"$Id: tree.c,v 1.11
2 2007/01/29 10:25:54 shane
Exp $ Copyright (c) 2004-2006 Internet Systems Consortium. All rights reserved.
\n
"
;
#endif
/* not lint */
#include "dhcpd.h"
...
...
@@ -852,7 +852,7 @@ int evaluate_dns_expression (result, packet, lease, client_state, in_options,
ASCII string both look like data expressions, but
for A records, we want an ASCII string, not a
binary IP address. Do I need to turn binary IP
addresses into a sep
e
rate type? */
addresses into a sep
a
rate type? */
return
(
r0
&&
r1
&&
(
r2
||
expr
->
op
!=
expr_ns_add
)
&&
*
result
);
...
...
@@ -1825,12 +1825,12 @@ int evaluate_data_expression (result, packet, lease, client_state,
scope
,
expr
->
data
.
b2a
.
width
);
/* Evaluate the sep
e
rator string. */
/* Evaluate the sep
a
rator string. */
memset
(
&
data
,
0
,
sizeof
data
);
s2
=
evaluate_data_expression
(
&
data
,
packet
,
lease
,
client_state
,
in_options
,
cfg_options
,
scope
,
expr
->
data
.
b2a
.
sep
e
rator
,
expr
->
data
.
b2a
.
sep
a
rator
,
MDL
);
/* Evaluate the data to be converted. */
...
...
@@ -2997,8 +2997,8 @@ void expression_dereference (eptr, file, line)
if
(
expr
->
data
.
b2a
.
width
)
expression_dereference
(
&
expr
->
data
.
b2a
.
width
,
file
,
line
);
if
(
expr
->
data
.
b2a
.
sep
e
rator
)
expression_dereference
(
&
expr
->
data
.
b2a
.
sep
e
rator
,
if
(
expr
->
data
.
b2a
.
sep
a
rator
)
expression_dereference
(
&
expr
->
data
.
b2a
.
sep
a
rator
,
file
,
line
);
if
(
expr
->
data
.
b2a
.
buffer
)
expression_dereference
(
&
expr
->
data
.
b2a
.
buffer
,
...
...
@@ -3693,7 +3693,7 @@ int write_expression (file, expr, col, indent, firstp)
col
,
scol
,
0
);
col
=
token_print_indent
(
file
,
col
,
scol
,
""
,
" "
,
","
);
col
=
write_expression
(
file
,
expr
->
data
.
b2a
.
sep
e
rator
,
col
=
write_expression
(
file
,
expr
->
data
.
b2a
.
sep
a
rator
,
col
,
scol
,
0
);
col
=
token_print_indent
(
file
,
col
,
scol
,
""
,
" "
,
","
);
...
...
dhcpctl/omshell.c
View file @
c57db45c
...
...
@@ -34,7 +34,7 @@
#ifndef lint
static
char
copyright
[]
=
"$Id: omshell.c,v 1.1
1 2006/02/24 23:16:29 dhankins
Exp $ Copyright (c) 2004-2006 Internet Systems Consortium. All rights reserved.
\n
"
;
"$Id: omshell.c,v 1.1
2 2007/01/29 10:25:55 shane
Exp $ Copyright (c) 2004-2006 Internet Systems Consortium. All rights reserved.
\n
"
;
#endif
/* not lint */
#include <time.h>
...
...
@@ -473,7 +473,7 @@ int main (int argc, char **argv, char **envp)
case
NUMBER
:
strcpy
(
buf
,
val
);
token
=
peek_token
(
&
val
,
(
unsigned
*
)
0
,
cfile
);
/* Colon-sep
e
rated hex list? */
/* Colon-sep
a
rated hex list? */
if
(
token
==
COLON
)
goto
cshl
;
else
if
(
token
==
DOT
)
{
...
...
doc/ja_JP.eucJP/dhcp-eval.5
View file @
c57db45c
.\" $Id: dhcp-eval.5,v 1.
2 2005/03/17 20:15:05 dhankins
Exp $
.\" $Id: dhcp-eval.5,v 1.
3 2007/01/29 10:25:55 shane
Exp $
.\"
.\" Copyright (c) 2004 by Internet Systems Consortium, Inc. ("ISC")
.\" Copyright (c) 1996-2003 by Internet Software Consortium
...
...
@@ -250,7 +250,7 @@ FDDI (8)
.\" horikawa@jp.FreeBSD.org 2002/05/01
.RE
.PP
.I colon-sep
e
rated hexadecimal list
.I colon-sep
a
rated hexadecimal list
.PP
.RS 0.25i
コロンで区切られた 16 進数のオクテット値のリストを、
...
...
includes/cf/linux.h
View file @
c57db45c
...
...
@@ -79,7 +79,7 @@ extern int h_errno;
in /var/state/misc - indeed, given that there's only one lease file, it
would probably be better. However, I have some ideas for optimizing
the lease database that may result in a _lot_ of smaller files being
created, so in that context it makes more sense to have a sep
e
rate
created, so in that context it makes more sense to have a sep
a
rate
directory. */
#ifndef _PATH_DHCPD_DB
...
...
includes/cf/sample.h
View file @
c57db45c
...
...
@@ -256,13 +256,13 @@ char *strerror PROTO ((int));
/* #define HAVE_SA_LEN */
/* Every operating system has its own way of sep
e
rating lines in a
/* Every operating system has its own way of sep
a
rating lines in a
sequential text file. Most modern systems use a single character,
either an ASCII Newline (10) or an ASCII Carriage Return (13).
The most notable exception is MS-DOS (and consequently, Windows),
which uses an ASCII Carriage Return followed by a Newline to
sep
e
rate each line. Fortunately, MS-DOS C compiler libraries
sep
a
rate each line. Fortunately, MS-DOS C compiler libraries
typically hide this from the programmer, returning just a Newline.
Define EOL to be whatever getc() returns for a newline. */
...
...
includes/dhcpd.h
View file @
c57db45c
...
...
@@ -285,7 +285,7 @@ struct option_tag {
/* An agent option structure. We need a special structure for the
Relay Agent Information option because if more than one appears in
a message, we have to keep them sep
e
rate. */
a message, we have to keep them sep
a
rate. */
struct
agent_options
{
struct
agent_options
*
next
;
...
...
includes/failover.h
View file @
c57db45c
...
...
@@ -304,7 +304,7 @@ enum failover_state {
/* Service states are simplifications of failover states, particularly
useful because the startup state isn't actually implementable as a
sep
e
rate failover state without maintaining a state stack. */
sep
a
rate failover state without maintaining a state stack. */
enum
service_state
{
unknown_service_state
,
...
...
includes/tree.h
View file @
c57db45c
...
...
@@ -237,7 +237,7 @@ struct expression {
struct
{
struct
expression
*
base
;
struct
expression
*
width
;
struct
expression
*
sep
e
rator
;
struct
expression
*
sep
a
rator
;
struct
expression
*
buffer
;
}
b2a
;
struct
{
...
...
server/confpars.c
View file @
c57db45c
...
...
@@ -34,7 +34,7 @@
#ifndef lint
static
char
copyright
[]
=
"$Id: confpars.c,v 1.1
59 2006/07/25 13:26:00
shane Exp $ Copyright (c) 2004-2006 Internet Systems Consortium. All rights reserved.
\n
"
;
"$Id: confpars.c,v 1.1
60 2007/01/29 10:25:55
shane Exp $ Copyright (c) 2004-2006 Internet Systems Consortium. All rights reserved.
\n
"
;
#endif
/* not lint */
#include "dhcpd.h"
...
...
@@ -2695,7 +2695,7 @@ int parse_lease_declaration (struct lease **lp, struct parse *cfile)
}
break
;
/* Colon-sep
e
rated hexadecimal octets... */
/* Colon-sep
a
rated hexadecimal octets... */
case
UID
:
seenbit
=
8
;
token
=
peek_token
(
&
val
,
(
unsigned
*
)
0
,
cfile
);
...
...
server/failover.c
View file @
c57db45c
...
...
@@ -34,7 +34,7 @@
#ifndef lint
static
char
copyright
[]
=
"$Id: failover.c,v 1.6
8 2006/10/27 22:54:12 dhankins
Exp $ Copyright (c) 2004-2006 Internet Systems Consortium. All rights reserved.
\n
"
;
"$Id: failover.c,v 1.6
9 2007/01/29 10:25:55 shane
Exp $ Copyright (c) 2004-2006 Internet Systems Consortium. All rights reserved.
\n
"
;
#endif
/* not lint */
#include "dhcpd.h"
...
...
@@ -164,7 +164,7 @@ isc_result_t find_failover_peer (peer, name, file, line)
each failover partner declaration in the dhcpd.conf file, primary
or secondary, there is a failover_state object. For any primary or
secondary state object that has a connection to its peer, there is
also a failover_link object, which has its own input state sep
e
rate
also a failover_link object, which has its own input state sep
a
rate
from the failover protocol state for managing the actual bytes
coming in off the wire. Finally, there will be one listener object
for every distinct port number associated with a secondary
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment