
com.intel.jndn.management.enums.RouteFlags Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of jndn-management Show documentation
Show all versions of jndn-management Show documentation
Tools for managing an NDN forwarding daemon
/*
* jndn-management
* Copyright (c) 2015-2016, Intel Corporation.
*
* This program is free software; you can redistribute it and/or modify it
* under the terms and conditions of the GNU Lesser General Public License,
* version 3, as published by the Free Software Foundation.
*
* This program is distributed in the hope it will be useful, but WITHOUT ANY
* WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS
* FOR A PARTICULAR PURPOSE. See the GNU Lesser General Public License for
* more details.
*/
package com.intel.jndn.management.enums;
/**
* NFD route flags.
*
* @see RIB Management
*/
public enum RouteFlags {
NONE(0),
CHILD_INHERIT(1),
CAPTURE(2);
private final int value;
/////////////////////////////////////////////////////////////////////////////
/**
* Create enum using NFD's RouteFlags code.
*
* @param value NFD's RouteFlags code
*/
RouteFlags(final int value) {
this.value = value;
}
/**
* Convert RouteFlags to the NFD code.
*
* @return NFD's RouteFlags code
*/
public final int toInteger() {
return value;
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy