Wireshark

  • Riverbed Technology
  • WinPcap
the world's foremost network protocol analyzer
  • Wireshark
    • About
    • Download
    • Blog
  • Get Help
    • Ask a Question
    • FAQs
    • Documentation
    • Mailing Lists
    • Online Tools
    • Wiki
    • Bug Tracker
  • Develop
    • Get Involved
    • Developer's Guide
    • Browse the Code
    • Latest Builds

Wireshark-dev: Re: [Wireshark-dev] packet-ieee802154.c compilation error

Date Index Thread Index Other Months All Mailing Lists
Date Prev Date Next Thread Prev Thread Next


From: "Maynard, Chris" <Christopher.Maynard@xxxxxxxxx>
Date: Tue, 2 Sep 2008 19:05:39 -0400

I suppose as a last resort you could also try:

else {
    guint16 tmp = ieee802154_crc_tvb(tvb, tvb_reported_length(tvb)-IEEE802154_FCS_LEN);
            fcs_ok = (fcs == tmp);
}

> -----Original Message-----
> From: wireshark-dev-bounces@xxxxxxxxxxxxx [mailto:wireshark-dev-
> bounces@xxxxxxxxxxxxx] On Behalf Of Maynard, Chris
> Sent: Tuesday, September 02, 2008 7:01 PM
> To: Developer support list for Wireshark
> Subject: Re: [Wireshark-dev] packet-ieee802154.c compilation error
> 
> Hmm, how about
> #define IEEE802154_CRC_XOROUT   0x0000FFFFUL
> 
> Then cast away any warnings you might get.  That *should* prevent the
> compiler from turning the xor operation into a 1's complement operation,
> and hopefully get rid of the warning.
> 
> > -----Original Message-----
> > From: wireshark-dev-bounces@xxxxxxxxxxxxx [mailto:wireshark-dev-
> > bounces@xxxxxxxxxxxxx] On Behalf Of Jaap Keuter
> > Sent: Tuesday, September 02, 2008 6:35 PM
> > To: Developer support list for Wireshark
> > Subject: Re: [Wireshark-dev] packet-ieee802154.c compilation error
> >
> > Hi Didier,
> >
> > Tried it just now, but sorry, still the same error.
> >
> > Thanx,
> > Jaap
> >
> > didier wrote:
> > > Le mardi 02 septembre 2008 à 17:28 -0400, Maynard, Chris a écrit :
> > >> What about modifying the macro itself?
> > >>
> > >> #define ieee802154_crc_tvb(tvb, offset)
> > >> ((guint16)(crc16_ccitt_tvb_seed(tvb, offset, IEEE802154_CRC_SEED) ^
> > >> IEEE802154_CRC_XOROUT))
> > > Maybe
> > > #define IEEE802154_CRC_XOROUT   0xFFFFU
> > >
> > > Didier
> > >
> >
CONFIDENTIALITY NOTICE: The contents of this email are confidential
and for the exclusive use of the intended recipient. If you receive this
email in error, please delete it from your system immediately and 
notify us either by email, telephone or fax. You should not copy,
forward, or otherwise disclose the content of the email.


  • Follow-Ups:
    • Re: [Wireshark-dev] packet-ieee802154.c compilation error
      • From: Jaap Keuter
  • References:
    • [Wireshark-dev] packet-ieee802154.c compilation error
      • From: Jaap Keuter
    • Re: [Wireshark-dev] packet-ieee802154.c compilation error
      • From: Maynard, Chris
    • Re: [Wireshark-dev] packet-ieee802154.c compilation error
      • From: Jaap Keuter
    • Re: [Wireshark-dev] packet-ieee802154.c compilation error
      • From: Maynard, Chris
    • Re: [Wireshark-dev] packet-ieee802154.c compilation error
      • From: didier
    • Re: [Wireshark-dev] packet-ieee802154.c compilation error
      • From: Jaap Keuter
    • Re: [Wireshark-dev] packet-ieee802154.c compilation error
      • From: Maynard, Chris
  • Prev by Date: Re: [Wireshark-dev] packet-ieee802154.c compilation error
  • Next by Date: Re: [Wireshark-dev] packet-ieee802154.c compilation error
  • Previous by thread: Re: [Wireshark-dev] packet-ieee802154.c compilation error
  • Next by thread: Re: [Wireshark-dev] packet-ieee802154.c compilation error
  • Index(es):
    • Date
    • Thread

Wireshark and the "fin" logo are registered trademarks of the Wireshark Foundation