Analyzing packets