'IPv4 dispatch, hands address, UDP payload and packet up to UDP callback'

def IPHandler(self, addr, pkt, ts, **kwargs):

    if self.filterfn(addr):
        if (type(pkt.data) == dpkt.udp.UDP):
            return self.UDP(addr, str(pkt.data.data), str(pkt), ts, **kwargs)
