diff options
author | Arne Schwabe <arne@rfc2549.org> | 2013-02-09 17:03:27 +0100 |
---|---|---|
committer | Arne Schwabe <arne@rfc2549.org> | 2013-02-09 17:03:27 +0100 |
commit | c89414179f77982751064a5709122913c3ffd6c4 (patch) | |
tree | 225211a18ce80513c4b05a9525538444b563f18b /src/de/blinkt/openvpn/CIDRIP.java | |
parent | 9fab59b5c4b928989eec21bd598c01e5234a18d0 (diff) |
Merge non OpenVPN3 specific into main
Diffstat (limited to 'src/de/blinkt/openvpn/CIDRIP.java')
-rw-r--r-- | src/de/blinkt/openvpn/CIDRIP.java | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/src/de/blinkt/openvpn/CIDRIP.java b/src/de/blinkt/openvpn/CIDRIP.java index d3939dfc..41b56d4b 100644 --- a/src/de/blinkt/openvpn/CIDRIP.java +++ b/src/de/blinkt/openvpn/CIDRIP.java @@ -5,6 +5,8 @@ import java.util.Locale; class CIDRIP{ String mIp; int len; + + public CIDRIP(String ip, String mask){ mIp=ip; long netmask=getInt(mask); @@ -26,6 +28,10 @@ class CIDRIP{ } } + public CIDRIP(String address, int prefix_length) { + len = prefix_length; + mIp = address; + } @Override public String toString() { return String.format(Locale.ENGLISH,"%s/%d",mIp,len); |