Пример #1
0
 def log_recv(self, p, *args, **kwargs):
     """Updated to print `RAI` parameters."""
     if ANNO.supported(p):
         if p.haslayer(RAI):
             kwargs['rai-rate'] = p[RAI].rate
             kwargs['rai-length'] = p[RAI].length
         if p.hasanno('phy-rate'):
             kwargs['phy-rate'] = p.getanno('phy-rate')
     DCF.log_recv(self, p, *args, **kwargs)
Пример #2
0
 def log_recv(self, p, *args, **kwargs):
     """Updated to print `ARF` related parameters."""
     if p.hasanno('phy-rate'):
         kwargs['phy-rate'] = p.getanno('phy-rate')
     DCF.log_recv(self, p, *args, **kwargs)