in reply to DSCP/TOS byte marking?

From CPAN:

use Net::Packet::Frame; my $frame = Net::Packet::Frame->new(l3 => $ip, l4 => $tcp); $frame->send;

or

use NetPacket::Ethernet; $eth_pkt = NetPacket::Ethernet->encode(params...);

CPAN documentation still reports this as unimplemented but functional versions are available.

Replies are listed 'Best First'.
Re^2: DSCP/TOS byte marking?
by Marcelo (Initiate) on Feb 25, 2005 at 20:50 UTC
    Thanks! I was reading the Net::Ping module, and it looks like something like
    # SOL_IP = 0, IP_TOS = 1 setsockopt(S, 0, 1, pack("I*", $tos));
    should work too...