<?php
include_once $_SERVER['DOCUMENT_ROOT'] . '/include/shared-manual.inc';
$TOC = array();
$TOC_DEPRECATED = array();
$PARENTS = array();
include_once dirname(__FILE__) ."/toc/ref.radius.inc";
$setup = array (
  'home' => 
  array (
    0 => 'index.php',
    1 => 'PHP Manual',
  ),
  'head' => 
  array (
    0 => 'UTF-8',
    1 => 'en',
  ),
  'this' => 
  array (
    0 => 'function.radius-put-addr.php',
    1 => 'radius_put_addr',
    2 => 'Attaches an IP address attribute',
  ),
  'up' => 
  array (
    0 => 'ref.radius.php',
    1 => 'Radius Functions',
  ),
  'prev' => 
  array (
    0 => 'function.radius-get-vendor-attr.php',
    1 => 'radius_get_vendor_attr',
  ),
  'next' => 
  array (
    0 => 'function.radius-put-attr.php',
    1 => 'radius_put_attr',
  ),
  'alternatives' => 
  array (
  ),
  'source' => 
  array (
    'lang' => 'en',
    'path' => 'reference/radius/functions/radius-put-addr.xml',
  ),
  'history' => 
  array (
  ),
);
$setup["toc"] = $TOC;
$setup["toc_deprecated"] = $TOC_DEPRECATED;
$setup["parents"] = $PARENTS;
manual_setup($setup);

contributors($setup);

?>
<div id="function.radius-put-addr" class="refentry">
 <div class="refnamediv">
  <h1 class="refname">radius_put_addr</h1>
  <p class="verinfo">(PECL radius &gt;= 1.1.0)</p><p class="refpurpose"><span class="refname">radius_put_addr</span> &mdash; <span class="dc-title">Attaches an IP address attribute</span></p>

 </div>

 <div class="refsect1 description" id="refsect1-function.radius-put-addr-description">
  <h3 class="title">Description</h3>
  <div class="methodsynopsis dc-description">
   <span class="methodname"><strong>radius_put_addr</strong></span>(<br>&nbsp;&nbsp;&nbsp;&nbsp;<span class="methodparam"><span class="type"><a href="language.types.resource.php" class="type resource">resource</a></span> <code class="parameter">$radius_handle</code></span>,<br>&nbsp;&nbsp;&nbsp;&nbsp;<span class="methodparam"><span class="type"><a href="language.types.integer.php" class="type int">int</a></span> <code class="parameter">$type</code></span>,<br>&nbsp;&nbsp;&nbsp;&nbsp;<span class="methodparam"><span class="type"><a href="language.types.string.php" class="type string">string</a></span> <code class="parameter">$addr</code></span>,<br>&nbsp;&nbsp;&nbsp;&nbsp;<span class="methodparam"><span class="type"><a href="language.types.integer.php" class="type int">int</a></span> <code class="parameter">$options</code><span class="initializer"> = 0</span></span>,<br>&nbsp;&nbsp;&nbsp;&nbsp;<span class="methodparam"><span class="type"><a href="language.types.integer.php" class="type int">int</a></span> <code class="parameter">$tag</code><span class="initializer"> = ?</span></span><br>): <span class="type"><a href="language.types.boolean.php" class="type bool">bool</a></span></div>

  <p class="simpara">
   Attaches an IP address attribute to the current RADIUS request.
  </p>
  <blockquote class="note"><p><strong class="note">Note</strong>: <p class="para">A request must be created via <span class="function"><a href="function.radius-create-request.php" class="function">radius_create_request()</a></span> before this function can be called.</p></p></blockquote>
 </div>


 <div class="refsect1 parameters" id="refsect1-function.radius-put-addr-parameters">
  <h3 class="title">Parameters</h3>
  <dl>
   <dt><code class="parameter">radius_handle</code></dt><dd><p class="para">The RADIUS resource.</p></dd>
   <dt><code class="parameter">type</code></dt><dd><p class="para">The attribute type.</p></dd>
   
    <dt><code class="parameter">addr</code></dt>
    <dd>
     <span class="simpara">
      An IPv4 address in string form, such as <code class="literal">10.0.0.1</code>.
     </span>
    </dd>
   
   <dt><code class="parameter">options</code></dt><dd><p class="para">A bitmask of the attribute options. The available options include <a href="radius.constants.options.php#constant.radius-option-tagged" class="link"><strong><code><a href="radius.constants.options.php#constant.radius-option-tagged">RADIUS_OPTION_TAGGED</a></code></strong></a> and <a href="radius.constants.options.php#constant.radius-option-salt" class="link"><strong><code><a href="radius.constants.options.php#constant.radius-option-salt">RADIUS_OPTION_SALT</a></code></strong></a>.</p></dd>
   <dt><code class="parameter">tag</code></dt><dd><p class="para">The attribute tag. This parameter is ignored unless the <a href="radius.constants.options.php#constant.radius-option-tagged" class="link"><strong><code><a href="radius.constants.options.php#constant.radius-option-tagged">RADIUS_OPTION_TAGGED</a></code></strong></a> option is set.</p></dd>
  </dl>
 </div>


 <div class="refsect1 returnvalues" id="refsect1-function.radius-put-addr-returnvalues">
  <h3 class="title">Return Values</h3>
  <p class="simpara">
   Returns <strong><code><a href="reserved.constants.php#constant.true">true</a></code></strong> on success or <strong><code><a href="reserved.constants.php#constant.false">false</a></code></strong> on failure.
  </p>
 </div>


 <div class="refsect1 changelog" id="refsect1-function.radius-put-addr-changelog">
  <h3 class="title">Changelog</h3>
  <table class="doctable informaltable">
   
    <thead>
     <tr>
      <th>Version</th>
      <th>Description</th>
     </tr>

    </thead>

    <tbody class="tbody">
     <tr>
      <td>PECL radius 1.3.0</td>
      <td>
       The <code class="parameter">options</code> and <code class="parameter">tag</code>
       parameters were added.
      </td>
     </tr>

    </tbody>
   
  </table>

 </div>


</div><?php manual_footer($setup); ?>