mirror of
https://gitlab.isc.org/isc-projects/dhcp
synced 2025-08-30 22:05:23 +00:00
Document encode-int
This commit is contained in:
@@ -238,9 +238,21 @@ specified as a data expression.
|
|||||||
.RE
|
.RE
|
||||||
.PP
|
.PP
|
||||||
.B concat (\fIdata-expr1\fB, \fIdata-expr2\fB)\fR
|
.B concat (\fIdata-expr1\fB, \fIdata-expr2\fB)\fR
|
||||||
|
.RS 0.25i
|
||||||
The two expressions are evaluated, and the result of concatenating the
|
The two expressions are evaluated, and the result of concatenating the
|
||||||
results of the two evaluations is returned. If either subexpression
|
results of the two evaluations is returned. If either subexpression
|
||||||
evaluates to null, then the result is also null.
|
evaluates to null, then the result is the value of the other
|
||||||
|
expression. If both expressions evaluate to null, then the result is
|
||||||
|
null.
|
||||||
|
.RE
|
||||||
|
.PP
|
||||||
|
.B encode-int (\fInumeric-expr\fB, \fIwidth\fB)\fR
|
||||||
|
.RS 0.25i
|
||||||
|
Numeric-expr is evaluated and encoded as a data string of the
|
||||||
|
specified width, in network byte order (most significant byte first).
|
||||||
|
If the numeric expression evaluates to the null value, the result is
|
||||||
|
also null.
|
||||||
|
|
||||||
.SH NUMERIC EXPRESSIONS
|
.SH NUMERIC EXPRESSIONS
|
||||||
Numeric expressions are expressions that evaluate to an integer. In
|
Numeric expressions are expressions that evaluate to an integer. In
|
||||||
general, the maximum size of such an integer should not be assumed to
|
general, the maximum size of such an integer should not be assumed to
|
||||||
@@ -262,8 +274,7 @@ extract an integer of the specified size, the null value is returned.
|
|||||||
.PP
|
.PP
|
||||||
.RS 0.25i
|
.RS 0.25i
|
||||||
Any number between zero and the maximum representable size may be
|
Any number between zero and the maximum representable size may be
|
||||||
specified as a numeric expression. Negative numbers are not
|
specified as a numeric expression.
|
||||||
currently supported.
|
|
||||||
.RE
|
.RE
|
||||||
.SH SEE ALSO
|
.SH SEE ALSO
|
||||||
dhcpd.conf(5), dhcpd.leases(5), dhclient.conf(5), dhcp-eval(5), dhcpd(8),
|
dhcpd.conf(5), dhcpd.leases(5), dhclient.conf(5), dhcp-eval(5), dhcpd(8),
|
||||||
|
Reference in New Issue
Block a user