in reply to Setting IP Precedence(TOS) on UDP traffic

At the same time, you may want to look into Net::Pcap.

Pcap is a widely used c library for low level packet capture, and it is system independent.

This can help you to deal with inbound packets in your application.
  • Comment on Re: Setting IP Precedence(TOS) on UDP traffic

Replies are listed 'Best First'.
Re: Re: Setting IP Precedence(TOS) on UDP traffic
by rob_au (Abbot) on Jan 07, 2003 at 05:09 UTC
    I quite like the pcap library, and in turn the Net::Pcap module. I thus thought it pertinent to add that Net::RawIP also incorporates an interface to pcap, specifically Net::RawIP::libpcap - This interface provides all the same functions as Net::Pcap and provides a capture mechanism to pair with Net::RawIP's packet building methods.

     

    perl -le 'print+unpack("N",pack("B32","00000000000000000000001000010001"))'