David Auclair created METRON-2186:
-------------------------------------

             Summary: IN_SUBNET doesn't match edge cases
                 Key: METRON-2186
                 URL: https://issues.apache.org/jira/browse/METRON-2186
             Project: Metron
          Issue Type: Bug
    Affects Versions: 0.7.1
            Reporter: David Auclair


/32 is a common notation to indicate a singular IP address.  This doesn't match 
according to IN_SUBNET:
IN_SUBNET('192.168.0.128','192.168.0.128/32') => false

More generally the top and bottom IP within a subnet do not match:
IN_SUBNET('192.168.0.128','192.168.0.128/25') => false
IN_SUBNET('192.168.0.255','192.168.0.128/25') => false

Would setInclusiveHostCount(True) extend the match range to include these cases?



--
This message was sent by Atlassian JIRA
(v7.6.14#76016)

Reply via email to