123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354 |
- #ifdef HAVE_CONFIG_H
- #include "config.h"
- #endif
- #include <netdissect-stdinc.h>
- #include "netdissect.h"
- #include "extract.h"
- static const char *sipcmds[] = {
- "ACK",
- "BYE",
- "CANCEL",
- "DO",
- "INFO",
- "INVITE",
- "MESSAGE",
- "NOTIFY",
- "OPTIONS",
- "PRACK",
- "QAUTH",
- "REFER",
- "REGISTER",
- "SPRACK",
- "SUBSCRIBE",
- "UPDATE",
- "PUBLISH",
- NULL
- };
- void
- sip_print(netdissect_options *ndo, const u_char *pptr, u_int len)
- {
- txtproto_print(ndo, pptr, len, "sip", sipcmds, RESP_CODE_SECOND_TOKEN);
- }
|