<?php
include_once $_SERVER['DOCUMENT_ROOT'] . '/include/shared-manual.inc';
$TOC = array();
$TOC_DEPRECATED = array();
$PARENTS = array();
include_once dirname(__FILE__) ."/toc/radius.constants.inc";
$setup = array (
  'home' => 
  array (
    0 => 'index.php',
    1 => 'PHP Manual',
  ),
  'head' => 
  array (
    0 => 'UTF-8',
    1 => 'de',
  ),
  'this' => 
  array (
    0 => 'radius.constants.packets.php',
    1 => 'RADIUS Packet Types',
    2 => 'RADIUS Packet Types',
  ),
  'up' => 
  array (
    0 => 'radius.constants.php',
    1 => 'Vordefinierte Konstanten',
  ),
  'prev' => 
  array (
    0 => 'radius.constants.options.php',
    1 => 'RADIUS Options',
  ),
  'next' => 
  array (
    0 => 'radius.constants.attributes.php',
    1 => 'RADIUS Attribute Types',
  ),
  'alternatives' => 
  array (
  ),
  'source' => 
  array (
    'lang' => 'en',
    'path' => 'reference/radius/constants.xml',
  ),
  'history' => 
  array (
  ),
);
$setup["toc"] = $TOC;
$setup["toc_deprecated"] = $TOC_DEPRECATED;
$setup["parents"] = $PARENTS;
manual_setup($setup);

contributors($setup);

?>
<div id="radius.constants.packets" class="section">
  <h2 class="title">RADIUS Packet Types</h2>

  <p class="simpara">
   RADIUS packets, whether requests or responses, always include a type. These
   constants are provided to make it easier to specify types when using
   <span class="function"><a href="function.radius-create-request.php" class="function">radius_create_request()</a></span> and when comparing the result of
   <span class="function"><a href="function.radius-send-request.php" class="function">radius_send_request()</a></span>.
  </p>

  <dl>
   
    <dt id="constant.radius-access-request">
     <strong><code><a href="radius.constants.packets.php#constant.radius-access-request">RADIUS_ACCESS_REQUEST</a></code></strong>
     (<span class="type"><a href="language.types.integer.php" class="type int">int</a></span>)
    </dt>
    <dd>
     <span class="simpara">
      An Access-Request, used to authenticate a user against a RADIUS server.
      Access request packets must include a
      <a href="radius.constants.attributes.php#constant.radius-nas-ip-address" class="link"><strong><code><a href="radius.constants.attributes.php#constant.radius-nas-ip-address">RADIUS_NAS_IP_ADDRESS</a></code></strong></a>
      or a
      <a href="radius.constants.attributes.php#constant.radius-nas-identifier" class="link"><strong><code><a href="radius.constants.attributes.php#constant.radius-nas-identifier">RADIUS_NAS_IDENTIFIER</a></code></strong></a>
      attribute, must also include a
      <a href="radius.constants.attributes.php#constant.radius-user-password" class="link"><strong><code><a href="radius.constants.attributes.php#constant.radius-user-password">RADIUS_USER_PASSWORD</a></code></strong></a>,
      <a href="radius.constants.attributes.php#constant.radius-chap-password" class="link"><strong><code><a href="radius.constants.attributes.php#constant.radius-chap-password">RADIUS_CHAP_PASSWORD</a></code></strong></a>
      or a
      <a href="radius.constants.attributes.php#constant.radius-state" class="link"><strong><code><a href="radius.constants.attributes.php#constant.radius-state">RADIUS_STATE</a></code></strong></a>
      attribute, and should include a
      <a href="radius.constants.attributes.php#constant.radius-user-name" class="link"><strong><code><a href="radius.constants.attributes.php#constant.radius-user-name">RADIUS_USER_NAME</a></code></strong></a>
      attribute.
     </span>
    </dd>
   
   
    <dt id="constant.radius-access-accept">
     <strong><code><a href="radius.constants.packets.php#constant.radius-access-accept">RADIUS_ACCESS_ACCEPT</a></code></strong>
     (<span class="type"><a href="language.types.integer.php" class="type int">int</a></span>)
    </dt>
    <dd>
     <span class="simpara">
      An Access-Accept response to an Access-Request indicating that the
      RADIUS server authenticated the user successfully.
     </span>
    </dd>
   
   
    <dt id="constant.radius-access-reject">
     <strong><code><a href="radius.constants.packets.php#constant.radius-access-reject">RADIUS_ACCESS_REJECT</a></code></strong>
     (<span class="type"><a href="language.types.integer.php" class="type int">int</a></span>)
    </dt>
    <dd>
     <span class="simpara">
      An Access-Reject response to an Access-Request indicating that the
      RADIUS server could not authenticate the user.
     </span>
    </dd>
   
   
    <dt id="constant.radius-access-challenge">
     <strong><code><a href="radius.constants.packets.php#constant.radius-access-challenge">RADIUS_ACCESS_CHALLENGE</a></code></strong>
     (<span class="type"><a href="language.types.integer.php" class="type int">int</a></span>)
    </dt>
    <dd>
     <span class="simpara">
      An Access-Challenge response to an Access-Request indicating that the
      RADIUS server requires further information in another Access-Request
      before authenticating the user.
     </span>
    </dd>
   
   
    <dt id="constant.radius-accounting-request">
     <strong><code><a href="radius.constants.packets.php#constant.radius-accounting-request">RADIUS_ACCOUNTING_REQUEST</a></code></strong>
     (<span class="type"><a href="language.types.integer.php" class="type int">int</a></span>)
    </dt>
    <dd>
     <span class="simpara">
      An Accounting-Request, used to convey accounting information for a
      service to the RADIUS server.
     </span>
    </dd>
   
   
    <dt id="constant.radius-accounting-response">
     <strong><code><a href="radius.constants.packets.php#constant.radius-accounting-response">RADIUS_ACCOUNTING_RESPONSE</a></code></strong>
     (<span class="type"><a href="language.types.integer.php" class="type int">int</a></span>)
    </dt>
    <dd>
     <span class="simpara">
      An Accounting-Response response to an Accounting-Request.
     </span>
    </dd>
   
   
    <dt id="constant.radius-coa-request">
     <strong><code><a href="radius.constants.packets.php#constant.radius-coa-request">RADIUS_COA_REQUEST</a></code></strong>
     (<span class="type"><a href="language.types.integer.php" class="type int">int</a></span>)
    </dt>
    <dd>
     <span class="simpara">
      A CoA-Request, sent from the RADIUS server to indicate that the
      authorisations within the user session have changed. A response must be
      sent in the form of a CoA-ACK or a CoA-NAK.
     </span>
     <span class="simpara">
      This constant is available in PECL radius 1.3.0 and later.
     </span>
    </dd>
   
   
    <dt id="constant.radius-coa-ack">
     <strong><code><a href="radius.constants.packets.php#constant.radius-coa-ack">RADIUS_COA_ACK</a></code></strong>
     (<span class="type"><a href="language.types.integer.php" class="type int">int</a></span>)
    </dt>
    <dd>
     <span class="simpara">
      A CoA-ACK, sent to the RADIUS server to indicate that the user
      authorisations have been updated.
     </span>
     <span class="simpara">
      This constant is available in PECL radius 1.3.0 and later.
     </span>
    </dd>
   
   
    <dt id="constant.radius-coa-nak">
     <strong><code><a href="radius.constants.packets.php#constant.radius-coa-nak">RADIUS_COA_NAK</a></code></strong>
     (<span class="type"><a href="language.types.integer.php" class="type int">int</a></span>)
    </dt>
    <dd>
     <span class="simpara">
      A CoA-NAK, sent to the RADIUS server to indicate that the user
      authorisations could not be updated.
     </span>
     <span class="simpara">
      This constant is available in PECL radius 1.3.0 and later.
     </span>
    </dd>
   
   
    <dt id="constant.radius-disconnect-request">
     <strong><code><a href="radius.constants.packets.php#constant.radius-disconnect-request">RADIUS_DISCONNECT_REQUEST</a></code></strong>
     (<span class="type"><a href="language.types.integer.php" class="type int">int</a></span>)
    </dt>
    <dd>
     <span class="simpara">
      A Disconnect-Request, sent from the RADIUS server to indicate that the
      user session must be terminated.
     </span>
     <span class="simpara">
      This constant is available in PECL radius 1.3.0 and later.
     </span>
    </dd>
   
   
    <dt id="constant.radius-disconnect-ack">
     <strong><code><a href="radius.constants.packets.php#constant.radius-disconnect-ack">RADIUS_DISCONNECT_ACK</a></code></strong>
     (<span class="type"><a href="language.types.integer.php" class="type int">int</a></span>)
    </dt>
    <dd>
     <span class="simpara">
      A Disconnect-ACK, sent to the RADIUS server to indicate that the user
      session has been terminated.
     </span>
     <span class="simpara">
      This constant is available in PECL radius 1.3.0 and later.
     </span>
    </dd>
   
   
    <dt id="constant.radius-disconnect-nak">
     <strong><code><a href="radius.constants.packets.php#constant.radius-disconnect-nak">RADIUS_DISCONNECT_NAK</a></code></strong>
     (<span class="type"><a href="language.types.integer.php" class="type int">int</a></span>)
    </dt>
    <dd>
     <span class="simpara">
      A Disconnect-NAK, sent to the RADIUS server to indicate that the user
      session could not be terminated.
     </span>
     <span class="simpara">
      This constant is available in PECL radius 1.3.0 and later.
     </span>
    </dd>
   
  </dl>
 </div><?php manual_footer($setup); ?>