Unmask IPv4 netmask and IPv6 prefix

Masking that is useless and paranoid. May help debugging.
This commit is contained in:
Davide De Rosa 2018-11-05 20:38:18 +01:00
parent dbd552116c
commit caea6624fc
1 changed files with 4 additions and 4 deletions

View File

@ -62,7 +62,7 @@ public struct IPv4Settings: CustomStringConvertible {
/// :nodoc:
public var description: String {
return "{\(destination.maskedDescription)/\(mask.maskedDescription) \(gateway?.maskedDescription ?? "default")}"
return "{\(destination.maskedDescription)/\(mask) \(gateway?.maskedDescription ?? "default")}"
}
}
@ -82,7 +82,7 @@ public struct IPv4Settings: CustomStringConvertible {
/// :nodoc:
public var description: String {
return "addr \(address.maskedDescription) netmask \(addressMask.maskedDescription) gw \(defaultGateway.maskedDescription) routes \(routes.map { $0.maskedDescription })"
return "addr \(address.maskedDescription) netmask \(addressMask) gw \(defaultGateway.maskedDescription) routes \(routes.map { $0.maskedDescription })"
}
}
@ -111,7 +111,7 @@ public struct IPv6Settings: CustomStringConvertible {
/// :nodoc:
public var description: String {
return "{\(destination.maskedDescription)/\(prefixLength.maskedDescription) \(gateway?.maskedDescription ?? "default")}"
return "{\(destination.maskedDescription)/\(prefixLength) \(gateway?.maskedDescription ?? "default")}"
}
}
@ -131,7 +131,7 @@ public struct IPv6Settings: CustomStringConvertible {
/// :nodoc:
public var description: String {
return "addr \(address.maskedDescription)/\(addressPrefixLength.maskedDescription) gw \(defaultGateway.maskedDescription) routes \(routes.map { $0.maskedDescription })"
return "addr \(address.maskedDescription)/\(addressPrefixLength) gw \(defaultGateway.maskedDescription) routes \(routes.map { $0.maskedDescription })"
}
}