*/
	public void setPayload(byte[] payload) {
		this.payload = new byte[payload.length];
		this.payload = payload;
		
		//if protocols used, get additional information
		if(protocols){
			//check dispatch header for any 6lowpan-type packet
			//if 10xxxxxxxx or 11000xxx or 11100xxx or 011xxxxx ---> create a 6lowpan-Packet
			byte firstByte = payload[0];
			int meshAddressingMaskedByte = (firstByte&(byte)192) & 0xFF;
			int fragmentationMaskedByte = (firstByte&(byte)248) & 0xFF;
			int iphcMaskedByte = (firstByte&(byte)224) & 0xFF;
			
			//check for any matching mask
			if(meshAddressingMaskedByte == 128 || fragmentationMaskedByte == 192 
					|| fragmentationMaskedByte == 224 || iphcMaskedByte == 96){
				sixLoWPANpacket = new SixLoWPANPacket(payload);
			}
		}
	}