Wireshark-bugs: [Wireshark-bugs] [Bug 3964] New: Support for IPv6 header (Traffic Class) DSCP an
Date: Sat, 29 Aug 2009 14:24:17 -0700 (PDT)
https://bugs.wireshark.org/bugzilla/show_bug.cgi?id=3964

           Summary: Support for IPv6 header (Traffic Class) DSCP and ECN
           Product: Wireshark
           Version: 1.2.1
          Platform: All
        OS/Version: All
            Status: NEW
          Severity: Minor
          Priority: Medium
         Component: Wireshark
        AssignedTo: wireshark-bugs@xxxxxxxxxxxxx
        ReportedBy: ivan_jr@xxxxxxxxx



Ivan Sy <ivan_jr@xxxxxxxxx> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
   Attachment #3586|                            |review_for_checkin?
               Flag|                            |


Created an attachment (id=3586)
 --> (https://bugs.wireshark.org/bugzilla/attachment.cgi?id=3586)
Support for IPv6 header (Traffic Class) DSCP and ECN

Build Information:
Version 1.3.0-SVN-29619

Copyright 1998-2009 Gerald Combs <gerald@xxxxxxxxxxxxx> and contributors.
This is free software; see the source for copying conditions. There is NO
warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.

Compiled with GTK+ 2.16.5, with GLib 2.20.4, with WinPcap (version unknown),
with libz 1.2.3, without POSIX capabilities, with libpcre 7.0, with SMI 0.4.8,
with c-ares 1.6.0, with Lua 5.1, without Python, with GnuTLS 2.8.1, with Gcrypt
1.4.4, with MIT Kerberos, with GeoIP, with PortAudio V19-devel (built Aug 28
2009), with AirPcap.

Running on Windows XP Service Pack 3, build 2600, with WinPcap version 4.1
beta5
(packet.dll version 4.1.0.1452), based on libpcap version 1.0.0, GnuTLS 2.8.1,
Gcrypt 1.4.4, without AirPcap.

Built using Microsoft Visual C++ 9.0 build 30729

Wireshark is Open Source Software released under the GNU General Public
License.

Check the man page and http://www.wireshark.org for more information.
--

Patch for IPv6 dissector to support the ff:
- RFC 2460 sec 3, particularly Traffic Class field's 6-bit DSCP and 2-bit ECN 
- RFC 2474 sec 3, copied implementation of ip.c to determine DSCP codepoints
- RFC 3168 sec 5, for ECN's ECT and CE bits
- changed the comment.

please see patch and an ip6 capture with 001000 for its DSCP field

patch makes use of ipv6_flow, it could have been better if ip6_hdr is (or be
adjust) RFC 2460 compatible..

struct ip6_hdr {
        union {
                struct ip6_hdrctl {
                        guint32 ip6_un1_flow;   /* 20 bits of flow-ID */
                        guint16 ip6_un1_plen;   /* payload length */
                        guint8  ip6_un1_nxt;    /* next header */
                        guint8  ip6_un1_hlim;   /* hop limit */
                } ip6_un1;
                guint8 ip6_un2_vfc;     /* 4 bits version, 4 bits class */
        } ip6_ctlun;
        struct e_in6_addr ip6_src;      /* source address */
        struct e_in6_addr ip6_dst;      /* destination address */
};


-- 
Configure bugmail: https://bugs.wireshark.org/bugzilla/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug.