Hi all. It will be great if some one will help me to solve my home task. So, the deal : i have .pcap file, i convert it to csv using tcpdump (tcpdump -tt -n -r x.pcap > x.csv)
CSV file looks like that : 12890084,761659 IP 10.10.20.20.47808 > 10.10.20.255.47808: UDP, length 12 12890084,761659 IP 10.10.20.20.47808 > 10.10.20.255.47808: TCP, length 12 12890084,761659 IP 10.10.20.20.47808 > 10.10.20.255.47808: HTML, length 12 ... 100000 rows. Now, i need to open csv in R, and solve 5 problems, but i need to work only with "UDP" packets (not TCP,HTMP...). For example i need to count how many "UDP" packets are there, max and min time in UDP and so on. I see only two answers.. i need to scan (but how?) for "UDP" or i need to separate this csv, cut only needed rows, and work with them. Please help. [[alternative HTML version deleted]] ______________________________________________ R-help@r-project.org mailing list https://stat.ethz.ch/mailman/listinfo/r-help PLEASE do read the posting guide http://www.R-project.org/posting-guide.html and provide commented, minimal, self-contained, reproducible code.