Method for data packet inspection, related device and computer/program product