Updated version
This commit is contained in:
parent
bfc66ef492
commit
6eee42cb35
|
@ -7,7 +7,7 @@ object Arp {
|
||||||
/**
|
/**
|
||||||
* Gets the version number.
|
* Gets the version number.
|
||||||
*/
|
*/
|
||||||
const val version = "2.1"
|
const val version = "2.2"
|
||||||
|
|
||||||
// Now setup ARP Proxy for this interface (so ARP requests are answered correctly)
|
// Now setup ARP Proxy for this interface (so ARP requests are answered correctly)
|
||||||
fun proxyAdd(interfaceName: String) {
|
fun proxyAdd(interfaceName: String) {
|
||||||
|
|
|
@ -10,7 +10,7 @@ object Dhcp {
|
||||||
/**
|
/**
|
||||||
* Gets the version number.
|
* Gets the version number.
|
||||||
*/
|
*/
|
||||||
const val version = "2.1"
|
const val version = "2.2"
|
||||||
|
|
||||||
fun start(id: String, interfaceName: String) {
|
fun start(id: String, interfaceName: String) {
|
||||||
if (Common.OS_LINUX) {
|
if (Common.OS_LINUX) {
|
||||||
|
|
|
@ -18,7 +18,7 @@ object Dns {
|
||||||
/**
|
/**
|
||||||
* Gets the version number.
|
* Gets the version number.
|
||||||
*/
|
*/
|
||||||
const val version = "2.1"
|
const val version = "2.2"
|
||||||
|
|
||||||
const val DEFAULT_SEARCH_DOMAIN = ""
|
const val DEFAULT_SEARCH_DOMAIN = ""
|
||||||
|
|
||||||
|
|
|
@ -20,7 +20,7 @@ object IP {
|
||||||
/**
|
/**
|
||||||
* Gets the version number.
|
* Gets the version number.
|
||||||
*/
|
*/
|
||||||
const val version = "2.1"
|
const val version = "2.2"
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* The [InetAddress] that represents the loopback address. If IPv6 stack is available, it will refer to
|
* The [InetAddress] that represents the loopback address. If IPv6 stack is available, it will refer to
|
||||||
|
|
|
@ -10,7 +10,7 @@ object IPRoute {
|
||||||
/**
|
/**
|
||||||
* Gets the version number.
|
* Gets the version number.
|
||||||
*/
|
*/
|
||||||
const val version = "2.1"
|
const val version = "2.2"
|
||||||
|
|
||||||
private val reservedTable = StringBuilder(2048)
|
private val reservedTable = StringBuilder(2048)
|
||||||
private val tableNames: MutableMap<Int, String?> = HashMap(256)
|
private val tableNames: MutableMap<Int, String?> = HashMap(256)
|
||||||
|
|
|
@ -38,7 +38,7 @@ object IPv4 {
|
||||||
/**
|
/**
|
||||||
* Gets the version number.
|
* Gets the version number.
|
||||||
*/
|
*/
|
||||||
const val version = "2.1"
|
const val version = "2.2"
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Returns `true` if IPv4 should be used even if the system supports both IPv4 and IPv6. Setting this
|
* Returns `true` if IPv4 should be used even if the system supports both IPv4 and IPv6. Setting this
|
||||||
|
|
|
@ -32,7 +32,7 @@ object IPv6 {
|
||||||
/**
|
/**
|
||||||
* Gets the version number.
|
* Gets the version number.
|
||||||
*/
|
*/
|
||||||
const val version = "2.1"
|
const val version = "2.2"
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Maximum amount of value adding characters in between IPV6 separators
|
* Maximum amount of value adding characters in between IPV6 separators
|
||||||
|
|
|
@ -9,7 +9,7 @@ object IfConfig {
|
||||||
/**
|
/**
|
||||||
* Gets the version number.
|
* Gets the version number.
|
||||||
*/
|
*/
|
||||||
const val version = "2.1"
|
const val version = "2.2"
|
||||||
|
|
||||||
fun assignMac(interfaceName: String, interfaceMac: String) {
|
fun assignMac(interfaceName: String, interfaceMac: String) {
|
||||||
if (Common.OS_LINUX) {
|
if (Common.OS_LINUX) {
|
||||||
|
|
|
@ -10,7 +10,7 @@ object Iface {
|
||||||
/**
|
/**
|
||||||
* Gets the version number.
|
* Gets the version number.
|
||||||
*/
|
*/
|
||||||
const val version = "2.1"
|
const val version = "2.2"
|
||||||
|
|
||||||
private val ifToIp: MutableMap<String, String> = HashMap()
|
private val ifToIp: MutableMap<String, String> = HashMap()
|
||||||
|
|
||||||
|
|
|
@ -19,7 +19,7 @@ object Mac {
|
||||||
/**
|
/**
|
||||||
* Gets the version number.
|
* Gets the version number.
|
||||||
*/
|
*/
|
||||||
const val version = "2.1"
|
const val version = "2.2"
|
||||||
|
|
||||||
enum class MacDelimiter(val delimiter: String) {
|
enum class MacDelimiter(val delimiter: String) {
|
||||||
COLON(":"),
|
COLON(":"),
|
||||||
|
|
|
@ -11,7 +11,7 @@ object NameSpace {
|
||||||
/**
|
/**
|
||||||
* Gets the version number.
|
* Gets the version number.
|
||||||
*/
|
*/
|
||||||
const val version = "2.1"
|
const val version = "2.2"
|
||||||
|
|
||||||
object Route {
|
object Route {
|
||||||
fun flush(nameSpace: String) {
|
fun flush(nameSpace: String) {
|
||||||
|
|
|
@ -9,7 +9,7 @@ object Route {
|
||||||
/**
|
/**
|
||||||
* Gets the version number.
|
* Gets the version number.
|
||||||
*/
|
*/
|
||||||
const val version = "2.1"
|
const val version = "2.2"
|
||||||
|
|
||||||
fun flush() {
|
fun flush() {
|
||||||
Executor.run("/sbin/ip", "route", "flush", "cache")
|
Executor.run("/sbin/ip", "route", "flush", "cache")
|
||||||
|
|
|
@ -20,7 +20,7 @@ object Sntp {
|
||||||
/**
|
/**
|
||||||
* Gets the version number.
|
* Gets the version number.
|
||||||
*/
|
*/
|
||||||
const val version = "2.1"
|
const val version = "2.2"
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* SNTP client for retrieving time.
|
* SNTP client for retrieving time.
|
||||||
|
|
|
@ -37,7 +37,7 @@ object SocketUtils {
|
||||||
/**
|
/**
|
||||||
* Gets the version number.
|
* Gets the version number.
|
||||||
*/
|
*/
|
||||||
const val version = "2.1"
|
const val version = "2.2"
|
||||||
|
|
||||||
private val EMPTY = Collections.enumeration(emptyList<Any>())
|
private val EMPTY = Collections.enumeration(emptyList<Any>())
|
||||||
|
|
||||||
|
|
|
@ -9,7 +9,7 @@ object VirtualEth {
|
||||||
/**
|
/**
|
||||||
* Gets the version number.
|
* Gets the version number.
|
||||||
*/
|
*/
|
||||||
const val version = "2.1"
|
const val version = "2.2"
|
||||||
|
|
||||||
fun add(host: String, guest: String) {
|
fun add(host: String, guest: String) {
|
||||||
if (Common.OS_LINUX) {
|
if (Common.OS_LINUX) {
|
||||||
|
|
|
@ -16,7 +16,7 @@ class Ping {
|
||||||
/**
|
/**
|
||||||
* Gets the version number.
|
* Gets the version number.
|
||||||
*/
|
*/
|
||||||
const val version = "2.1"
|
const val version = "2.2"
|
||||||
}
|
}
|
||||||
|
|
||||||
private val count = 4
|
private val count = 4
|
||||||
|
|
Loading…
Reference in New Issue