Ethereal-dev: [Ethereal-dev] packet-sip patch (minor contrib)

Note: This archive is from the project's previous web site, ethereal.com. This list is no longer active.

From: Jean-Francois Mule <jfmule@xxxxxxxxxxx>
Date: Wed, 22 Aug 2001 17:01:45 -0700
Hi,

Here is a minor addition to packet-sip:  added the following SIP
Methods: INFO, REFER, SUBSCRIBE, NOTIFY.
fyi - started work on disssect_sip_msgbody to separate sdp bodies from
other types.

Jean-Francois Mule
Clarent Corporation


Index: packet-sip.c
===================================================================
RCS file: /cvsroot/ethereal/packet-sip.c,v
retrieving revision 1.15
diff -u -r1.15 packet-sip.c
--- packet-sip.c	2001/06/18 02:17:52	1.15
+++ packet-sip.c	2001/08/22 23:42:29
@@ -4,7 +4,15 @@
  *
  * TODO: Pay attention to Content-Type: It might not always be SDP.
  *       Add hf_* fields for filtering support.
+ *       Add sip msg body dissection based on Content-Type for:
+ *                SDP, MIME, and other types
+ *       Align SIP methods with recent Internet Drafts or RFC
+ *               (SIP INFO, rfc2976 - done)
+ *               (SIP SUBSCRIBE-NOTIFY - done)
+ *               (SIP REFER - done)
+ *               check for other
  *
+ * Copyright 2001, Jean-Francois Mule <jfm@xxxxxxxxxxx>
  * Copyright 2000, Heikki Vatiainen <hessu@xxxxxxxxx>
  *
  * $Id: packet-sip.c,v 1.15 2001/06/18 02:17:52 guy Exp $
@@ -59,7 +67,11 @@
         "OPTIONS",
         "BYE",
         "CANCEL",
-        "REGISTER"
+        "REGISTER",
+        "INFO",
+        "REFER",
+        "SUBSCRIBE",
+        "NOTIFY"
 };

 static int sip_is_request(tvbuff_t *tvb, guint32 offset);
===================================================================