pcap.cr icon indicating copy to clipboard operation
pcap.cr copied to clipboard

packet.cr

Open puppetpies opened this issue 8 years ago • 3 comments

Hi Maiha,

I see you have your src / dst which concatenates the ip / ports together.

val src = "#{IpAddr.inspect(ip_header.ip_src)}:#{tcp_header.src}"
val dst = "#{IpAddr.inspect(ip_header.ip_dst)}:#{tcp_header.dst}"

The below code in my commit works however i want to be able to use all the available parameters via the packet loop as separate values so i can insert them into a database.

Which makes me not sure about your above names as there is both ip and tcp source and destination names in reality.

Take a look at the commit on my exposeflags branch as i'm wondering if there is better way todo this ?

https://github.com/puppetpies/pcap.cr/commit/a621fe5617c1fba7c14d2ec672629c283b34a404

Regards,

Brian

puppetpies avatar Sep 21 '16 02:09 puppetpies