in reply to Net:::Packet sending throug wrong interface
You might want to use $eth1 and $eth2 instead of re-using the variable $eth. That said, have you investigated the created object to confirm it is what you think it is?
print $eth1->print, "\n";
It sounds like your frames are being sent to the default MAC. From Net::Packet::Env, it looks like you might want to do something more like:
my $env1 = Net::Packet::Env->new(dev => 'eth1'); . . . my $frame = Net::Packet::Frame->new(env=>$env1,l3=>$ip6,l4=>$udp,l7=>$ +data);
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^2: Net:::Packet sending throug wrong interface
by admiralfreezbee (Acolyte) on Sep 15, 2005 at 09:54 UTC |