RFC5806 Diversion header
authorkukosa <kukosa@f5534014-38df-0310-8fa8-9805f1628bb7>
Wed, 6 Apr 2011 06:20:50 +0000 (06:20 +0000)
committerkukosa <kukosa@f5534014-38df-0310-8fa8-9805f1628bb7>
Wed, 6 Apr 2011 06:20:50 +0000 (06:20 +0000)
git-svn-id: http://anonsvn.wireshark.org/wireshark/trunk@36489 f5534014-38df-0310-8fa8-9805f1628bb7

epan/dissectors/packet-sip.c

index f06f3b72ca7b754f1e626418578bfecfd7dd1c5a..95589ab7515c820d104d6a4d1b8981b1e3035f47 100644 (file)
@@ -447,6 +447,8 @@ static const sip_header_t sip_headers[] = {
 #define POS_WARNING                                            103
        { "WWW-Authenticate",                           NULL },  /*  99 RFC3261  */
 #define POS_WWW_AUTHENTICATE                   104
+       { "Diversion",                                          NULL },  /* 105 RFC5806  */
+#define POS_DIVERSION                                  105
 };
 
 
@@ -558,6 +560,7 @@ static gint hf_header_array[] = {
                 -1, /* 102"Via",                                                       RFC3261 */
                 -1, /* 103"Warning",                                           RFC3261 */
                 -1, /* 104"WWW-Authenticate",                          RFC3261 */
+                -1, /* 105"Diversion",                                         RFC5806 */
 
 };
 
@@ -4309,6 +4312,11 @@ void proto_register_sip(void)
                       FT_STRING, BASE_NONE,NULL,0x0,
                        NULL, HFILL }
                },
+               { &hf_header_array[POS_DIVERSION],
+                       { "Diversion",          "sip.Diversion",
+                      FT_STRING, BASE_NONE,NULL,0x0,
+                       "RFC 5806: Diversion Header", HFILL }
+               },
                { &hf_sip_resend,
                        { "Resent Packet", "sip.resend",
                        FT_BOOLEAN, BASE_NONE, NULL, 0x0,