prometheus-community / pro-bing

A library for creating continuous probers
MIT License
309 stars 52 forks source link

Include packet data in Packet #52

Open jaronoff97 opened 1 year ago

jaronoff97 commented 1 year ago

Currently, there's no way to access the ICMP data on echo. This makes it impossible to see what the reason for a failed ping was, i'd love to be able to check the type and code of the received message.

SuperQ commented 1 year ago

pinger.OnRecv() returns the packet, and pinger.OnRecvError() handlers return the packet and packet failure info. Can you be more specific about what's missing?