def getAbnormalities(self): ''' Se c'è qualche campo che non rispetta le specifiche, ritorna un messaggio contenente le anormalità nei pacchetti ''' #definisco il controllore di pacchetti controlloreErrori = FourWayHandshakeConsistenceChecker(self.p1.scapyForm,self.p2.scapyForm,self.p3.scapyForm,self.p4.scapyForm) #ritorno le anormalità nei pacchetti return controlloreErrori.getAbnormalities()
def checkMacAddresses(self): ''' Controlla che i mac address siano corrispondenti ''' #definisco il controllore di pacchetti controlloreErrori = FourWayHandshakeConsistenceChecker(self.p1.scapyForm,self.p2.scapyForm,self.p3.scapyForm,self.p4.scapyForm) #controlla la coerenza sui mac_addres controlloreErrori.macAddressConsistence()