I did that reading, and I thought I provided a complete sample program that does exactly the technique you describe.
I can't figure out to read the ICMP into memory (not decode, just read into a buffer...)
No worries, no more comments needed, I'll review my code in the morning...maybe a good night sleep will clear out the cobbwebs...