I tried your script, but it got:
I have never used Convert::Binary::C. I didn't even have it installed. I figured you'd be able to sort out the details.
the strange thing is that the pack method seems eat up the src_ip, dst_ip, from the query hex dump
Ah, of course! You're feeding it the string "\xC0\xA8\x00\x01" (packed) where it's expecting the number (0xC0<<24)|(0xA8<<16)|(0x00<<8)|(0x01) (unpacked).
In reply to Re^13: p0fq.pl and pack
by ikegami
in thread p0fq.pl and pack?
by macli
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |