pcap.cr
pcap.cr copied to clipboard
packet.cr
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