• Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Search
  • Register
  • Login
Netgate Discussion Forum
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Search
  • Register
  • Login

Pfctl-sr results from the "Diffserv Code Point" wrong?

Scheduled Pinned Locked Moved 2.0-RC Snapshot Feedback and Problems - RETIRED
3 Posts 2 Posters 4.3k Views
Loading More Posts
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • A
    anto_DIGIT
    last edited by Jun 16, 2010, 5:40 AM Jun 16, 2010, 3:14 AM

    I tried adding the "Diffserv Code Point" in the firewall rule with Af12. But it turns out after I check through the command "pfctl-sr",
    why the result is: dscp 0x30  ???
    Diffserv Code Point Af12 should "dscp 0x0c" or "dscp 12".
    Where we can change the dscp table?

    TOS    hex    binary      DSCP    hex   binary       Classid    AFClass
    40    0x28    00101000    10    0x0a    00001010    1:111    AF 11
    48    0x30    00110000    12    0x0c    00001100    1:112    AF 12
    56    0x38    00111000    14    0x0e    00001110    1:113    AF 13
    72    0x48    01001000    18    0x12    00010010    1:121    AF 21
    80    0x50    01010000    20    0x14    00010100    1:122    AF 22
    88    0x58    01011000    22    0x16    00010110    1:123    AF 23
    104    0x68    01101000    26    0x1a    00011010    1:131    AF 31
    112    0x70    01110000    28    0x1c    00011100    1:132    AF 32
    120    0x78    01111000    30    0x1e    00011110    1:133    AF 33
    136    0x88    10001000    34    0x22    00100010    1:141    AF 41
    144    0x90    10010000    36    0x24    00100100    1:142    AF 42
    152    0x98    10011000    38    0x26    00100110    1:143    AF 43

    The following is probably the location of fault mapping : (where hex code is the TOS code not the dscp )

    http://redmine.pfsense.org/projects/pfsense-tools/repository/revisions/4446ed9740d321e257a64da1002c87b5476e696c/entry/patches/RELENG_8_1/dscp.RELENG_8.diff

    232 +#ifndef DSCP_EF
    233 +/* Copied from altq_cdnr.h /
    234 +/
    diffserve code points */
    235 +#define DSCP_MASK      0xfc
    236 +#define DSCP_CUMASK  0x03
    237 +#define DSCP_EF          0xb8
    238 +#define DSCP_AF11       0x28
    239 +#define DSCP_AF12       0x30
    240 +#define DSCP_AF13       0x38
    241 +#define DSCP_AF21       0x48
    242 +#define DSCP_AF22       0x50
    243 +#define DSCP_AF23       0x58
    244 +#define DSCP_AF31       0x68
    245 +#define DSCP_AF32       0x70
    246 +#define DSCP_AF33       0x78
    247 +#define DSCP_AF41       0x88
    248 +#define DSCP_AF42       0x90
    249 +#define DSCP_AF43       0x98
    250 +#define AF_CLASSMASK            0xe0
    251 +#define AF_DROPPRECMASK         0x18
    252 +#endif

    1 Reply Last reply Reply Quote 0
    • E
      eri--
      last edited by Jun 16, 2010, 7:47 AM

      Can you please file a bug on redmine with the correct values?

      1 Reply Last reply Reply Quote 0
      • A
        anto_DIGIT
        last edited by Jun 17, 2010, 12:59 PM

        @ermal:

        Can you please file a bug on redmine with the correct values?

        I've done

        1 Reply Last reply Reply Quote 0
        3 out of 3
        • First post
          3/3
          Last post
        Copyright 2025 Rubicon Communications LLC (Netgate). All rights reserved.
          This community forum collects and processes your personal information.
          consent.not_received