public LSAMessage(ByteBuffer message)
	{
		byte type = message.get();
		if (type != MessageThread.lsaType)
			throw new WrongMessageType();
		message.get();
		message.get();
		message.get();
		byte[] byteAddress = new byte[4];
		//Getting source address
		for (int j = 0; j<4; j++) {
			byteAddress[j] = message.get();
		}
		sourceAddress = new IP(byteAddress);
		sequenceNumber = message.getShort();
		numberOfNeighbors = message.getShort();
		neighborsAddresses = new LinkedList<IP>();
		for (int i = 0; i < numberOfNeighbors ; i++) {
			
			for (int j = 0; j < 4; j++) {
				byteAddress[j]=message.get();
			}
			neighborsAddresses.add(new IP(byteAddress));
		}
	}