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

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

From: Guy Harris <guy@xxxxxxxxxxxxxxxxxxx>
Date: Mon, 4 Feb 2002 18:09:46 -0600 (CST)
guy         2002/02/04 18:09:46 CST

  Modified files:
    .                    packet-raw.c 
  Log:
  "Raw IP" could be IPv4 or IPv6; look at the first byte of the packet
  (i.e., the byte of the IP header containing the IP version number) to
  see which it is, and handle the packet either as IPv4, IPv6, or "other"
  based on the IP version number.
  
  The "if" chain for handling various packet types using DLT_RAW doesn't
  need returns after every clause; it should just return after falling off
  the end (and shouldn't call "g_assert_not_reached()" once we do that).
  
  Revision  Changes    Path
  1.33      +46 -11    ethereal/packet-raw.c