SourceForge Jpcap

net.sourceforge.jpcap.net
Interface TypesOfService


public interface TypesOfService

Type of service code constants for IP. Type of service describes how a packet should be handled.

TOS is an 8-bit record in an IP header which contains a 3-bit precendence field, 4 TOS bit fields and a 0 bit.

The following constants are bit masks which can be logically and'ed with the 8-bit IP TOS field to determine what type of service is set.

Taken from TCP/IP Illustrated V1 by Richard Stevens, p34.

Version:
$Revision: 1.1 $
Author:
Patrick Charles and Jonas Lehmann
Last modified by:
$Author: esmondpitt $
Last modified at:
$Date: 2008/08/21 02:58:30 $

Field Summary
static int MAXIMIZE_RELIABILITY
           
static int MAXIMIZE_THROUGHPUT
           
static int MINIMIZE_DELAY
           
static int MINIMIZE_MONETARY_COST
           
static int UNUSED
           
 

Field Detail

MINIMIZE_DELAY

static final int MINIMIZE_DELAY
See Also:
Constant Field Values

MAXIMIZE_THROUGHPUT

static final int MAXIMIZE_THROUGHPUT
See Also:
Constant Field Values

MAXIMIZE_RELIABILITY

static final int MAXIMIZE_RELIABILITY
See Also:
Constant Field Values

MINIMIZE_MONETARY_COST

static final int MINIMIZE_MONETARY_COST
See Also:
Constant Field Values

UNUSED

static final int UNUSED
See Also:
Constant Field Values

Copyright © Patrick Charles & Jonas Lehmann, 2001; Esmond Pitt, 2008.