in reply to (tap) Can't get interface ip address

Hi, I guess you need to quote the interface name ...

... $packet->ethnew("eth0"); # <=== no complains anymore? if ($arg_src_mac) { $packet->ethset(source=>$arg_src_mac); } ...