Package com.mattibal.meshnet.Layer3Packet

Examples of com.mattibal.meshnet.Layer3Packet.BeaconChildResponse


      if(packet instanceof DataToBase){
        DataToBase dataToBase = (DataToBase) packet;
        // verify hmac? (now it doesn't have hmac)
        onDataToBase(dataToBase);
      } else if(packet instanceof BeaconChildResponse){
        BeaconChildResponse beaconChildResponse = (BeaconChildResponse) packet;
        System.out.println("ricevuto BeaconChildResponse childNonce:"+beaconChildResponse.getChildNonce());
        // TODO verify hmac with different tree baseNonces
        beaconChildResponse.verifyHmac(newTree.baseNonce, srcMacAddress);
        onBeaconChildResponse(beaconChildResponse, srcInterface, srcMacAddress);
      } else if(packet instanceof BeaconParentResponse){
        BeaconParentResponse beaconParentResponse = (BeaconParentResponse) packet;
        System.out.println("ricevuto BeaconParentResponse parentNonce:"+beaconParentResponse.getParentNonce()+" childNonce:"+beaconParentResponse.getChildNonce());
        // TODO verify hmac
View Full Code Here

TOP

Related Classes of com.mattibal.meshnet.Layer3Packet.BeaconChildResponse

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.