def dfilter(data, f):
    """
    Filter shodan port data compared based on a given filter
    Filter are under the form protocol/port
    """
    ff = f.split("/")
    return (data['transport'] == ff[0]) and (data['port'] == int(ff[1]))