C# Class Gallatin.Filter.Util.IpAddressParser

Utility clas used to parses various IP address formats found in the proxy server settings
显示文件 Open project: williamoneill/Gallatin

Public Methods

Method Description
IsMatch ( string ipFilter, string ipAddress ) : bool

Verifies if the supplied IP address matches the filter

Private Methods

Method Description
MaskCheck ( string ipFilter, string ipAddress ) : bool
RangeCheck ( string ipFilter, string ipAddress ) : bool
ToAddr ( long address ) : string
ToNumber ( string addr ) : long

Method Details

IsMatch() public static method

Verifies if the supplied IP address matches the filter
public static IsMatch ( string ipFilter, string ipAddress ) : bool
ipFilter string IP filter (IP address, IP range, IP with mask)
ipAddress string Target IP address to match
return bool