Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
ISC Open Source Projects
Kea
Commits
ebb6493b
Commit
ebb6493b
authored
Jun 22, 2011
by
Stephen Morris
Browse files
[trac998] Minor format changes
parent
c786a616
Changes
1
Hide whitespace changes
Inline
Side-by-side
src/lib/acl/ip_check.h
View file @
ebb6493b
...
...
@@ -159,7 +159,7 @@ public:
IPCheck
(
uint32_t
address
,
int
prefixlen
=
8
*
IPV4_SIZE
)
:
address_
(
IPV4_SIZE
),
mask_
(),
family_
(
AF_INET
)
{
// The address is stored in network-byte order, so the
// The address is stored in network-byte order, so the
// the address passed should be stored at the lowest address in
// the array.
address_
[
3
]
=
static_cast
<
uint8_t
>
((
address
)
&
0xff
);
...
...
@@ -190,7 +190,7 @@ public:
///
/// Constructs an IP Check object from an address or address prefix in the
/// form <ip-address>/n".
///
///
/// Also allowed are the special keywords "any4" and "any6", which match
/// any IPV4 or IPV6 address. These must be specified exactly as-is
/// (i.e. lowercase, with no leading or trailing spaces).
...
...
@@ -340,7 +340,7 @@ private:
if
(
family
!=
family_
)
{
// Can't match if the address is of the wrong family
return
(
false
);
}
// Simple check failed, so have to do a complete match. To check that
...
...
@@ -414,7 +414,7 @@ private:
}
else
{
isc_throw
(
isc
::
OutOfRange
,
"mask size of "
<<
requested
<<
" is invalid "
<<
"for the give
m
address"
);
"for the give
n
address"
);
}
}
...
...
Write
Preview
Supports
Markdown
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