'substitute IPhandler for forwarding packets to subdecoders'

def __callback(self, addr, pkt, ts, raw=None, **kw):

    if ((addr in self.sessions) or ((addr[1], addr[0]) in self.sessions)):
        if self.subDecoder:
            self.subDecoder.decode(len(raw), str(raw), ts)
        else:
            self.dump(raw, ts)
