Use MAC address documentation range in filter examples
[metze/wireshark/wip.git] / epan / dissectors / packet-radius.h
index 4702913f950e2776af9f655f2b5288c59eeb67ba..c574d7063cc13f114e3351466707ebeb5bcc8242 100644 (file)
@@ -2,8 +2,6 @@
  * packet-radius.h
  *
  * Definitions for RADIUS packet disassembly
- * $Id$
- *
  * Wireshark - Network traffic analyzer
  * By Gerald Combs <gerald@wireshark.org>
  * Copyright 1998 Gerald Combs
  *
  * You should have received a copy of the GNU General Public License
  * along with this program; if not, write to the Free Software
- * Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA  02111-1307, USA.
+ * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.
  */
 
+#include <epan/proto.h>
+
 /* radius packet-type codes */
 /* 09/12/2011: Updated from IANA:
  * http://www.iana.org/assignments/radius-types/radius-types.xml#radius-types-27
 #define RADIUS_PKT_TYPE_IP_ADDRESS_ALLOCATE                    50
 #define RADIUS_PKT_TYPE_IP_ADDRESS_RELEASE                     51
 
+/* ALU proprietary packet type codes */
+#define RADIUS_PKT_TYPE_ALU_STATE_REQUEST                      129
+#define RADIUS_PKT_TYPE_ALU_STATE_ACCEPT                       130
+#define RADIUS_PKT_TYPE_ALU_STATE_REJECT                       131
+#define RADIUS_PKT_TYPE_ALU_STATE_ERROR                        132
 
 /* Radius Attribute Types*/
 /* 09/12/2011: Updated from IANA:
@@ -93,14 +98,14 @@ typedef const gchar* (radius_avp_dissector_t)(proto_tree*,tvbuff_t*, packet_info
 struct _radius_attr_info_t {
        const gchar *name;
        guint code;
-       gboolean encrypt;  /* True if attribute has "encrypt=1" option */
+       guint encrypt;  /* 0 or value for "encrypt=" option */
        gboolean tagged;
        radius_attr_dissector_t* type;
        radius_avp_dissector_t* dissector;
        const value_string *vs;
        gint ett;
        int hf;
-       int hf64;
+       int hf_alt;     /* 64-bit version for integers, encrypted version for strings, IPv6 for radius_combo_ip */
        int hf_tag;
        int hf_len;
        GHashTable* tlvs_by_id;