All Downloads are FREE. Search and download functionalities are using the official Maven repository.

net.jradius.dictionary.vsa_usr.Attr_USRIPRIPPolicies Maven / Gradle / Ivy

The newest version!
// DO NOT EDIT THIS FILE DIRECTLY! - AUTOMATICALLY GENERATED
// Generated by: class net.jradius.freeradius.RadiusDictionary
// Generated on: Thu, 5 Jan 2017 15:56:13 +0200

package net.jradius.dictionary.vsa_usr;

import java.io.Serializable;
import java.util.LinkedHashMap;
import java.util.Map;

import net.jradius.packet.attribute.VSAttribute;
import net.jradius.packet.attribute.value.NamedValue;

/**
 * Attribute Name: USR-IP-RIP-Policies
* Attribute Type: 26
* Vendor Id: 429
* VSA Type: 0x982a
* Value Type: NamedValue
* Possible Values:
*
    *
  • SendDefault (0x0) *
  • SendRoutes (0x2) *
  • SendSubnets (0x4) *
  • AcceptDefault (0x8) *
  • SplitHorizon (0x10) *
  • PoisonReserve (0x20) *
  • FlashUpdate (0x40) *
  • SimpleAuth (0x80) *
  • V1Send (0x100) *
  • V1Receive (0x200) *
  • V2Receive (0x400) *
  • Silent (0x80000000) *
* * @author class net.jradius.freeradius.RadiusDictionary */ public final class Attr_USRIPRIPPolicies extends VSAttribute { public static final String NAME = "USR-IP-RIP-Policies"; public static final int VENDOR_ID = 429; public static final int VSA_TYPE = 0x982a; public static final long TYPE = ((VENDOR_ID & 0xFFFF) << 16) | VSA_TYPE; public static final long serialVersionUID = TYPE; public static final Long SendDefault = new Long(0x0L); public static final Long SendRoutes = new Long(0x2L); public static final Long SendSubnets = new Long(0x4L); public static final Long AcceptDefault = new Long(0x8L); public static final Long SplitHorizon = new Long(0x10L); public static final Long PoisonReserve = new Long(0x20L); public static final Long FlashUpdate = new Long(0x40L); public static final Long SimpleAuth = new Long(0x80L); public static final Long V1Send = new Long(0x100L); public static final Long V1Receive = new Long(0x200L); public static final Long V2Receive = new Long(0x400L); public static final Long Silent = new Long(0x80000000L); @SuppressWarnings("serial") protected class NamedValueMap implements NamedValue.NamedValueMap, Serializable { public Long[] knownValues = { new Long(0x0L),new Long(0x2L),new Long(0x4L),new Long(0x8L),new Long(0x10L),new Long(0x20L),new Long(0x40L),new Long(0x80L),new Long(0x100L),new Long(0x200L),new Long(0x400L),new Long(0x80000000L)}; public Long[] getKnownValues() { return knownValues; } public Long getNamedValue(String name) { if ("SendDefault".equals(name)) return new Long(0x0L); if ("SendRoutes".equals(name)) return new Long(0x2L); if ("SendSubnets".equals(name)) return new Long(0x4L); if ("AcceptDefault".equals(name)) return new Long(0x8L); if ("SplitHorizon".equals(name)) return new Long(0x10L); if ("PoisonReserve".equals(name)) return new Long(0x20L); if ("FlashUpdate".equals(name)) return new Long(0x40L); if ("SimpleAuth".equals(name)) return new Long(0x80L); if ("V1Send".equals(name)) return new Long(0x100L); if ("V1Receive".equals(name)) return new Long(0x200L); if ("V2Receive".equals(name)) return new Long(0x400L); if ("Silent".equals(name)) return new Long(0x80000000L); return null; } public String getNamedValue(Long value) { if (new Long(0x0L).equals(value)) return "SendDefault"; if (new Long(0x2L).equals(value)) return "SendRoutes"; if (new Long(0x4L).equals(value)) return "SendSubnets"; if (new Long(0x8L).equals(value)) return "AcceptDefault"; if (new Long(0x10L).equals(value)) return "SplitHorizon"; if (new Long(0x20L).equals(value)) return "PoisonReserve"; if (new Long(0x40L).equals(value)) return "FlashUpdate"; if (new Long(0x80L).equals(value)) return "SimpleAuth"; if (new Long(0x100L).equals(value)) return "V1Send"; if (new Long(0x200L).equals(value)) return "V1Receive"; if (new Long(0x400L).equals(value)) return "V2Receive"; if (new Long(0x80000000L).equals(value)) return "Silent"; return null; } }; public static transient NamedValueMap map = null; public void setup() { attributeName = NAME; attributeType = 26; vendorId = VENDOR_ID; vsaAttributeType = VSA_TYPE; setFormat("4,0"); attributeValue = new NamedValue(map != null ? map : (map = new NamedValueMap())); } public Attr_USRIPRIPPolicies() { setup(); } public Attr_USRIPRIPPolicies(Serializable o) { setup(o); } }




© 2015 - 2025 Weber Informatics LLC | Privacy Policy