Clear questions and runnable code
get the best and fastest answer
raw socketsby Anonymous Monk
|on May 06, 2014 at 09:48 UTC||Need Help??|
Anonymous Monk has asked for the
wisdom of the Perl Monks concerning the following question:
sorry to bother you, here is my question:
how to receive packets using perl's SOCK_RAW
without anythying but only 'use Socket;'
So far I've got this.
How do I tell which interface to use? (eth0 for example)
Is setsockopt for this?
I couldn't google it out. I really really tried.
But I've only seen that first you 'socket' then you 'recv', and that obviously can't work.
Thank you for your time and consideration.