'Filters (if `neg` == True, filters out) one particular IP
address range.'

@staticmethod
def searchrange(start, stop, neg=False):

    try:
        start = utils.ip2int(start)
    except (TypeError, utils.socket.error):
        pass
    try:
        stop = utils.ip2int(stop)
    except (TypeError, utils.socket.error):
        pass
    if neg:
        return {'$or': [{'addr': {'$lt': start}}, {'addr': {'$gt': stop}}]}
    return {'addr': {'$gte': start, '$lte': stop}}
