⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 rlm_expr.5

📁 使用最广泛的radius的linux的源码
💻 5
字号:
.\"     # DS - begin display.de DS.RS.nf.sp...\"     # DE - end display.de DE.fi.RE.sp...TH rlm_expr 5 "5 February 2004" "" "FreeRADIUS Module".SH NAMErlm_expr \- FreeRADIUS Module.SH DESCRIPTIONThe \fIrlm_expr\fP module allows the server to performlimited mathematical calculations.  This module is not calleddirectly in any section, it is invoked through the dynamic expansionof strings..PPFor example, some NAS boxes send a NAS-Port attributewhich is a 32-bit number composed of port, card, and interface, all indifferent bytes.  To see these attributes split into pieces, you canhave an entry in the 'users' file like:.DSDEFAULT.br    Vendor-Interface = `%{expr: %{NAS-Port} / (256 * 256)}`,.br    Vendor-Card = `%{expr: (%{NAS-Port} / 256) %% 256}`,.br    Vendor-Port = `%{expr: %{NAS-Port} %% 256}`.br.DEwhere the attributes Vendor-Interface, Vendor-Card, and Vendor-Portare attributes created by either you or a vendor-supplieddictionary.The methematical operators supported by the expression module are:.TP.B +addition.TP.B -subtraction.TP.B /division.TP.B %%modulo remainder.TP.B *multiplication.TP.B &boolean AND.TP.B |boolean OR.TP.B ()grouping of sub-expressions.PPNOTE: The modulo remainder operator is '%%', and not '%'.  Thisis due to the '%' character being used as a special character fordynamic translation..PPNOTE: These operators do NOT have precedence.  The parsingof the input string, and the calculation of the answer, is donestrictly left to right.  If you wish to order the expressions, youMUST group them into sub-expression, as shown in the previousexample..PPAll of the calculations are performed as unsigned 32-bit integers..DE.SH CONFIGURATION.DSmodules {  ....br  expr {.br  }.br  ....br}.br ....brinstantiate {  ....br  expr  ....br}.SH SECTIONS.BR instantiate.PP.SH FILES.I /etc/raddb/radiusd.conf.PP.SH "SEE ALSO".BR radiusd (8),.BR radiusd.conf (5).SH AUTHORChris Parker, cparker@segv.org

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -