Logo Search packages:      
Sourcecode: p0f version File versions  Download package

tos.h

/*

   p0f - ToS database
   ------------------

   A list of known and used ToS / priority combinations. Rare settings 
   actually describe the originating network (since specific ISPs tend
   to set those values for all outgoing traffic). More popular settings
   are just described per their RFC meaning.

   The field we examine is actually 8 bits in the following format:

   PPP TTTT Z
   |   |    `- "must be zero" (yeah, sure)
   |   `------ Type of Service
   `---------- Precedence bits (now used to denote priority)

   But all this is usually just called "ToS". The "must be zero"
   value is often, well, not zero, of course.

   Copyright (C) 2003-2006 by Michal Zalewski <lcamtuf@coredump.cx>

*/

#ifndef _HAVE_TOS_H
#define _HAVE_TOS_H

#include "types.h"

struct tos_def {
  _u8 tos;
  _u8* desc;
};


/* THIS LIST MUST BE SORTED FROM LOWEST TO HIGHEST ToS */

/* Candidates:

    1 Tiscali Denmark (must-be-zero!)
    3 InfoAve (must-be-zero!)
    5 AOL (must-be-zero!)
  200 Borlange Sweden
   96 Nextra
   28 Menta 
  192 techtelnet.net

 */

static struct tos_def tos[] = {
  {   2, "low cost" },                    /* LC */
  {   4, "high reliability" },                  /* HR */
  {   8, "low delay" },                   /* LD */
  {  12, "DNA.FI / CTINETS" },                  /* LD, HR */
  {  16, "high throughput" },             /* HT */
  {  32, "priority1" },                   /* PRI1 */
  {  40, "UTFORS Sweden" },               /* PRI1, LD */
  {  64, "Tiscali Denmark" },             /* PRI2 */
  {  80, "Bredband Scandinavia" },        /* PRI2, HT */
  { 112, "Bonet Sweden" },                /* PRI3, HT */
  { 128, "Cable.BG / Teleca.SE" },        /* PRI4 */
  { 144, "IPTelecom / Alkar" },                 /* PRI4, HT */
  { 244, "top priority" },                /* PRI7 */
  { 255, "Arcor IP" },                    /* (bad) */
};

#define TOS_CNT (sizeof(tos) / sizeof(struct tos_def))

#endif /* ! _HAVE_TOS_H */

Generated by  Doxygen 1.6.0   Back to index