Class IPv4AddressMatchExprMacro

  • All Implemented Interfaces:
    ExprMacroTable.ExprMacro, NamedFunction

    public class IPv4AddressMatchExprMacro
    extends Object
    implements ExprMacroTable.ExprMacro
     Implements an expression that checks if an IPv4 address belongs to a particular subnet.
    
     Expression signatures:
     - long ipv4_match(string address, string subnet)
     - long ipv4_match(long address, string subnet)
    
     Valid "address" argument formats are:
     - unsigned int long (e.g., 3232235521)
     - IPv4 address dotted-decimal string (e.g., "198.168.0.1")
    
     The argument format for the "subnet" argument should be a literal in CIDR notation
     (e.g., "198.168.0.0/16").
    
     If the "address" argument does not represent an IPv4 address then false is returned.
     
    See Also:
    IPv4AddressParseExprMacro, IPv4AddressStringifyExprMacro