]> The Tcpdump Group git mirrors - tcpdump/blobdiff - print-sip.c
Lose some more unnecessary #include lines. [skip ci]
[tcpdump] / print-sip.c
index d0fd349f25e7e0acffcbe310cd55d9bf69d5b8c6..bfbfddfd4749237d4156f1e12daa05d10e83e97f 100644 (file)
  * LIMITATION, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS
  * FOR A PARTICULAR PURPOSE.
  *
- * Original code by Hannes Gredler (hannes@juniper.net)
+ * Original code by Hannes Gredler (hannes@gredler.at)
  * Turned into common "text protocol" code, which this uses, by
  * Guy Harris.
  */
 
-#define NETDISSECT_REWORKED
+/* \summary: Session Initiation Protocol (SIP) printer */
+
 #ifdef HAVE_CONFIG_H
-#include "config.h"
+#include <config.h>
 #endif
 
-#include <tcpdump-stdinc.h>
+#include "netdissect-stdinc.h"
 
-#include "interface.h"
-#include "extract.h"
+#include "netdissect.h"
 
 static const char *sipcmds[] = {
        "ACK",
@@ -49,5 +49,6 @@ static const char *sipcmds[] = {
 void
 sip_print(netdissect_options *ndo, const u_char *pptr, u_int len)
 {
-       txtproto_print(ndo, pptr, len, "sip", sipcmds, RESP_CODE_SECOND_TOKEN);
+       ndo->ndo_protocol = "sip";
+       txtproto_print(ndo, pptr, len, sipcmds, RESP_CODE_SECOND_TOKEN);
 }