[jira] [Updated] (NET-624) SubnetInfo#toCidrNotation: A wrong format subnet mask is allows.
[ https://issues.apache.org/jira/browse/NET-624?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ] Makoto Sakaguchi updated NET-624: - Summary: SubnetInfo#toCidrNotation: A wrong format subnet mask is allows. (was: SubnetInfo#toCidrNotation - allow a subnet mask) > SubnetInfo#toCidrNotation: A wrong format subnet mask is allows. > > > Key: NET-624 > URL: https://issues.apache.org/jira/browse/NET-624 > Project: Commons Net > Issue Type: Bug >Affects Versions: 2.0 >Reporter: Makoto Sakaguchi > > An IPv4 subnet mask, which is also the network mask, must consist of a set of > contiguous 1-bits followed by a block of 0-bits (i.e. 255.255.255.0), but it > does not check. > {code} > /* 255.255.0.1 is ...0001 in binary */ > SubnetUtils su = new SubnetUtils("192.168.0.1", "255.255.0.1"); // expect > error > SubnetInfo si = su.getInfo(); > System.out.println(si.getNetmask()); // Expect error or 255.255.0.1 > 255.255.128.0 > {code} -- This message was sent by Atlassian JIRA (v6.3.15#6346)
[jira] [Updated] (NET-624) SubnetInfo#toCidrNotation: a wrong format subnet mask is allows
[ https://issues.apache.org/jira/browse/NET-624?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ] Makoto Sakaguchi updated NET-624: - Summary: SubnetInfo#toCidrNotation: a wrong format subnet mask is allows (was: SubnetInfo#toCidrNotation: A wrong format subnet mask is allows) > SubnetInfo#toCidrNotation: a wrong format subnet mask is allows > --- > > Key: NET-624 > URL: https://issues.apache.org/jira/browse/NET-624 > Project: Commons Net > Issue Type: Bug >Affects Versions: 2.0 >Reporter: Makoto Sakaguchi > > An IPv4 subnet mask, which is also the network mask, must consist of a set of > contiguous 1-bits followed by a block of 0-bits (i.e. 255.255.255.0), but it > does not check. > {code} > /* 255.255.0.1 is ...0001 in binary */ > SubnetUtils su = new SubnetUtils("192.168.0.1", "255.255.0.1"); // expect > error > SubnetInfo si = su.getInfo(); > System.out.println(si.getNetmask()); // Expect error or 255.255.0.1 > 255.255.128.0 > {code} -- This message was sent by Atlassian JIRA (v6.3.15#6346)
[jira] [Updated] (NET-624) SubnetInfo#toCidrNotation: A wrong format subnet mask is allows
[ https://issues.apache.org/jira/browse/NET-624?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ] Makoto Sakaguchi updated NET-624: - Summary: SubnetInfo#toCidrNotation: A wrong format subnet mask is allows (was: SubnetInfo#toCidrNotation: A wrong format subnet mask is allows.) > SubnetInfo#toCidrNotation: A wrong format subnet mask is allows > --- > > Key: NET-624 > URL: https://issues.apache.org/jira/browse/NET-624 > Project: Commons Net > Issue Type: Bug >Affects Versions: 2.0 >Reporter: Makoto Sakaguchi > > An IPv4 subnet mask, which is also the network mask, must consist of a set of > contiguous 1-bits followed by a block of 0-bits (i.e. 255.255.255.0), but it > does not check. > {code} > /* 255.255.0.1 is ...0001 in binary */ > SubnetUtils su = new SubnetUtils("192.168.0.1", "255.255.0.1"); // expect > error > SubnetInfo si = su.getInfo(); > System.out.println(si.getNetmask()); // Expect error or 255.255.0.1 > 255.255.128.0 > {code} -- This message was sent by Atlassian JIRA (v6.3.15#6346)
[jira] [Updated] (NET-624) SubnetInfo#toCidrNotation - a wrong format subnet mask is allows
[ https://issues.apache.org/jira/browse/NET-624?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ] Makoto Sakaguchi updated NET-624: - Summary: SubnetInfo#toCidrNotation - a wrong format subnet mask is allows (was: SubnetInfo#toCidrNotation: a wrong format subnet mask is allows) > SubnetInfo#toCidrNotation - a wrong format subnet mask is allows > > > Key: NET-624 > URL: https://issues.apache.org/jira/browse/NET-624 > Project: Commons Net > Issue Type: Bug >Affects Versions: 2.0 >Reporter: Makoto Sakaguchi > > An IPv4 subnet mask, which is also the network mask, must consist of a set of > contiguous 1-bits followed by a block of 0-bits (i.e. 255.255.255.0), but it > does not check. > {code} > /* 255.255.0.1 is ...0001 in binary */ > SubnetUtils su = new SubnetUtils("192.168.0.1", "255.255.0.1"); // expect > error > SubnetInfo si = su.getInfo(); > System.out.println(si.getNetmask()); // Expect error or 255.255.0.1 > 255.255.128.0 > {code} -- This message was sent by Atlassian JIRA (v6.3.15#6346)
[jira] [Updated] (NET-624) SubnetInfo#toCidrNotation - a wrong format subnet mask is allows
[ https://issues.apache.org/jira/browse/NET-624?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ] Makoto Sakaguchi updated NET-624: - Description: An IPv4 subnet mask, which is also the network mask, must consist of a set of contiguous 1-bits followed by a block of 0-bits (i.e. 255.255.255.0), but it does not check. {code} /* 255.255.0.1 is ...0001 in binary */ SubnetUtils su = new SubnetUtils("192.168.0.1", "255.255.0.1"); // expect error SubnetInfo si = su.getInfo(); System.out.println(si.getNetmask()); // Expect error or 255.255.0.1 255.255.128.0 {code} https://github.com/apache/commons-net/pull/12 was: An IPv4 subnet mask, which is also the network mask, must consist of a set of contiguous 1-bits followed by a block of 0-bits (i.e. 255.255.255.0), but it does not check. {code} /* 255.255.0.1 is ...0001 in binary */ SubnetUtils su = new SubnetUtils("192.168.0.1", "255.255.0.1"); // expect error SubnetInfo si = su.getInfo(); System.out.println(si.getNetmask()); // Expect error or 255.255.0.1 255.255.128.0 {code} > SubnetInfo#toCidrNotation - a wrong format subnet mask is allows > > > Key: NET-624 > URL: https://issues.apache.org/jira/browse/NET-624 > Project: Commons Net > Issue Type: Bug >Affects Versions: 2.0 >Reporter: Makoto Sakaguchi > > An IPv4 subnet mask, which is also the network mask, must consist of a set of > contiguous 1-bits followed by a block of 0-bits (i.e. 255.255.255.0), but it > does not check. > {code} > /* 255.255.0.1 is ...0001 in binary */ > SubnetUtils su = new SubnetUtils("192.168.0.1", "255.255.0.1"); // expect > error > SubnetInfo si = su.getInfo(); > System.out.println(si.getNetmask()); // Expect error or 255.255.0.1 > 255.255.128.0 > {code} > https://github.com/apache/commons-net/pull/12 -- This message was sent by Atlassian JIRA (v6.3.15#6346)
[jira] [Updated] (NET-624) SubnetInfo#toCidrNotation - a wrong format subnet mask is allows
[ https://issues.apache.org/jira/browse/NET-624?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ] Makoto Sakaguchi updated NET-624: - Flags: Patch > SubnetInfo#toCidrNotation - a wrong format subnet mask is allows > > > Key: NET-624 > URL: https://issues.apache.org/jira/browse/NET-624 > Project: Commons Net > Issue Type: Bug >Affects Versions: 2.0 >Reporter: Makoto Sakaguchi > > An IPv4 subnet mask, which is also the network mask, must consist of a set of > contiguous 1-bits followed by a block of 0-bits (i.e. 255.255.255.0), but it > does not check. > {code} > /* 255.255.0.1 is ...0001 in binary */ > SubnetUtils su = new SubnetUtils("192.168.0.1", "255.255.0.1"); // expect > error > SubnetInfo si = su.getInfo(); > System.out.println(si.getNetmask()); // Expect error or 255.255.0.1 > 255.255.128.0 > {code} > https://github.com/apache/commons-net/pull/12 -- This message was sent by Atlassian JIRA (v6.3.15#6346)
[jira] [Updated] (NET-624) SubnetInfo#toCidrNotation - a wrong format subnet mask is allows
[ https://issues.apache.org/jira/browse/NET-624?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ] Makoto Sakaguchi updated NET-624: - Flags: (was: Patch) > SubnetInfo#toCidrNotation - a wrong format subnet mask is allows > > > Key: NET-624 > URL: https://issues.apache.org/jira/browse/NET-624 > Project: Commons Net > Issue Type: Bug >Affects Versions: 2.0 >Reporter: Makoto Sakaguchi > > An IPv4 subnet mask, which is also the network mask, must consist of a set of > contiguous 1-bits followed by a block of 0-bits (i.e. 255.255.255.0), but it > does not check. > {code} > /* 255.255.0.1 is ...0001 in binary */ > SubnetUtils su = new SubnetUtils("192.168.0.1", "255.255.0.1"); // expect > error > SubnetInfo si = su.getInfo(); > System.out.println(si.getNetmask()); // Expect error or 255.255.0.1 > 255.255.128.0 > {code} > https://github.com/apache/commons-net/pull/12 -- This message was sent by Atlassian JIRA (v6.3.15#6346)
[jira] [Updated] (NET-624) SubnetInfo#toCidrNotation - a wrong format subnet mask is allows
[ https://issues.apache.org/jira/browse/NET-624?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ] Makoto Sakaguchi updated NET-624: - Description: An IPv4 subnet mask, which is also the network mask, must consist of a set of contiguous 1-bits followed by a block of 0-bits (i.e. 255.255.255.0), but it does not check. {code} /* 255.255.0.1 is ...0001 in binary */ SubnetUtils su = new SubnetUtils("192.168.0.1", "255.255.0.1"); // expect error SubnetInfo si = su.getInfo(); System.out.println(si.getNetmask()); // Expect error or 255.255.0.1 255.255.128.0 {code} https://github.com/apache/commons-net/pull/13 was: An IPv4 subnet mask, which is also the network mask, must consist of a set of contiguous 1-bits followed by a block of 0-bits (i.e. 255.255.255.0), but it does not check. {code} /* 255.255.0.1 is ...0001 in binary */ SubnetUtils su = new SubnetUtils("192.168.0.1", "255.255.0.1"); // expect error SubnetInfo si = su.getInfo(); System.out.println(si.getNetmask()); // Expect error or 255.255.0.1 255.255.128.0 {code} https://github.com/apache/commons-net/pull/12 > SubnetInfo#toCidrNotation - a wrong format subnet mask is allows > > > Key: NET-624 > URL: https://issues.apache.org/jira/browse/NET-624 > Project: Commons Net > Issue Type: Bug >Affects Versions: 2.0 >Reporter: Makoto Sakaguchi > > An IPv4 subnet mask, which is also the network mask, must consist of a set of > contiguous 1-bits followed by a block of 0-bits (i.e. 255.255.255.0), but it > does not check. > {code} > /* 255.255.0.1 is ...0001 in binary */ > SubnetUtils su = new SubnetUtils("192.168.0.1", "255.255.0.1"); // expect > error > SubnetInfo si = su.getInfo(); > System.out.println(si.getNetmask()); // Expect error or 255.255.0.1 > 255.255.128.0 > {code} > https://github.com/apache/commons-net/pull/13 -- This message was sent by Atlassian JIRA (v6.3.15#6346)