Ethereal-cvs: [Ethereal-cvs] cvs commit: ethereal packet-sip.c

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

From: Guy Harris <guy@xxxxxxxxxxxxxxxxx>
Date: Fri, 26 Sep 2003 15:00:38 -0500 (CDT)
guy         2003/09/26 15:00:38 CDT

  Modified files:
    .                    packet-sip.c 
  Log:
  Make the non-heuristic SIP dissector reject the packet if it doesn't
  look like a SIP packet, so some other dissector gets a chance at it.
  
  When looking for the blank line separating headers from data, use
  "tvb_find_line_end()" so we handle CR/LF and LF as end-of-line
  indications (RFC 2543 says "senders MUST terminate lines with a CRLF",
  but it also says "but receivers MUSTalso interpret CR and LF by
  themselves as line terminators"), and return an offset past the end of
  the buffer, rather than -1, if we don't find it (not all packets have
  one).
  
  When checking whether a header is one we know about, do a
  case-insensitive comparison (RFC 2543 says header field names are
  case-insensitive).
  
  Revision  Changes    Path
  1.43      +24 -22    ethereal/packet-sip.c