X-Git-Url: https://git.tcpdump.org/tcpdump/blobdiff_plain/ff8464bffd24a451a5a4c08c6c6ab7d0a2c88785..c2d6a5db5b15f08b9e858e3fcf1e6847aaebe26b:/print-sip.c diff --git a/print-sip.c b/print-sip.c index a617d23d..14fe94e5 100644 --- a/print-sip.c +++ b/print-sip.c @@ -18,10 +18,10 @@ /* \summary: Session Initiation Protocol (SIP) printer */ #ifdef HAVE_CONFIG_H -#include "config.h" +#include #endif -#include +#include "netdissect-stdinc.h" #include "netdissect.h" #include "extract.h" @@ -50,5 +50,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); }